import org.wamblee.usermgt.User;
-
/**
- * Represents an authorization rule to determine whether an operation is allowed on a resource.
- *
+ * Represents an authorization rule to determine whether an operation is allowed
+ * on a resource.
+ *
* @author Erik Brakkee
*/
public interface AuthorizationRule extends Persistent {
/**
- * Returns the supported object types for which this authorization
- * rule applies. This can be used by the authorization service for
- * optimization.
- *
+ * Returns the supported object types for which this authorization rule
+ * applies. This can be used by the authorization service for optimization.
+ *
* @return Array of supported types.
*/
Class[] getSupportedTypes();
/**
- * Determines whether an operation is allowed on a certain
- * resource. The rule implementation must be prepared to deal with
- * resources for which it does not apply. In those cases it should return
+ * Determines whether an operation is allowed on a certain resource. The
+ * rule implementation must be prepared to deal with resources for which it
+ * does not apply. In those cases it should return
* {@link AuthorizationResult#UNSUPPORTED_RESOURCE}.
- *
- * @param aResource Resource.
- * @param anOperation Operation.
- * @param aUser Current user.
- *
+ *
+ * @param aResource
+ * Resource.
+ * @param anOperation
+ * Operation.
+ * @param aUser
+ * Current user.
+ *
* @return Authorization result.
*/
AuthorizationResult isAllowed(Object aResource, Operation anOperation,