- java.lang.Object
-
- aeonics.template.Item<Group.Type>
-
- aeonics.entity.security.Group
-
public class Group extends Item<Group.Type>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Group.Type
Superclass for all group entities.
-
Field Summary
Fields Modifier and Type Field Description static Group.Type
ADMINISTRATORS
static Group.Type
USERS
-
Constructor Summary
Constructors Constructor Description Group()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Class<? extends Group>
category()
Returns the target entity category.protected java.util.function.Supplier<? extends Group.Type>
defaultCreator()
Returns the default target entity creator.protected java.lang.Class<? extends Group.Type>
defaultTarget()
Returns the default target entity type.Template<? extends Group.Type>
template()
Returns the template to build the target entity.
-
-
-
Field Detail
-
ADMINISTRATORS
public static final Group.Type ADMINISTRATORS
-
USERS
public static final Group.Type USERS
-
-
Method Detail
-
defaultTarget
protected java.lang.Class<? extends Group.Type> defaultTarget()
Description copied from class:Item
Returns the default target entity type. This method should be implemented by subclasses to specify the target entity type.- Specified by:
defaultTarget
in classItem<Group.Type>
- Returns:
- the default target entity type
-
defaultCreator
protected java.util.function.Supplier<? extends Group.Type> defaultCreator()
Description copied from class:Item
Returns the default target entity creator. This method should be implemented by subclasses to specify the entity creator.- Specified by:
defaultCreator
in classItem<Group.Type>
- Returns:
- the default target entity creator
-
category
protected java.lang.Class<? extends Group> category()
Description copied from class:Item
Returns the target entity category. This method should be implemented by subclasses to specify the entity category.- Specified by:
category
in classItem<Group.Type>
- Returns:
- the target entity category
-
template
public Template<? extends Group.Type> template()
Description copied from class:Item
Returns the template to build the target entity.This method should ultimately be used to provide the final entity template. Although, it may also provide a partial template that subclassed may complement.
- Overrides:
template
in classItem<Group.Type>
- Returns:
- the matching entity template
-
-