Class RestrictBusinessUnitRemovalContributionSupplier
java.lang.Object
ch.tocco.nice2.usermanager.impl.businessunit.RestrictBusinessUnitRemovalContributionSupplier
- All Implemented Interfaces:
RestrictRelationRemovalContributionSupplier
@Component
public class RestrictBusinessUnitRemovalContributionSupplier
extends Object
implements RestrictRelationRemovalContributionSupplier
creates contributions for the
RestrictRelationRemovalEntityInterceptorContribution
based on the
HierarchySpecifications for the entity models User and Address so that the relation defined as businessUnitRelation
cannot be removed if any of the blocking relations are set.-
Constructor Summary
ConstructorDescriptionRestrictBusinessUnitRemovalContributionSupplier
(BusinessUnitManager businessUnitManager, Context context, QueryBuilderFactory queryBuilderFactory) -
Method Summary
Modifier and TypeMethodDescriptionget()
void
setHierarchySpecifications
(List<HierarchySpecificationContribution> hierarchySpecifications)
-
Constructor Details
-
RestrictBusinessUnitRemovalContributionSupplier
public RestrictBusinessUnitRemovalContributionSupplier(BusinessUnitManager businessUnitManager, Context context, QueryBuilderFactory queryBuilderFactory)
-
-
Method Details
-
get
- Specified by:
get
in interfaceRestrictRelationRemovalContributionSupplier
-
setHierarchySpecifications
@Autowired(required=false) public void setHierarchySpecifications(List<HierarchySpecificationContribution> hierarchySpecifications)
-