public class PrivacyItem
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
PrivacyItem.PrivacyRule
Privacy Rule represents the kind of action to apply.
|
static class |
PrivacyItem.Type
Type defines if the rule is based on JIDs, roster groups or presence subscription types.
|
Constructor and Description |
---|
PrivacyItem(java.lang.String type,
boolean allow,
int order)
Creates a new privacy item.
|
Modifier and Type | Method and Description |
---|---|
int |
getOrder()
Returns the order where the receiver is processed.
|
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 |
isAllow()
Returns the action associated with the item, it MUST be filled and will allow or deny
the communication.
|
boolean |
isFilterEverything()
Returns whether the receiver allows or denies every kind of communication.
|
boolean |
isFilterIQ()
Returns whether the receiver allow or deny incoming IQ stanzas or not.
|
boolean |
isFilterMessage()
Returns whether the receiver allows or denies incoming messages or not.
|
boolean |
isFilterPresence_in()
Returns whether the receiver allows or denies incoming presence or not.
|
boolean |
isFilterPresence_out()
Returns whether the receiver allows or denies incoming presence or not.
|
void |
setFilterIQ(boolean filterIQ)
Sets whether the receiver allows or denies incoming IQ stanzas or not.
|
void |
setFilterMessage(boolean filterMessage)
Sets wheather the receiver allows or denies incoming messages or not.
|
void |
setFilterPresence_in(boolean filterPresence_in)
Sets whether the receiver allows or denies incoming presence or not.
|
void |
setFilterPresence_out(boolean filterPresence_out)
Sets whether the receiver allows or denies outgoing presence or not.
|
void |
setOrder(int order)
Sets the order where the receiver is processed.
|
void |
setValue(java.lang.String value)
Sets the element identifier to apply the action.
|
java.lang.String |
toXML()
Answer an xml representation of the receiver according to the RFC 3921.
|
public PrivacyItem(java.lang.String type, boolean allow, int order)
type
- the type.public boolean isAllow()
public boolean isFilterIQ()
public void setFilterIQ(boolean filterIQ)
filterIQ
- indicates if the receiver allows or denies incoming IQ stanzas.public boolean isFilterMessage()
public void setFilterMessage(boolean filterMessage)
filterMessage
- indicates if the receiver allows or denies incoming messages or not.public boolean isFilterPresence_in()
public void setFilterPresence_in(boolean filterPresence_in)
filterPresence_in
- indicates if the receiver allows or denies filtering incoming presence.public boolean isFilterPresence_out()
public void setFilterPresence_out(boolean filterPresence_out)
filterPresence_out
- indicates if the receiver allows or denies filtering outgoing presencepublic int getOrder()
public void setOrder(int order)
order
- indicates the order in the list.public void setValue(java.lang.String value)
value
- is the identifier to apply the action.public PrivacyItem.Type getType()
public java.lang.String getValue()
public boolean isFilterEverything()
public java.lang.String toXML()
Copyright © 2003-2007 Jive Software.