Package ome.services.graphs
Enum GraphPolicy.Ability
- java.lang.Object
-
- java.lang.Enum<GraphPolicy.Ability>
-
- ome.services.graphs.GraphPolicy.Ability
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<GraphPolicy.Ability>
- Enclosing class:
- GraphPolicy
public static enum GraphPolicy.Ability extends java.lang.Enum<GraphPolicy.Ability>
Abilities that the user may have to operate upon model objects. Note that system users have all abilities.- Since:
- 5.1.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CHGRP
the user's ability to move the object, as judged byPermissions.isDisallowChgrp()
CHMOD
the user's ability to change permissions on the object, as judged byACLVoter.allowChmod(IObject)
CHOWN
the user's ability to give the object, as judged byPermissions.isDisallowChown()
DELETE
the user's ability to delete the object, as judged byACLVoter.allowDelete(IObject, ome.model.internal.Details)
OWN
the user actually owns the objectUPDATE
the user's ability to update the object, as judged byACLVoter.allowUpdate(IObject, ome.model.internal.Details)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GraphPolicy.Ability
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static GraphPolicy.Ability[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UPDATE
public static final GraphPolicy.Ability UPDATE
the user's ability to update the object, as judged byACLVoter.allowUpdate(IObject, ome.model.internal.Details)
-
DELETE
public static final GraphPolicy.Ability DELETE
the user's ability to delete the object, as judged byACLVoter.allowDelete(IObject, ome.model.internal.Details)
-
CHMOD
public static final GraphPolicy.Ability CHMOD
the user's ability to change permissions on the object, as judged byACLVoter.allowChmod(IObject)
-
CHGRP
public static final GraphPolicy.Ability CHGRP
the user's ability to move the object, as judged byPermissions.isDisallowChgrp()
-
CHOWN
public static final GraphPolicy.Ability CHOWN
the user's ability to give the object, as judged byPermissions.isDisallowChown()
-
OWN
public static final GraphPolicy.Ability OWN
the user actually owns the object
-
-
Method Detail
-
values
public static GraphPolicy.Ability[] 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 (GraphPolicy.Ability c : GraphPolicy.Ability.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GraphPolicy.Ability 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
-
-