Class AddressMembershipHierarchyPolicyProcessor
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.AddressMembershipHierarchyPolicyProcessor
- All Implemented Interfaces:
PolicyProcessor
@Component
public class AddressMembershipHierarchyPolicyProcessor
extends AbstractMembershipHierarchyPolicyProcessor
Implementation of
AbstractMembershipHierarchyPolicyProcessor
for 'Address' and 'Address_user' entities.
All 'Address_user' (and the linked 'Address') entities of users that are related to an accessible address through 'relSingle_user_membership.relAddress' should be accessible as well.-
Field Summary
Fields inherited from class ch.tocco.nice2.persist.security.api.provider.AbstractCustomPolicyProcessor
typeManager
-
Constructor Summary
ConstructorDescriptionAddressMembershipHierarchyPolicyProcessor
(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
-
AddressMembershipHierarchyPolicyProcessor
public AddressMembershipHierarchyPolicyProcessor(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
-