|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<Permission>
org.proteios.core.Permission
public enum Permission
This enumeration defined constants for permissions.
grantValue for this. This value is constructed
in such a way that some permissions implicitly activates other permissions
as follows:
denyValue is only used by the BasicItem.initPermissions(int, int)
method when a subclass needs to deny a permission. This value is constructed
in a similiar way:
| Enum Constant Summary | |
|---|---|
ACT_AS_ANOTHER_USER
This permission allows a user act as another user using the SessionControl.impersonateLogin(int, String) method. |
|
CREATE
This permission allows a user create new items. |
|
DELETE
This permission allows a user delete an item. |
|
DENIED
This permission denies a user access to an item. |
|
READ
This permission allows a user read information about an item. |
|
RESTRICTED_WRITE
This permission allows a user to update some information about an item. |
|
SET_OWNER
This permission allows a user change the owner of an item. |
|
SET_PERMISSION
This permission allows a user change the access permission to an item. |
|
SHARE_TO_EVERYONE
This permission allows a user to share an item to the Group.EVERYONE
group. |
|
USE
This permission allows a user to use/link to an item. |
|
WRITE
This permission allows a user update the information about an item. |
|
| Method Summary | |
|---|---|
String |
toString()
|
static Permission |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Permission[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final Permission READ
public static final Permission USE
public static final Permission RESTRICTED_WRITE
public static final Permission WRITE
public static final Permission DELETE
public static final Permission SET_OWNER
public static final Permission SET_PERMISSION
public static final Permission CREATE
public static final Permission DENIED
RoleKey:s.
public static final Permission SHARE_TO_EVERYONE
Group.EVERYONE
group. This is a system permission and is only meaningful for the role key
for the Item.SYSTEM item.
public static final Permission ACT_AS_ANOTHER_USER
SessionControl.impersonateLogin(int, String) method. This is a system
permission and is only meaningful for the role key for the Item.SYSTEM
item.
| Method Detail |
|---|
public static Permission[] values()
for (Permission c : Permission.values()) System.out.println(c);
public static Permission valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic String toString()
toString in class Enum<Permission>
|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||