Class ModifySystemUsersInterceptor
java.lang.Object
de.hybris.platform.servicelayer.user.interceptors.ModifySystemUsersInterceptor
- All Implemented Interfaces:
Interceptor,RemoveInterceptor,ValidateInterceptor
public class ModifySystemUsersInterceptor
extends Object
implements RemoveInterceptor, ValidateInterceptor
Checks if the uid for a system user (admin, anonymous, admin group) is modified or if the system user should be
removed and throws InterceptorException in this case.
- Spring Bean ID:
- modifySystemUsersInterceptor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonRemove(Object model, InterceptorContext ctx) Called in themodelService.removeAll()method.voidonValidate(Object model, InterceptorContext ctx) Called in themodelService.saveAll()method.voidsetSearchRestrictionService(SearchRestrictionService searchRestrictionService) voidsetSessionService(SessionService sessionService) voidsetUserService(UserService userService)
-
Field Details
-
ADMIN_PASSWORD_REQUIRED
- See Also:
-
USER_DEACTIVATION_BLOCK_FOR_ALL_ADMINS
- See Also:
-
-
Constructor Details
-
ModifySystemUsersInterceptor
public ModifySystemUsersInterceptor()
-
-
Method Details
-
onValidate
Description copied from interface:ValidateInterceptorCalled in themodelService.saveAll()method. Validates the values of the given model.- Specified by:
onValidatein interfaceValidateInterceptor- Parameters:
model- the model which values has to be validatedctx- theInterceptorContext- Throws:
InterceptorException- if any values of the model are not valid.
-
onRemove
Description copied from interface:RemoveInterceptorCalled in themodelService.removeAll()method.- Specified by:
onRemovein interfaceRemoveInterceptor- Parameters:
model- the model which should be removedctx- theInterceptorContext- Throws:
InterceptorException- if the remove reports an error
-
setUserService
-
setSearchRestrictionService
-
setSessionService
-