|
Openfire 3.5.0 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.openfire.pubsub.models.AccessModel org.jivesoftware.openfire.pubsub.models.PresenceAccess
public class PresenceAccess
Anyone with a presence subscription of both or from may subscribe and retrieve items.
Field Summary |
---|
Fields inherited from class org.jivesoftware.openfire.pubsub.models.AccessModel |
---|
authorize, open, presence, roster, whitelist |
Method Summary | |
---|---|
boolean |
canAccessItems(Node node,
JID owner,
JID subscriber)
Returns true if the entity is allowed to get the node published items. |
boolean |
canSubscribe(Node node,
JID owner,
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. |
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. |
Methods inherited from class org.jivesoftware.openfire.pubsub.models.AccessModel |
---|
valueOf |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public boolean canSubscribe(Node node, JID owner, 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, JID owner, 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 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
|
Openfire 3.5.0 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |