/**
* Authorization exception to be thrown when a resouce may not be accessed.
- *
+ *
* @author Erik Brakkee
*/
public class AuthorizationException extends RuntimeException {
- /**
- * DOCUMENT ME!
- */
private Object resource;
- /**
- * DOCUMENT ME!
- */
private Operation operation;
-/**
+ /**
* Creates a new AuthorizationException object.
- *
- * @param aResource DOCUMENT ME!
- * @param aOperation DOCUMENT ME!
+ *
*/
public AuthorizationException(Object aResource, Operation aOperation) {
- super("Operation '" + aOperation + "' not allowed on '" + aResource
- + "'");
- resource = aResource;
- operation = aOperation;
+ super("Operation '" + aOperation + "' not allowed on '" + aResource +
+ "'");
+ resource = aResource;
+ operation = aOperation;
}
- /**
- * DOCUMENT ME!
- *
- * @return DOCUMENT ME!
- */
public Object getResource() {
return resource;
}
- /**
- * DOCUMENT ME!
- *
- * @return DOCUMENT ME!
- */
public Operation getOperation() {
return operation;
}