|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MessagingPermission
MessagingPermission - Represents a messaging permission.
| Field Summary | |
|---|---|
static int |
CREATE_OBJECTS_IN_FOLDER
The permission constant granting folder visibility and allowing to create objects in folder. |
static int |
CREATE_SUB_FOLDERS
The permission constant granting folder visibility, allowing to create objects in folder, and allowing to create subfolders below folder. |
static int |
DELETE_ALL_OBJECTS
The permission constant allowing to remove all objects. |
static int |
DELETE_OWN_OBJECTS
The permission constant allowing to remove own objects. |
static int |
MAX_PERMISSION
The constant for maximum permission. |
static int |
NO_PERMISSIONS
The constant for no permission at all. |
static int |
READ_ALL_OBJECTS
The permission constant granting visibility for all objects. |
static int |
READ_FOLDER
The permission constant granting folder visibility. |
static int |
READ_OWN_OBJECTS
The permission constant granting visibility for own objects. |
static int |
WRITE_ALL_OBJECTS
The permission constant allowing to edit all objects. |
static int |
WRITE_OWN_OBJECTS
The permission constant allowing to edit own objects. |
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Creates and returns a copy of this object. |
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one. |
int |
getDeletePermission()
Gets the delete permission. |
int |
getEntity()
Gets this folder permission's entity identifier. |
int |
getFolderPermission()
Gets the folder permission. |
int |
getReadPermission()
Gets the read permission. |
int |
getSystem()
Gets this folder permission's system bit mask. |
int |
getWritePermission()
Gets the write permission. |
boolean |
isAdmin()
Checks if this folder permission denotes its entity as a folder administrator. |
boolean |
isGroup()
Checks if this folder permission's entity is a group. |
void |
setAdmin(boolean admin)
Sets if this folder permission denotes its entity as a folder administrator. |
void |
setAllPermissions(int folderPermission,
int readPermission,
int writePermission,
int deletePermission)
Convenience method to set all permissions at once. |
void |
setDeletePermission(int permission)
Sets the delete permission. |
void |
setEntity(int entity)
Sets this folder permission's entity identifier. |
void |
setFolderPermission(int permission)
Sets the folder permission. |
void |
setGroup(boolean group)
Sets if this folder permission's entity is a group. |
void |
setMaxPermissions()
Convenience method which passes MAX_PERMISSION to all permissions and sets folder administrator flag to true. |
void |
setNoPermissions()
Convenience method which passes NO_PERMISSIONS to all permissions and sets folder administrator flag to false. |
void |
setReadPermission(int permission)
Sets the read permission. |
void |
setSystem(int system)
Sets this folder permission's system bit mask. |
void |
setWritePermission(int permission)
Sets the write permission. |
| Field Detail |
|---|
static final int NO_PERMISSIONS
static final int MAX_PERMISSION
static final int READ_FOLDER
static final int CREATE_OBJECTS_IN_FOLDER
static final int CREATE_SUB_FOLDERS
static final int READ_OWN_OBJECTS
static final int READ_ALL_OBJECTS
static final int WRITE_OWN_OBJECTS
static final int WRITE_ALL_OBJECTS
static final int DELETE_OWN_OBJECTS
static final int DELETE_ALL_OBJECTS
| Method Detail |
|---|
java.lang.Object clone()
boolean equals(java.lang.Object obj)
equals in class java.lang.Objectint getSystem()
void setSystem(int system)
system - This folder permission's system bit maskboolean isGroup()
true if this folder permission's entity is a group; otherwise falsevoid setGroup(boolean group)
group - true if this folder permission's entity is a group; otherwise falseint getEntity()
void setEntity(int entity)
entity - The entity identifierboolean isAdmin()
true if this folder permission's entity is a folder administrator; otherwise falsevoid setAdmin(boolean admin)
admin - true if this folder permission's entity is a folder administrator; otherwise falseint getFolderPermission()
Returned value is one of:
void setFolderPermission(int permission)
Passed value is one of:
permission - The folder permissionint getReadPermission()
Returned value is one of:
void setReadPermission(int permission)
Passed value is one of:
permission - The read permissionint getWritePermission()
Returned value is one of:
void setWritePermission(int permission)
Passed value is one of:
permission - The write permissionint getDeletePermission()
Returned value is one of:
void setDeletePermission(int permission)
Passed value is one of:
permission - The delete permission
void setAllPermissions(int folderPermission,
int readPermission,
int writePermission,
int deletePermission)
folderPermission - The folder permissionreadPermission - The read permissionwritePermission - The write permissiondeletePermission - The delete permissionsetFolderPermission(int),
setReadPermission(int),
setWritePermission(int),
setDeletePermission(int)void setMaxPermissions()
MAX_PERMISSION to all permissions and sets folder administrator flag to true.
void setNoPermissions()
NO_PERMISSIONS to all permissions and sets folder administrator flag to false.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||