Class UserMembershipHierarchyPolicyProcessor
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.UserMembershipHierarchyPolicyProcessor
- All Implemented Interfaces:
PolicyProcessor
@Component
public class UserMembershipHierarchyPolicyProcessor
extends AbstractMembershipHierarchyPolicyProcessor
Implementation of
AbstractMembershipHierarchyPolicyProcessor
for 'User' entities.
All 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
ConstructorDescriptionUserMembershipHierarchyPolicyProcessor
(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
-
UserMembershipHierarchyPolicyProcessor
public UserMembershipHierarchyPolicyProcessor(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
-