Class ModifySystemUsersInterceptor
- java.lang.Object
-
- de.hybris.platform.servicelayer.user.interceptors.ModifySystemUsersInterceptor
-
- All Implemented Interfaces:
Interceptor,RemoveInterceptor,ValidateInterceptor
public class ModifySystemUsersInterceptor extends java.lang.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 Modifier and Type Field Description static java.lang.StringADMIN_PASSWORD_REQUIRED
-
Constructor Summary
Constructors Constructor Description ModifySystemUsersInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonRemove(java.lang.Object model, InterceptorContext ctx)Called in themodelService.removeAll()method.voidonValidate(java.lang.Object model, InterceptorContext ctx)Called in themodelService.saveAll()method.voidsetSearchRestrictionService(SearchRestrictionService searchRestrictionService)voidsetSessionService(SessionService sessionService)voidsetUserService(UserService userService)
-
-
-
Field Detail
-
ADMIN_PASSWORD_REQUIRED
public static final java.lang.String ADMIN_PASSWORD_REQUIRED
- See Also:
- Constant Field Values
-
-
Method Detail
-
onValidate
public void onValidate(java.lang.Object model, InterceptorContext ctx) throws InterceptorExceptionDescription 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
public void onRemove(java.lang.Object model, InterceptorContext ctx) throws InterceptorExceptionDescription 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
public void setUserService(UserService userService)
-
setSearchRestrictionService
public void setSearchRestrictionService(SearchRestrictionService searchRestrictionService)
-
setSessionService
public void setSessionService(SessionService sessionService)
-
-