Package tigase.mix.model
Class ChannelConfiguration
java.lang.Object
tigase.mix.model.ChannelConfiguration
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapply
(tigase.xml.Element form) protected void
applyFrom
(tigase.xml.Element form) boolean
Set<tigase.xmpp.jid.BareJID>
tigase.xmpp.jid.BareJID
String[]
Set<tigase.xmpp.jid.BareJID>
boolean
isAdministrator
(tigase.xmpp.jid.BareJID jid) boolean
boolean
isOwner
(tigase.xmpp.jid.BareJID jid) boolean
boolean
isValid()
void
setAdministrators
(Set<tigase.xmpp.jid.BareJID> administrators) void
setLastChangeMadeBy
(tigase.xmpp.jid.BareJID jid) void
setNodesPresent
(String[] nodesPresent) void
tigase.xml.Element
tigase.xml.Element
static void
updateLastChangeMadeBy
(tigase.xml.Element item, tigase.xmpp.jid.JID publisherJID)
-
Constructor Details
-
ChannelConfiguration
public ChannelConfiguration() -
ChannelConfiguration
public ChannelConfiguration(tigase.xml.Element el) throws tigase.pubsub.exceptions.PubSubException - Throws:
tigase.pubsub.exceptions.PubSubException
-
-
Method Details
-
updateLastChangeMadeBy
public static void updateLastChangeMadeBy(tigase.xml.Element item, tigase.xmpp.jid.JID publisherJID) -
getLastChangeMadeBy
public tigase.xmpp.jid.BareJID getLastChangeMadeBy() -
setLastChangeMadeBy
public void setLastChangeMadeBy(tigase.xmpp.jid.BareJID jid) -
getOwners
-
setOwners
-
isOwner
public boolean isOwner(tigase.xmpp.jid.BareJID jid) -
isAdministrator
public boolean isAdministrator(tigase.xmpp.jid.BareJID jid) -
getAdministrators
-
setAdministrators
-
getNodesPresent
-
setNodesPresent
-
getMessagesNodeSubscription
-
getParticipantsNodeSubscription
-
getInformationNodeSubscription
-
getConfigurationNodeAccess
-
getInformationNodeUpdateRights
-
getAvatarNodesUpdateRights
-
isUserMessageRetraction
public boolean isUserMessageRetraction() -
getAdministratorMessageRetractionRights
-
toElement
-
toFormElement
public tigase.xml.Element toFormElement() -
isNickMandator
public boolean isNickMandator() -
arePrivateMessagesAllowed
public boolean arePrivateMessagesAllowed() -
apply
public ChannelConfiguration apply(tigase.xml.Element form) throws tigase.pubsub.exceptions.PubSubException - Throws:
tigase.pubsub.exceptions.PubSubException
-
applyFrom
protected void applyFrom(tigase.xml.Element form) throws tigase.pubsub.exceptions.PubSubException - Throws:
tigase.pubsub.exceptions.PubSubException
-
isValid
public boolean isValid()
-