public class QBPrivacyListItem
extends java.lang.Object
Privacy Items can handle 2 kind of both sides blocking communications based on user id:
Modifier and Type | Class and Description |
---|---|
static class |
QBPrivacyListItem.Type
Type defines how the rule is based on user identifier type.
|
Constructor and Description |
---|
QBPrivacyListItem() |
Modifier and Type | Method and Description |
---|---|
QBPrivacyListItem.Type |
getType()
Returns the type hold the kind of communication it will allow or block.
|
java.lang.String |
getValueForType()
Returns the element identifier to apply the action.
|
boolean |
isAllow()
Returns the action associated with the item - will allow or deny the communication.
|
boolean |
isMutualBlock()
Returns the action associated with the item - will deny the communication to one way side or both.
|
void |
setAllow(boolean allow)
Associates the action with the item
|
void |
setMutualBlock(boolean mutualBlock)
Sets if two way sides blocking will be used
|
void |
setType(QBPrivacyListItem.Type type)
Sets the type to hold the kind of communication it will allow or block.
|
void |
setValueForType(java.lang.String valueForType)
Sets the value for the rule.
|
java.lang.String |
toString() |
public boolean isAllow()
public void setAllow(boolean allow)
allow
- the allow communication statuspublic boolean isMutualBlock()
public void setMutualBlock(boolean mutualBlock)
mutualBlock
- set blocking directionpublic java.lang.String getValueForType()
public void setValueForType(java.lang.String valueForType)
valueForType
- The value to apply.public QBPrivacyListItem.Type getType()
public void setType(QBPrivacyListItem.Type type)
type
- The type to hold the kind of communication it will allow or block.public java.lang.String toString()
toString
in class java.lang.Object