|
Openfire 3.3.2 Javadoc | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jivesoftware.openfire.pubsub.models.AccessModel
public abstract class AccessModel
Policy that defines who is allowed to subscribe and retrieve items.
| Field Summary | |
|---|---|
static AccessModel |
authorize
|
static AccessModel |
open
|
static AccessModel |
presence
|
static AccessModel |
roster
|
static AccessModel |
whitelist
|
| Constructor Summary | |
|---|---|
AccessModel()
|
|
| Method Summary | |
|---|---|
abstract boolean |
canAccessItems(Node node,
JID owner,
JID subscriber)
Returns true if the entity is allowed to get the node published items. |
abstract boolean |
canSubscribe(Node node,
JID owner,
JID subscriber)
Returns true if the entity is allowed to subscribe to the specified node. |
abstract String |
getName()
Returns the name as defined by the JEP-60 spec. |
abstract PacketError.Condition |
getSubsriptionError()
Returns the error condition that should be returned to the subscriber when subscription is not allowed. |
abstract org.dom4j.Element |
getSubsriptionErrorDetail()
Returns the error element that should be returned to the subscriber as error detail when subscription is not allowed. |
abstract boolean |
isAuthorizationRequired()
Returns true if the new subscription should be authorized by a node owner. |
static AccessModel |
valueOf(String name)
Returns the specific subclass of AccessModel as specified by the access model name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final AccessModel whitelist
public static final AccessModel open
public static final AccessModel authorize
public static final AccessModel presence
public static final AccessModel roster
| Constructor Detail |
|---|
public AccessModel()
| Method Detail |
|---|
public static AccessModel valueOf(String name)
name - the name of the subsclass.
public abstract String getName()
public abstract boolean canSubscribe(Node node,
JID owner,
JID subscriber)
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 abstract boolean canAccessItems(Node node,
JID owner,
JID subscriber)
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 abstract PacketError.Condition getSubsriptionError()
public abstract org.dom4j.Element getSubsriptionErrorDetail()
public abstract boolean isAuthorizationRequired()
|
Openfire 3.3.2 Javadoc | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||