Package ome.model.internal
Enum Permissions.Right
- java.lang.Object
-
- java.lang.Enum<Permissions.Right>
-
- ome.model.internal.Permissions.Right
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Permissions.Right>
- Enclosing class:
- Permissions
public static enum Permissions.Right extends java.lang.Enum<Permissions.Right>
enumeration of granted rights. TheREAD
right allows for a user with the given role to retrieve an entity. This means that all fields of that entity can be retrieved. Care is taken by the server, that once an entity was readable and another entity was attached to it, that further READ access will not throw an exception. In turn, care should be taken by users to not overly soon grantREAD
permissions lest they no longer be revokable. As of 4.4, this also permits certain view-based linkages of objects (e.g. RenderingDef, Thumbnail). TheANNOTATE
right allows a user with the given role to link annotations and other non-core data to an entity. TheWRITE
right allows for a user with the given role to alter the fields of an entity, including changing the contents of its collection, assigning it to another collection, or deleting it. This does not include changing the fields of those linked entities, only whether or not they are members of the given collection. Note: if WRITE is granted, ANNOTATE will also be granted.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Permissions.Right
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Permissions.Right[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ANNOTATE
public static final Permissions.Right ANNOTATE
-
WRITE
public static final Permissions.Right WRITE
-
READ
public static final Permissions.Right READ
-
-
Method Detail
-
values
public static Permissions.Right[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Permissions.Right c : Permissions.Right.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Permissions.Right valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-