Class MembershipHierarchyPolicyProcessor
java.lang.Object
ch.tocco.nice2.persist.security.api.provider.AbstractCustomPolicyProcessor
ch.tocco.nice2.optional.membershiphierarchy.spi.policy.AbstractMembershipHierarchyPolicyProcessor
ch.tocco.nice2.optional.membershiphierarchy.impl.policy.MembershipHierarchyPolicyProcessor
- All Implemented Interfaces:
PolicyProcessor
@Component
public class MembershipHierarchyPolicyProcessor
extends AbstractMembershipHierarchyPolicyProcessor
Implementation of
AbstractMembershipHierarchyPolicyProcessor
for 'Membership'
entities.
All memberships that are related to an accessible address through 'relAddress' should be accessible as well.-
Field Summary
Fields inherited from class ch.tocco.nice2.persist.security.api.provider.AbstractCustomPolicyProcessor
typeManager
-
Constructor Summary
ConstructorDescriptionMembershipHierarchyPolicyProcessor
(SecurityManager securityManager, TypeManager typeManager, DataModel dataModel, AddressHierarchyResolver addressHierarchyResolver) -
Method Summary
Modifier and TypeMethodDescriptionprotected Node
createCondition
(Set<PrimaryKey> addressKeys, EntityModel entityModel) protected boolean
handleEntityModel
(EntityModel entityModel) protected boolean
handlePrincipal
(Principal principal) Methods inherited from class ch.tocco.nice2.optional.membershiphierarchy.spi.policy.AbstractMembershipHierarchyPolicyProcessor
doProcessPolicy
Methods inherited from class ch.tocco.nice2.persist.security.api.provider.AbstractCustomPolicyProcessor
appendRule, prependRule, processPolicy
-
Constructor Details
-
MembershipHierarchyPolicyProcessor
public MembershipHierarchyPolicyProcessor(SecurityManager securityManager, TypeManager typeManager, DataModel dataModel, AddressHierarchyResolver addressHierarchyResolver)
-
-
Method Details
-
createCondition
- Specified by:
createCondition
in classAbstractMembershipHierarchyPolicyProcessor
-
handlePrincipal
- Specified by:
handlePrincipal
in classAbstractCustomPolicyProcessor
-
handleEntityModel
- Specified by:
handleEntityModel
in classAbstractCustomPolicyProcessor
-