|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an access control item is one element in a list of items defining the access rule to a particular resource. Each item contains a list of subjects, or users, and the access level assigned to these subjects.
Field Summary | |
static int |
ALLOW
Action for the subjects |
static java.lang.String |
BOTH
|
static int |
DENY
|
static java.lang.String |
FROM
|
static int |
IQ
|
static int |
MESSAGE
|
static java.lang.String |
NONE
|
static int |
PRESENCE_IN
|
static int |
PRESENCE_OUT
|
static java.lang.String |
TO
|
static java.lang.String |
TYPE_GROUP
|
static java.lang.String |
TYPE_IDENTITIES
|
static java.lang.String |
TYPE_SUBSCRIPTION
|
Method Summary | |
int |
getAccess()
Get the access level for this PrivacyItem |
int |
getResource()
Get the resource of this PrivacyItem. |
java.lang.String |
getSubject()
retrieve the subject represented by this privacy item |
java.lang.String |
getType()
Get the type of this PrivacyItem |
void |
setAccess(int access)
Set the access level for this PrivacyItem |
void |
setResource(int resource)
Set the resource for this PrivacyItem. |
void |
setSubject(java.lang.String subject)
set the subject for this privacy item |
void |
setType(java.lang.String type)
Set the type of this PrivacyItem |
Field Detail |
public static final int ALLOW
public static final int DENY
public static final java.lang.String TYPE_SUBSCRIPTION
public static final java.lang.String TYPE_IDENTITIES
public static final java.lang.String TYPE_GROUP
public static final int PRESENCE_IN
public static final int PRESENCE_OUT
public static final int MESSAGE
public static final int IQ
public static final java.lang.String TO
public static final java.lang.String FROM
public static final java.lang.String BOTH
public static final java.lang.String NONE
Method Detail |
public java.lang.String getSubject()
public void setSubject(java.lang.String subject)
subject
- The subject based on the type of the privacy item.public void setAccess(int access)
access
- Access level as defined in PrivacyItempublic int getAccess()
public void setType(java.lang.String type)
type
- Type as defined in PrivacyItempublic java.lang.String getType()
public void setResource(int resource)
resource
- The Resource as defined in PrivacyItempublic int getResource()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |