public final class MamManager
extends org.jivesoftware.smack.Manager
MamManager
you need to obtain an instance for a particular archive.
To get the instance for the default archive on the user's server, use the getInstanceFor(XMPPConnection)
method.
XMPPConnection connection = ...
MamManager mamManager = MamManager.getInstanceFor(connection);
If you want to retrieve a manager for a different archive use getInstanceFor(XMPPConnection, Jid)
, which takes the archive's XMPP address as second argument.
isSupported()
to check if there is a MAM archive available.
boolean isSupported = mamManager.isSupported();
enableMamForAllMessages()
.
retrieveArchivingPreferences()
.
MamManager.MamPrefsResult.asMamPrefs()
to get a modifiable MamManager.MamPrefs
instance.
After performing the desired changes, use updateArchivingPreferences(MamPrefs)
to update the preferences.
MamManager.MamQueryArgs
instance, which can be build using MamManager.MamQueryArgs.Builder
.
After you have build such an instance, use queryArchive(MamQueryArgs)
to issue the query.
MamQueryArgs mamQueryArgs = MamQueryArgs.builder()
.withJid(jid)
.setResultPageSize(10)
.queryRecentPage()
.build();
MamQuery mamQuery = mamManager.queryArchive(mamQueryArgs);
On success queryArchive(MamQueryArgs)
returns a MamManager.MamQuery
instance.
The instance will hold one page of the queries result set.
Use MamManager.MamQuery.getMessages()
to retrieve the messages of the archive belonging to the page.
You can get the whole page including all metadata using MamManager.MamQuery.getPage()
.
MamManager.MamQuery.isComplete()
.
If this method returns false
, then you may want to page through the archive.
MamManager.MamQuery
provides convince methods to do so: MamManager.MamQuery.pageNext(int)
and MamManager.MamQuery.pagePrevious(int)
.
MamQuery nextPageMamQuery = mamQuery.pageNext(10);
retrieveFormFields()
to retrieve a list of the supported additional form fields by this archive.
Those fields can be used for further restrict a query.Modifier and Type | Class and Description |
---|---|
static class |
MamManager.MamPrefs |
static class |
MamManager.MamPrefsResult
MAM preferences result class.
|
class |
MamManager.MamQuery |
static class |
MamManager.MamQueryArgs |
static class |
MamManager.MamQueryPage |
static class |
MamManager.MamQueryResult
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
MamManager.MamPrefsResult |
enableMamForAllMessages() |
MamManager.MamPrefsResult |
enableMamForRosterMessages() |
org.jxmpp.jid.Jid |
getArchiveAddress()
The the XMPP address of this MAM archive.
|
static MamManager |
getInstanceFor(org.jivesoftware.smackx.muc.MultiUserChat multiUserChat)
Get a MamManager for the MAM archive of the given
MultiUserChat . |
static MamManager |
getInstanceFor(org.jivesoftware.smack.XMPPConnection connection)
Get a MamManager for the MAM archive of the local entity (the "user") of the given connection.
|
static MamManager |
getInstanceFor(org.jivesoftware.smack.XMPPConnection connection,
org.jxmpp.jid.Jid archiveAddress) |
java.lang.String |
getMessageUidOfLatestMessage()
Lookup the archive's message ID of the latest message in the archive.
|
boolean |
isSupported()
Check if this MamManager's archive address supports MAM.
|
MamManager.MamQueryResult |
mostRecentPage(org.jxmpp.jid.Jid chatJid,
int max)
Deprecated.
use
queryMostRecentPage(Jid, int) instead. |
MamManager.MamQueryResult |
page(org.jivesoftware.smackx.xdata.packet.DataForm dataForm,
org.jivesoftware.smackx.rsm.packet.RSMSet rsmSet)
Deprecated.
use
queryArchive(MamQueryArgs) instead. |
MamManager.MamQueryResult |
page(java.lang.String node,
org.jivesoftware.smackx.xdata.packet.DataForm dataForm,
org.jivesoftware.smackx.rsm.packet.RSMSet rsmSet)
Deprecated.
use
queryArchive(MamQueryArgs) instead. |
MamManager.MamQueryResult |
pageAfter(org.jxmpp.jid.Jid chatJid,
java.lang.String messageUid,
int max)
Deprecated.
use
queryArchive(MamQueryArgs) instead. |
MamManager.MamQueryResult |
pageBefore(org.jxmpp.jid.Jid chatJid,
java.lang.String messageUid,
int max)
Deprecated.
use
queryArchive(MamQueryArgs) instead. |
MamManager.MamQueryResult |
pageNext(MamManager.MamQueryResult mamQueryResult,
int count)
Deprecated.
use
MamManager.MamQuery.pageNext(int) instead. |
MamManager.MamQueryResult |
pagePrevious(MamManager.MamQueryResult mamQueryResult,
int count)
Deprecated.
use
MamManager.MamQuery.pagePrevious(int) instead. |
MamManager.MamQueryResult |
queryArchive(java.util.Date start,
java.util.Date end)
Deprecated.
use
queryArchive(MamQueryArgs) instead. |
MamManager.MamQueryResult |
queryArchive(java.lang.Integer max)
Deprecated.
use
queryArchive(MamQueryArgs) instead. |
MamManager.MamQueryResult |
queryArchive(java.lang.Integer max,
java.util.Date start,
java.util.Date end,
org.jxmpp.jid.Jid withJid,
java.util.List<org.jivesoftware.smackx.xdata.FormField> additionalFields)
Deprecated.
use
queryArchive(MamQueryArgs) instead. |
MamManager.MamQueryResult |
queryArchive(org.jxmpp.jid.Jid withJid)
Deprecated.
use
queryArchive(MamQueryArgs) instead. |
MamManager.MamQueryResult |
queryArchive(java.util.List<org.jivesoftware.smackx.xdata.FormField> additionalFields)
Deprecated.
use
queryArchive(MamQueryArgs) instead. |
MamManager.MamQuery |
queryArchive(MamManager.MamQueryArgs mamQueryArgs) |
MamManager.MamQueryResult |
queryArchive(java.lang.String node,
java.lang.Integer max,
java.util.Date start,
java.util.Date end,
org.jxmpp.jid.Jid withJid,
java.util.List<org.jivesoftware.smackx.xdata.FormField> additionalFields)
Deprecated.
use
queryArchive(MamQueryArgs) instead. |
MamManager.MamQueryResult |
queryArchiveWithEndDate(java.util.Date end)
Deprecated.
use
queryArchive(MamQueryArgs) instead. |
MamManager.MamQueryResult |
queryArchiveWithStartDate(java.util.Date start)
Deprecated.
use
queryArchive(MamQueryArgs) instead. |
MamManager.MamQuery |
queryMostRecentPage(org.jxmpp.jid.Jid jid,
int max) |
MamManager.MamPrefsResult |
retrieveArchivingPreferences()
Get the preferences stored in the server.
|
java.util.List<org.jivesoftware.smackx.xdata.FormField> |
retrieveFormFields()
Get the form fields supported by the server.
|
java.util.List<org.jivesoftware.smackx.xdata.FormField> |
retrieveFormFields(java.lang.String node)
Get the form fields supported by the server.
|
MamManager.MamPrefsResult |
setDefaultBehavior(MamPrefsIQ.DefaultBehavior desiredDefaultBehavior) |
MamManager.MamPrefsResult |
updateArchivingPreferences(java.util.List<org.jxmpp.jid.Jid> alwaysJids,
java.util.List<org.jxmpp.jid.Jid> neverJids,
MamPrefsIQ.DefaultBehavior defaultBehavior)
Deprecated.
use
updateArchivingPreferences(MamPrefs) instead. |
MamManager.MamPrefsResult |
updateArchivingPreferences(MamManager.MamPrefs mamPrefs)
Update the preferences in the server.
|
public static MamManager getInstanceFor(org.jivesoftware.smack.XMPPConnection connection)
connection
- the XMPP connection to get the archive for.public static MamManager getInstanceFor(org.jivesoftware.smackx.muc.MultiUserChat multiUserChat)
MultiUserChat
. Note that not all MUCs support MAM,
hence it is recommended to use isSupported()
to check if MAM is supported by the MUC.multiUserChat
- the MultiUserChat to retrieve the MamManager for.public static MamManager getInstanceFor(org.jivesoftware.smack.XMPPConnection connection, org.jxmpp.jid.Jid archiveAddress)
public org.jxmpp.jid.Jid getArchiveAddress()
null
if this MamManager
handles the local entity's archive and if the connection has never been authenticated at least once.null
.@Deprecated public MamManager.MamQueryResult queryArchive(java.lang.Integer max) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException, org.jivesoftware.smack.SmackException.NotLoggedInException
queryArchive(MamQueryArgs)
instead.max
- org.jivesoftware.smack.SmackException.NoResponseException
org.jivesoftware.smack.XMPPException.XMPPErrorException
org.jivesoftware.smack.SmackException.NotConnectedException
java.lang.InterruptedException
org.jivesoftware.smack.SmackException.NotLoggedInException
@Deprecated public MamManager.MamQueryResult queryArchive(org.jxmpp.jid.Jid withJid) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException, org.jivesoftware.smack.SmackException.NotLoggedInException
queryArchive(MamQueryArgs)
instead.withJid
- org.jivesoftware.smack.SmackException.NoResponseException
org.jivesoftware.smack.XMPPException.XMPPErrorException
org.jivesoftware.smack.SmackException.NotConnectedException
java.lang.InterruptedException
org.jivesoftware.smack.SmackException.NotLoggedInException
@Deprecated public MamManager.MamQueryResult queryArchive(java.util.Date start, java.util.Date end) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException, org.jivesoftware.smack.SmackException.NotLoggedInException
queryArchive(MamQueryArgs)
instead.start
- end
- org.jivesoftware.smack.SmackException.NoResponseException
org.jivesoftware.smack.XMPPException.XMPPErrorException
org.jivesoftware.smack.SmackException.NotConnectedException
java.lang.InterruptedException
org.jivesoftware.smack.SmackException.NotLoggedInException
@Deprecated public MamManager.MamQueryResult queryArchive(java.util.List<org.jivesoftware.smackx.xdata.FormField> additionalFields) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException, org.jivesoftware.smack.SmackException.NotLoggedInException
queryArchive(MamQueryArgs)
instead.additionalFields
- org.jivesoftware.smack.SmackException.NoResponseException
org.jivesoftware.smack.XMPPException.XMPPErrorException
org.jivesoftware.smack.SmackException.NotConnectedException
java.lang.InterruptedException
org.jivesoftware.smack.SmackException.NotLoggedInException
@Deprecated public MamManager.MamQueryResult queryArchiveWithStartDate(java.util.Date start) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException, org.jivesoftware.smack.SmackException.NotLoggedInException
queryArchive(MamQueryArgs)
instead.start
- org.jivesoftware.smack.SmackException.NoResponseException
org.jivesoftware.smack.XMPPException.XMPPErrorException
org.jivesoftware.smack.SmackException.NotConnectedException
java.lang.InterruptedException
org.jivesoftware.smack.SmackException.NotLoggedInException
@Deprecated public MamManager.MamQueryResult queryArchiveWithEndDate(java.util.Date end) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException, org.jivesoftware.smack.SmackException.NotLoggedInException
queryArchive(MamQueryArgs)
instead.end
- org.jivesoftware.smack.SmackException.NoResponseException
org.jivesoftware.smack.XMPPException.XMPPErrorException
org.jivesoftware.smack.SmackException.NotConnectedException
java.lang.InterruptedException
org.jivesoftware.smack.SmackException.NotLoggedInException
@Deprecated public MamManager.MamQueryResult queryArchive(java.lang.Integer max, java.util.Date start, java.util.Date end, org.jxmpp.jid.Jid withJid, java.util.List<org.jivesoftware.smackx.xdata.FormField> additionalFields) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException, org.jivesoftware.smack.SmackException.NotLoggedInException
queryArchive(MamQueryArgs)
instead.max
- start
- end
- withJid
- additionalFields
- org.jivesoftware.smack.SmackException.NoResponseException
org.jivesoftware.smack.XMPPException.XMPPErrorException
org.jivesoftware.smack.SmackException.NotConnectedException
java.lang.InterruptedException
org.jivesoftware.smack.SmackException.NotLoggedInException
@Deprecated public MamManager.MamQueryResult queryArchive(java.lang.String node, java.lang.Integer max, java.util.Date start, java.util.Date end, org.jxmpp.jid.Jid withJid, java.util.List<org.jivesoftware.smackx.xdata.FormField> additionalFields) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException, org.jivesoftware.smack.SmackException.NotLoggedInException
queryArchive(MamQueryArgs)
instead.node
- The PubSub node name, can be nullmax
- start
- end
- withJid
- additionalFields
- org.jivesoftware.smack.SmackException.NoResponseException
org.jivesoftware.smack.XMPPException.XMPPErrorException
org.jivesoftware.smack.SmackException.NotConnectedException
java.lang.InterruptedException
org.jivesoftware.smack.SmackException.NotLoggedInException
public MamManager.MamQuery queryArchive(MamManager.MamQueryArgs mamQueryArgs) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, org.jivesoftware.smack.SmackException.NotLoggedInException, java.lang.InterruptedException
org.jivesoftware.smack.SmackException.NoResponseException
org.jivesoftware.smack.XMPPException.XMPPErrorException
org.jivesoftware.smack.SmackException.NotConnectedException
org.jivesoftware.smack.SmackException.NotLoggedInException
java.lang.InterruptedException
@Deprecated public MamManager.MamQueryResult page(org.jivesoftware.smackx.xdata.packet.DataForm dataForm, org.jivesoftware.smackx.rsm.packet.RSMSet rsmSet) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException, org.jivesoftware.smack.SmackException.NotLoggedInException
queryArchive(MamQueryArgs)
instead.dataForm
- rsmSet
- org.jivesoftware.smack.SmackException.NoResponseException
org.jivesoftware.smack.XMPPException.XMPPErrorException
org.jivesoftware.smack.SmackException.NotConnectedException
java.lang.InterruptedException
org.jivesoftware.smack.SmackException.NotLoggedInException
@Deprecated public MamManager.MamQueryResult page(java.lang.String node, org.jivesoftware.smackx.xdata.packet.DataForm dataForm, org.jivesoftware.smackx.rsm.packet.RSMSet rsmSet) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException, org.jivesoftware.smack.SmackException.NotLoggedInException
queryArchive(MamQueryArgs)
instead.node
- The PubSub node name, can be nulldataForm
- rsmSet
- org.jivesoftware.smack.SmackException.NoResponseException
org.jivesoftware.smack.XMPPException.XMPPErrorException
org.jivesoftware.smack.SmackException.NotConnectedException
java.lang.InterruptedException
org.jivesoftware.smack.SmackException.NotLoggedInException
@Deprecated public MamManager.MamQueryResult pageNext(MamManager.MamQueryResult mamQueryResult, int count) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException, org.jivesoftware.smack.SmackException.NotLoggedInException
MamManager.MamQuery.pageNext(int)
instead.mamQueryResult
- is the previous query resultcount
- is the amount of messages that a page containsorg.jivesoftware.smack.SmackException.NoResponseException
org.jivesoftware.smack.XMPPException.XMPPErrorException
org.jivesoftware.smack.SmackException.NotConnectedException
java.lang.InterruptedException
org.jivesoftware.smack.SmackException.NotLoggedInException
@Deprecated public MamManager.MamQueryResult pagePrevious(MamManager.MamQueryResult mamQueryResult, int count) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException, org.jivesoftware.smack.SmackException.NotLoggedInException
MamManager.MamQuery.pagePrevious(int)
instead.mamQueryResult
- is the previous query resultcount
- is the amount of messages that a page containsorg.jivesoftware.smack.SmackException.NoResponseException
org.jivesoftware.smack.XMPPException.XMPPErrorException
org.jivesoftware.smack.SmackException.NotConnectedException
java.lang.InterruptedException
org.jivesoftware.smack.SmackException.NotLoggedInException
@Deprecated public MamManager.MamQueryResult pageBefore(org.jxmpp.jid.Jid chatJid, java.lang.String messageUid, int max) throws org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotLoggedInException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException, org.jivesoftware.smack.SmackException.NoResponseException
queryArchive(MamQueryArgs)
instead.Note that the messageUid is the XEP-0313 UID and not the stanza ID of the message.
chatJid
- messageUid
- the UID of the message of which messages before should be received.max
- org.jivesoftware.smack.XMPPException.XMPPErrorException
org.jivesoftware.smack.SmackException.NotLoggedInException
org.jivesoftware.smack.SmackException.NotConnectedException
java.lang.InterruptedException
org.jivesoftware.smack.SmackException.NoResponseException
@Deprecated public MamManager.MamQueryResult pageAfter(org.jxmpp.jid.Jid chatJid, java.lang.String messageUid, int max) throws org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotLoggedInException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException, org.jivesoftware.smack.SmackException.NoResponseException
queryArchive(MamQueryArgs)
instead.Note that the messageUid is the XEP-0313 UID and not the stanza ID of the message.
chatJid
- messageUid
- the UID of the message of which messages after should be received.max
- org.jivesoftware.smack.XMPPException.XMPPErrorException
org.jivesoftware.smack.SmackException.NotLoggedInException
org.jivesoftware.smack.SmackException.NotConnectedException
java.lang.InterruptedException
org.jivesoftware.smack.SmackException.NoResponseException
@Deprecated public MamManager.MamQueryResult mostRecentPage(org.jxmpp.jid.Jid chatJid, int max) throws org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotLoggedInException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException, org.jivesoftware.smack.SmackException.NoResponseException
queryMostRecentPage(Jid, int)
instead.chatJid
- max
- org.jivesoftware.smack.XMPPException.XMPPErrorException
org.jivesoftware.smack.SmackException.NotLoggedInException
org.jivesoftware.smack.SmackException.NotConnectedException
java.lang.InterruptedException
org.jivesoftware.smack.SmackException.NoResponseException
public MamManager.MamQuery queryMostRecentPage(org.jxmpp.jid.Jid jid, int max) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, org.jivesoftware.smack.SmackException.NotLoggedInException, java.lang.InterruptedException
org.jivesoftware.smack.SmackException.NoResponseException
org.jivesoftware.smack.XMPPException.XMPPErrorException
org.jivesoftware.smack.SmackException.NotConnectedException
org.jivesoftware.smack.SmackException.NotLoggedInException
java.lang.InterruptedException
public java.util.List<org.jivesoftware.smackx.xdata.FormField> retrieveFormFields() throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException, org.jivesoftware.smack.SmackException.NotLoggedInException
org.jivesoftware.smack.SmackException.NoResponseException
org.jivesoftware.smack.XMPPException.XMPPErrorException
org.jivesoftware.smack.SmackException.NotConnectedException
java.lang.InterruptedException
org.jivesoftware.smack.SmackException.NotLoggedInException
public java.util.List<org.jivesoftware.smackx.xdata.FormField> retrieveFormFields(java.lang.String node) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException, org.jivesoftware.smack.SmackException.NotLoggedInException
node
- The PubSub node name, can be nullorg.jivesoftware.smack.SmackException.NoResponseException
org.jivesoftware.smack.XMPPException.XMPPErrorException
org.jivesoftware.smack.SmackException.NotConnectedException
java.lang.InterruptedException
org.jivesoftware.smack.SmackException.NotLoggedInException
public boolean isSupported() throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException
false
otherwise.org.jivesoftware.smack.SmackException.NoResponseException
org.jivesoftware.smack.XMPPException.XMPPErrorException
org.jivesoftware.smack.SmackException.NotConnectedException
java.lang.InterruptedException
public java.lang.String getMessageUidOfLatestMessage() throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, org.jivesoftware.smack.SmackException.NotLoggedInException, java.lang.InterruptedException
null
if the archive is
empty.null
.org.jivesoftware.smack.SmackException.NoResponseException
org.jivesoftware.smack.XMPPException.XMPPErrorException
org.jivesoftware.smack.SmackException.NotConnectedException
org.jivesoftware.smack.SmackException.NotLoggedInException
java.lang.InterruptedException
public MamManager.MamPrefsResult retrieveArchivingPreferences() throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException, org.jivesoftware.smack.SmackException.NotLoggedInException
org.jivesoftware.smack.SmackException.NoResponseException
org.jivesoftware.smack.XMPPException.XMPPErrorException
org.jivesoftware.smack.SmackException.NotConnectedException
java.lang.InterruptedException
org.jivesoftware.smack.SmackException.NotLoggedInException
@Deprecated public MamManager.MamPrefsResult updateArchivingPreferences(java.util.List<org.jxmpp.jid.Jid> alwaysJids, java.util.List<org.jxmpp.jid.Jid> neverJids, MamPrefsIQ.DefaultBehavior defaultBehavior) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException, org.jivesoftware.smack.SmackException.NotLoggedInException
updateArchivingPreferences(MamPrefs)
instead.alwaysJids
- is the list of JIDs that should always have messages to/from
archived in the user's storeneverJids
- is the list of JIDs that should never have messages to/from
archived in the user's storedefaultBehavior
- can be "roster", "always", "never" (see XEP-0313)org.jivesoftware.smack.SmackException.NoResponseException
org.jivesoftware.smack.XMPPException.XMPPErrorException
org.jivesoftware.smack.SmackException.NotConnectedException
java.lang.InterruptedException
org.jivesoftware.smack.SmackException.NotLoggedInException
public MamManager.MamPrefsResult updateArchivingPreferences(MamManager.MamPrefs mamPrefs) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException, org.jivesoftware.smack.SmackException.NotLoggedInException
mamPrefs
- org.jivesoftware.smack.SmackException.NoResponseException
org.jivesoftware.smack.XMPPException.XMPPErrorException
org.jivesoftware.smack.SmackException.NotConnectedException
java.lang.InterruptedException
org.jivesoftware.smack.SmackException.NotLoggedInException
public MamManager.MamPrefsResult enableMamForAllMessages() throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, org.jivesoftware.smack.SmackException.NotLoggedInException, java.lang.InterruptedException
org.jivesoftware.smack.SmackException.NoResponseException
org.jivesoftware.smack.XMPPException.XMPPErrorException
org.jivesoftware.smack.SmackException.NotConnectedException
org.jivesoftware.smack.SmackException.NotLoggedInException
java.lang.InterruptedException
public MamManager.MamPrefsResult enableMamForRosterMessages() throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, org.jivesoftware.smack.SmackException.NotLoggedInException, java.lang.InterruptedException
org.jivesoftware.smack.SmackException.NoResponseException
org.jivesoftware.smack.XMPPException.XMPPErrorException
org.jivesoftware.smack.SmackException.NotConnectedException
org.jivesoftware.smack.SmackException.NotLoggedInException
java.lang.InterruptedException
public MamManager.MamPrefsResult setDefaultBehavior(MamPrefsIQ.DefaultBehavior desiredDefaultBehavior) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, org.jivesoftware.smack.SmackException.NotLoggedInException, java.lang.InterruptedException
org.jivesoftware.smack.SmackException.NoResponseException
org.jivesoftware.smack.XMPPException.XMPPErrorException
org.jivesoftware.smack.SmackException.NotConnectedException
org.jivesoftware.smack.SmackException.NotLoggedInException
java.lang.InterruptedException