Enum Constant Summary
Enum Constants
can be used as a subject which is not in a subject source, e.g.
group (normal group of subjects)
can be assigned groups or other subjects, and also privileges
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods
static void
append the typeOfGroup part into an hql group query
abstract boolean
if this type of group supports this field (i.e.
Returns the enum constant of this class with the specified name.
do a case-insensitive matching
Returns an array containing the constants of this enum class, in
the order they are declared.
Methods inherited from class java.lang.Enum
clone , compareTo , describeConstable , equals , finalize , getDeclaringClass , hashCode , name , ordinal , toString , valueOf
Enum Constant Details
group
group (normal group of subjects)
role
can be assigned groups or other subjects, and also privileges
entity
can be used as a subject which is not in a subject source, e.g. a service principal, schema, server, etc
Field Details
ALL
set with group or role
GROUP_OR_ROLE_SET
set with group or role
ENTITY_SET
set with entity
Method Details
values
Returns an array containing the constants of this enum class, in
the order they are declared.
Returns:
an array containing the constants of this enum class, in the order they are declared
valueOf
Returns the enum constant of this class with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this class. (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 class has no constant with the specified name
NullPointerException
- if the argument is null
getName
name for javabeans
Returns:
the name
appendHqlQuery
append the typeOfGroup part into an hql group query
Parameters:
groupAlias
- is the alias in the group hql query e.g. theGroup
typeOfGroups
- the set of TypeOfGroup or null for all
hql
- query so far
hqlQuery
- object to append the stored params to
supportsField
public abstract boolean supportsField (Field field)
if this type of group supports this field (i.e. entities dont have READ privilege or members list)
Parameters:
field
-
Returns:
true if supports
valueOfIgnoreCase
do a case-insensitive matching
Parameters:
string
-
exceptionOnNull
- will not allow null or blank entries
Returns:
the enum or null or exception if not found