Class RestrictRelationRemovalEntityInterceptorContribution
java.lang.Object
ch.tocco.nice2.usermanager.impl.businessunit.RestrictRelationRemovalEntityInterceptorContribution
- All Implemented Interfaces:
EntityInterceptorContribution
@Component
public class RestrictRelationRemovalEntityInterceptorContribution
extends Object
implements EntityInterceptorContribution
Prevents relations defined in the contribution as "restrictedRelations" from being removed,
if one of the "blockingRelations" is set
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptioncreateInstance
(Object entity, EntityInterceptor next) void
void
-
Constructor Details
-
RestrictRelationRemovalEntityInterceptorContribution
-
-
Method Details
-
setRestrictRelationRemovalContributions
@Autowired(required=false) public void setRestrictRelationRemovalContributions(List<RestrictRelationRemovalContribution> contributions) -
setSuppliedContributions
@Autowired public void setSuppliedContributions(List<RestrictRelationRemovalContributionSupplier> suppliers) -
createInstance
- Specified by:
createInstance
in interfaceEntityInterceptorContribution
- Parameters:
entity
- the entitynext
- the next interceptor in the chain- Returns:
- the contributed interceptor
-