Module aeonics.core

Class Role


  • public class Role
    extends Item<Role.Type>
    This item plays a role in the definition of the Security. It represents a role (or grant) that is given to a Group or to a User.

    There is no further meaning to the role than a label. It is a logical way to segment user access policies further down.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Role.Type
      Superclass for all role entities.
    • Constructor Summary

      Constructors 
      Constructor Description
      Role()  
    • Field Detail

      • SUPERADMIN

        public static final Role.Type SUPERADMIN
    • Constructor Detail

      • Role

        public Role()
    • Method Detail

      • defaultTarget

        protected java.lang.Class<? extends Role.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 class Item<Role.Type>
        Returns:
        the default target entity type
      • defaultCreator

        protected java.util.function.Supplier<? extends Role.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 class Item<Role.Type>
        Returns:
        the default target entity creator
      • category

        protected java.lang.Class<? extends Role> 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 class Item<Role.Type>
        Returns:
        the target entity category
      • template

        public Template<? extends Role.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 class Item<Role.Type>
        Returns:
        the matching entity template