|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.openexchange.api.OXFolder.Permission
Field Summary | |
static int |
ADMIN_GROUP
|
static int |
ADMIN_PERMISSION
|
static int |
ADMIN_USER
|
static int |
CREATE_OBJECTS_IN_FOLDER
|
static int |
CREATE_SUB_FOLDERS
|
static int |
DELETE_ALL_OBJECTS
|
static int |
DELETE_OWN_OBJECTS
|
static int |
GROUP
|
static int |
NO_PERMISSIONS
|
static int |
READ_ALL_OBJECTS
|
static int |
READ_FOLDER
|
static int |
READ_OWN_OBJECTS
|
static int |
ROLE_OWNER
|
static int |
SHARE_GROUP
|
static int |
SHARE_USER
|
static int |
USER
|
static int |
WRITE_ALL_OBJECTS
|
static int |
WRITE_OWN_OBJECTS
|
Constructor Summary | |
OXFolder.Permission()
|
Method Summary | |
void |
add()
add the entity with the prefilled permissions |
void |
add(java.lang.String entity,
int role,
int fp,
int orp,
int owp,
int odp)
add the entity given values |
java.lang.Object |
clone()
|
boolean |
contains(java.lang.String entity)
return true if permission contain the given entity otherwise false |
java.lang.String |
getEntity()
return the entity |
int |
getFolderPermission()
return the folderpermission |
int |
getObjectDeletePermission()
return the object delete permission |
int |
getObjectReadPermission()
return the object read permission |
int |
getObjectWritePermission()
return the object write permission |
java.util.Iterator |
getPermissions()
return the permissions |
int |
getRole()
return the role |
void |
init()
initialize |
void |
load(java.lang.String entity)
load the permission of the given entity |
void |
setDeletePermission(int odp)
set the object delete permission |
void |
setEntity(java.lang.String entity)
set the entity |
void |
setFolderPermission(int fp)
set the folderpermission |
void |
setObjectReadPermission(int orp)
set the object read permission |
void |
setObjectReadWritePermission(int owp)
set the object write permission |
void |
setRole(int role)
set the role |
int |
size()
return the size |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int ROLE_OWNER
public static final int USER
public static final int GROUP
public static final int SHARE_USER
public static final int SHARE_GROUP
public static final int ADMIN_USER
public static final int ADMIN_GROUP
public static final int NO_PERMISSIONS
public static final int ADMIN_PERMISSION
public static final int READ_FOLDER
public static final int CREATE_OBJECTS_IN_FOLDER
public static final int CREATE_SUB_FOLDERS
public static final int READ_OWN_OBJECTS
public static final int READ_ALL_OBJECTS
public static final int WRITE_OWN_OBJECTS
public static final int WRITE_ALL_OBJECTS
public static final int DELETE_OWN_OBJECTS
public static final int DELETE_ALL_OBJECTS
Constructor Detail |
public OXFolder.Permission()
Method Detail |
public void init()
public void setRole(int role)
role
- public void setFolderPermission(int fp)
fp
- public void setObjectReadPermission(int orp)
orp
- public void setObjectReadWritePermission(int owp)
owp
- public void setDeletePermission(int odp)
odp
- public void setEntity(java.lang.String entity)
entity
- public int getRole()
public int getFolderPermission()
public int getObjectReadPermission()
public int getObjectWritePermission()
public int getObjectDeletePermission()
public java.lang.String getEntity()
public java.util.Iterator getPermissions()
public int size()
public boolean contains(java.lang.String entity)
public void load(java.lang.String entity)
public void add()
public void add(java.lang.String entity, int role, int fp, int orp, int owp, int odp)
entity
- role
- fp
- orp
- owp
- odp
- public java.lang.String toString()
public java.lang.Object clone()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |