public static class PrivacyItem.PrivacyRule
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SUBSCRIPTION_BOTH
If the type is "subscription", then the 'value' attribute MUST be one of "both",
"to", "from", or "none"
|
static java.lang.String |
SUBSCRIPTION_FROM |
static java.lang.String |
SUBSCRIPTION_NONE |
static java.lang.String |
SUBSCRIPTION_TO |
Constructor and Description |
---|
PrivacyItem.PrivacyRule() |
Modifier and Type | Method and Description |
---|---|
protected static PrivacyItem.PrivacyRule |
fromString(java.lang.String value)
Returns the type constant associated with the String value.
|
PrivacyItem.Type |
getType()
Returns the type hold the kind of communication it will allow or block.
|
java.lang.String |
getValue()
Returns the element identifier to apply the action.
|
boolean |
isSuscription()
Returns if the receiver represents a subscription rule.
|
protected void |
setValue(java.lang.String value)
Sets the element identifier to apply the action.
|
public static final java.lang.String SUBSCRIPTION_BOTH
public static final java.lang.String SUBSCRIPTION_TO
public static final java.lang.String SUBSCRIPTION_FROM
public static final java.lang.String SUBSCRIPTION_NONE
protected static PrivacyItem.PrivacyRule fromString(java.lang.String value)
public PrivacyItem.Type getType()
public java.lang.String getValue()
protected void setValue(java.lang.String value)
value
- is the identifier to apply the action.public boolean isSuscription()
Copyright © 2003-2007 Jive Software.