public class AuthorizeAccess 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.
|
valueOf
public boolean canSubscribe(Node node, org.xmpp.packet.JID owner, org.xmpp.packet.JID subscriber)
AccessModel
canSubscribe
in class AccessModel
node
- 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)
AccessModel
canAccessItems
in class AccessModel
node
- 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()
AccessModel
getName
in class AccessModel
public org.xmpp.packet.PacketError.Condition getSubsriptionError()
AccessModel
getSubsriptionError
in class AccessModel
public org.dom4j.Element getSubsriptionErrorDetail()
AccessModel
getSubsriptionErrorDetail
in class AccessModel
public boolean isAuthorizationRequired()
AccessModel
isAuthorizationRequired
in class AccessModel
Copyright © 2003–2019 Ignite Realtime. All rights reserved.