- java.lang.Object
-
- aeonics.template.Item<Policy.Type>
-
- aeonics.entity.security.Policy
-
- aeonics.entity.security.Policy.TargetedPolicy
-
- Direct Known Subclasses:
Policy.TargetedAllow
,Policy.TargetedDeny
- Enclosing class:
- Policy
public abstract static class Policy.TargetedPolicy extends Policy
Base policy that can apply to multiple targets:User
,Role
, orGroup
.Implementations are encouraged to call
Policy.TargetedPolicy.Type.appliesTo(User.Type)
first in order to determine if the specified user is a target of the policy.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Policy.TargetedPolicy.Type
Superclass for all targeted policy entities.-
Nested classes/interfaces inherited from class aeonics.entity.security.Policy
Policy.Allow, Policy.Deny, Policy.TargetedAllow, Policy.TargetedDeny, Policy.TargetedPolicy
-
-
Constructor Summary
Constructors Constructor Description TargetedPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Template<? extends Policy.TargetedPolicy.Type>
template()
Returns the template to build the target entity.-
Methods inherited from class aeonics.template.Item
creator, creator, defaultCreator, defaultTarget, defaultType, from, target, target, type, type
-
-
-
-
Method Detail
-
template
public Template<? extends Policy.TargetedPolicy.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.
-
-