Class AllStrategyHandler
java.lang.Object
ch.tocco.nice2.businessunit.impl.hierarchy.strategies.AllStrategyHandler
- All Implemented Interfaces:
HierarchyStrategy
The strategy handler for the
HierarchyStrategyType.ALL
type. This is the default and does not add any new
rules or conditions to existing rules.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
handleReadAccess
(PolicyBuilder policyBuilder, HierarchySpecification specification, BusinessUnit currentBusinessUnit) Modify or replace or addrules
to to achieve the desired behaviour for this read access strategy.void
handleWriteAccess
(PolicyBuilder policyBuilder, HierarchySpecification specification, BusinessUnit currentBusinessUnit) Modify or replace or addrules
to to achieve the desired behaviour for this write access strategy.boolean
supports
(HierarchyStrategyType strategyType)
-
Constructor Details
-
AllStrategyHandler
public AllStrategyHandler()
-
-
Method Details
-
supports
- Specified by:
supports
in interfaceHierarchyStrategy
- Returns:
- `true` if this
HierarchyStrategy
supports the givenHierarchyStrategyType
.
-
handleReadAccess
public void handleReadAccess(PolicyBuilder policyBuilder, HierarchySpecification specification, BusinessUnit currentBusinessUnit) Description copied from interface:HierarchyStrategy
Modify or replace or addrules
to to achieve the desired behaviour for this read access strategy.- Specified by:
handleReadAccess
in interfaceHierarchyStrategy
-
handleWriteAccess
public void handleWriteAccess(PolicyBuilder policyBuilder, HierarchySpecification specification, BusinessUnit currentBusinessUnit) Description copied from interface:HierarchyStrategy
Modify or replace or addrules
to to achieve the desired behaviour for this write access strategy.- Specified by:
handleWriteAccess
in interfaceHierarchyStrategy
-