org.netbeans.lib.collab
Interface PrivacyItem


public interface PrivacyItem

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.

Since:
version 0.1

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

ALLOW

public static final int ALLOW
Action for the subjects

See Also:
Constant Field Values

DENY

public static final int DENY
See Also:
Constant Field Values

TYPE_SUBSCRIPTION

public static final java.lang.String TYPE_SUBSCRIPTION
See Also:
Constant Field Values

TYPE_IDENTITIES

public static final java.lang.String TYPE_IDENTITIES
See Also:
Constant Field Values

TYPE_GROUP

public static final java.lang.String TYPE_GROUP
See Also:
Constant Field Values

PRESENCE_IN

public static final int PRESENCE_IN
See Also:
Constant Field Values

PRESENCE_OUT

public static final int PRESENCE_OUT
See Also:
Constant Field Values

MESSAGE

public static final int MESSAGE
See Also:
Constant Field Values

IQ

public static final int IQ
See Also:
Constant Field Values

TO

public static final java.lang.String TO
See Also:
Constant Field Values

FROM

public static final java.lang.String FROM
See Also:
Constant Field Values

BOTH

public static final java.lang.String BOTH
See Also:
Constant Field Values

NONE

public static final java.lang.String NONE
See Also:
Constant Field Values
Method Detail

getSubject

public java.lang.String getSubject()
retrieve the subject represented by this privacy item


setSubject

public void setSubject(java.lang.String subject)
set the subject for this privacy item

Parameters:
subject - The subject based on the type of the privacy item.

setAccess

public void setAccess(int access)
Set the access level for this PrivacyItem

Parameters:
access - Access level as defined in PrivacyItem

getAccess

public int getAccess()
Get the access level for this PrivacyItem

Returns:
Access level as defined in PrivacyItem

setType

public void setType(java.lang.String type)
Set the type of this PrivacyItem

Parameters:
type - as defined in PrivacyItem

getType

public java.lang.String getType()
Get the type of this PrivacyItem

Returns:
type of this PrivacyItem

setResource

public void setResource(int resource)
Set the resource for this PrivacyItem.

Parameters:
resource - The Resource as defined in PrivacyItem

getResource

public int getResource()
Get the resource of this PrivacyItem.