public enum TypeOfGroup extends Enum<TypeOfGroup>
Enum Constant and Description |
---|
entity
can be used as a subject which is not in a subject source, e.g.
|
group
group (normal group of subjects)
|
role
can be assigned groups or other subjects, and also privileges
|
Modifier and Type | Field and Description |
---|---|
static Set<TypeOfGroup> |
ENTITY_SET
set with entity
|
static Set<TypeOfGroup> |
GROUP_OR_ROLE_SET
set with group or role
|
Modifier and Type | Method and Description |
---|---|
static void |
appendHqlQuery(String groupAlias,
Set<TypeOfGroup> typeOfGroups,
StringBuilder hql,
HqlQuery hqlQuery)
append the typeOfGroup part into an hql group query
|
String |
getName()
name for javabeans
|
abstract boolean |
supportsField(Field field)
if this type of group supports this field (i.e.
|
static TypeOfGroup |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TypeOfGroup |
valueOfIgnoreCase(String string,
boolean exceptionOnNull)
do a case-insensitive matching
|
static TypeOfGroup[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TypeOfGroup group
public static final TypeOfGroup role
public static final TypeOfGroup entity
public static final Set<TypeOfGroup> GROUP_OR_ROLE_SET
public static final Set<TypeOfGroup> ENTITY_SET
public static TypeOfGroup[] values()
for (TypeOfGroup c : TypeOfGroup.values()) System.out.println(c);
public static TypeOfGroup valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getName()
public static void appendHqlQuery(String groupAlias, Set<TypeOfGroup> typeOfGroups, StringBuilder hql, HqlQuery hqlQuery)
groupAlias
- is the alias in the group hql query e.g. theGrouptypeOfGroups
- the set of TypeOfGroup or null for allhql
- query so farhqlQuery
- object to append the stored params topublic abstract boolean supportsField(Field field)
field
- public static TypeOfGroup valueOfIgnoreCase(String string, boolean exceptionOnNull)
string
- exceptionOnNull
- will not allow null or blank entriesCopyright © 2016 Internet2. All rights reserved.