public class OpenAccess extends AccessModel
| Modifier and Type | Method and Description |
|---|---|
boolean |
canAccessItems(Node node,
org.xmpp.packet.JID owner,
org.xmpp.packet.JID subscriber)
Returns true if the entity is allowed to get the node published items.
|
boolean |
canSubscribe(Node node,
org.xmpp.packet.JID owner,
org.xmpp.packet.JID subscriber)
Returns true if the entity is allowed to subscribe to the specified node.
|
String |
getName()
Returns the name as defined by the JEP-60 spec.
|
org.xmpp.packet.PacketError.Condition |
getSubsriptionError()
Returns the error condition that should be returned to the subscriber when
subscription is not allowed.
|
org.dom4j.Element |
getSubsriptionErrorDetail()
Returns the error element that should be returned to the subscriber as
error detail when subscription is not allowed.
|
boolean |
isAuthorizationRequired()
Returns true if the new subscription should be authorized by a node owner.
|
valueOfpublic boolean canSubscribe(Node node, org.xmpp.packet.JID owner, org.xmpp.packet.JID subscriber)
AccessModelcanSubscribe in class AccessModelnode - the node that the subscriber is trying to subscribe to.owner - the JID of the owner of the subscription.subscriber - the JID of the subscriber.public boolean canAccessItems(Node node, org.xmpp.packet.JID owner, org.xmpp.packet.JID subscriber)
AccessModelcanAccessItems in class AccessModelnode - the node that the entity is trying to get the node's items.owner - the JID of the owner of the subscription.subscriber - the JID of the subscriber.public String getName()
AccessModelgetName in class AccessModelpublic org.xmpp.packet.PacketError.Condition getSubsriptionError()
AccessModelgetSubsriptionError in class AccessModelpublic org.dom4j.Element getSubsriptionErrorDetail()
AccessModelgetSubsriptionErrorDetail in class AccessModelpublic boolean isAuthorizationRequired()
AccessModelisAuthorizationRequired in class AccessModelCopyright © 2003–2019 Ignite Realtime. All rights reserved.