org.springframework.roo.addon.security
Enum Permission
java.lang.Object
java.lang.Enum<Permission>
org.springframework.roo.addon.security.Permission
- All Implemented Interfaces:
- Serializable, Comparable<Permission>
public enum Permission
- extends Enum<Permission>
|
Method Summary |
abstract String |
getBaseName()
|
org.springframework.roo.classpath.customdata.tagkeys.MethodMetadataCustomDataKey |
getKey()
|
abstract String |
getName(org.springframework.roo.model.JavaType entityType,
String plural)
Returns the name of this method, based on the given inputs |
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. |
COUNT
public static final Permission COUNT
DELETE
public static final Permission DELETE
FIND
public static final Permission FIND
FIND_ALL
public static final Permission FIND_ALL
FIND_ENTRIES
public static final Permission FIND_ENTRIES
SAVE
public static final Permission SAVE
UPDATE
public static final Permission UPDATE
values
public static Permission[] 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 (Permission c : Permission.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Permission valueOf(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:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
getKey
public org.springframework.roo.classpath.customdata.tagkeys.MethodMetadataCustomDataKey getKey()
getBaseName
public abstract String getBaseName()
getName
public abstract String getName(org.springframework.roo.model.JavaType entityType,
String plural)
- Returns the name of this method, based on the given inputs
- Parameters:
annotationValues - the values of the RooService annotation
on the serviceentityType - the type of domain entity managed by the serviceplural - the plural form of the entity
- Returns:
null if the method is not implemented
Copyright © 2009–2015. All rights reserved.