Class BusinessUnitEntityInterceptorContribution
java.lang.Object
ch.tocco.nice2.businessunit.impl.intercept.BusinessUnitEntityInterceptorContribution
- All Implemented Interfaces:
EntityInterceptorContribution
@Component
public class BusinessUnitEntityInterceptorContribution
extends Object
implements EntityInterceptorContribution
EntityInterceptorContribution
that prevents updating the Business unit relation,
unless the business unit type is BusinessUnitType.MANUAL_SET
or the relation has not been set
by the interceptor.-
Constructor Summary
ConstructorDescriptionBusinessUnitEntityInterceptorContribution
(BusinessUnitManager businessUnitManager) -
Method Summary
-
Constructor Details
-
BusinessUnitEntityInterceptorContribution
-
-
Method Details
-
createInstance
- Specified by:
createInstance
in interfaceEntityInterceptorContribution
- Parameters:
entity
- the entitynext
- the next interceptor in the chain- Returns:
- the contributed interceptor
-