public static class PrivacyItem.PrivacyRule extends Object
Modifier and Type | Field and Description |
---|---|
static String |
SUBSCRIPTION_BOTH
If the type is "subscription", then the 'value' attribute MUST be one of "both",
"to", "from", or "none"
|
static String |
SUBSCRIPTION_FROM |
static String |
SUBSCRIPTION_NONE |
static String |
SUBSCRIPTION_TO |
Constructor and Description |
---|
PrivacyItem.PrivacyRule() |
Modifier and Type | Method and Description |
---|---|
protected static PrivacyItem.PrivacyRule |
fromString(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.
|
String |
getValue()
Returns the element identifier to apply the action.
|
boolean |
isSuscription()
Returns if the receiver represents a subscription rule.
|
protected void |
setValue(String value)
Sets the element identifier to apply the action.
|
public static final String SUBSCRIPTION_BOTH
public static final String SUBSCRIPTION_TO
public static final String SUBSCRIPTION_FROM
public static final String SUBSCRIPTION_NONE
protected static PrivacyItem.PrivacyRule fromString(String value)
public PrivacyItem.Type getType()
public String getValue()
protected void setValue(String value)
value
- is the identifier to apply the action.public boolean isSuscription()
Copyright © 2003-2007 Jive Software.