Module aeonics.core

Class Policy.TargetedDeny

  • Enclosing class:
    Policy

    public static class Policy.TargetedDeny
    extends Policy.TargetedPolicy
    A policy that validates the rule to deny access for specific target users, roles or groups. This policy should be used in an allow-by-default approach.
    • Constructor Detail

      • TargetedDeny

        public TargetedDeny()
    • Method Detail

      • defaultTarget

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

        protected java.util.function.Supplier<? extends Policy.TargetedDeny.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<Policy.Type>
        Returns:
        the default target entity creator
      • template

        public Template<? extends Policy.TargetedDeny.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 Policy.TargetedPolicy
        Returns:
        the matching entity template