View Javadoc
1   package civitas.common;
2   
3   import org.springframework.stereotype.Controller;
4   
5   @Controller
6   public class CheckAccess {
7   
8   	public void apply(final Operation operation, final String string, final String objectID) {
9   		if (operation != Operation.POST) {
10  			throw new SecurityException(operation + " is not authorized for " + objectID + " by " + string);
11  		}
12  	}
13  }