Class SecurityActionFormInterceptor

java.lang.Object
ch.tocco.nice2.netui.impl.actions.security.SecurityActionFormInterceptor
All Implemented Interfaces:
FormInterceptor

@Component @Order(1100) public class SecurityActionFormInterceptor extends Object implements FormInterceptor
This form interceptor removes the actions from the forms which the current user is not allowed to execute. If you write your own FormInterceptor that adds actions to a form, you *must* make sure that you check the needed permissions in the form interceptor yourself and add the actions only, if the current user is allowed to execute them. To prevent this interceptor from removing actions that are added in other form interceptors, this interceptor should run before all the other interceptors.