X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=security%2Fsrc%2Fmain%2Fjava%2Forg%2Fwamblee%2Fsecurity%2Fauthorization%2FAuthorizationService.java;h=ab6a93c53c35a4ed826a10aaecb3eda5cb9f10a9;hb=8de36ff0206c996baf3ee4adc3e2293b12ff5f39;hp=feb7053c11c125454af0d58c342b4a92b69d0d53;hpb=ddd261f331280640c5b53c7128230b629ebcd268;p=utils diff --git a/security/src/main/java/org/wamblee/security/authorization/AuthorizationService.java b/security/src/main/java/org/wamblee/security/authorization/AuthorizationService.java index feb7053c..ab6a93c5 100644 --- a/security/src/main/java/org/wamblee/security/authorization/AuthorizationService.java +++ b/security/src/main/java/org/wamblee/security/authorization/AuthorizationService.java @@ -17,60 +17,56 @@ package org.wamblee.security.authorization; import org.wamblee.persistence.Persistent; - /** - * Service to determine if access to a certain resource is allowed. - * + * Service to determine if access to a certain resource is allowed. + * * @author Erik Brakkee */ public interface AuthorizationService extends Persistent { /** * Checks whether an operation is allowed on a resource. - * - * @param aResource Resource. - * @param aOperation Operation. - * + * + * @param aResource + * Resource. + * @param aOperation + * Operation. + * * @return Checks whether the operation is allowed on a resource. */ boolean isAllowed(Object aResource, Operation aOperation); - /** - * DOCUMENT ME! - * - * @param DOCUMENT ME! - * @param aResource DOCUMENT ME! - * @param aOperation DOCUMENT ME! - * - * @return DOCUMENT ME! - */ T check(T aResource, Operation aOperation); /** * Gets the authorization rules. - * + * * @return Rules. */ AuthorizationRule[] getRules(); /** * Appends a new authorization rule to the end. - * - * @param aRule Rule to append. + * + * @param aRule + * Rule to append. */ void appendRule(AuthorizationRule aRule); /** * Removes a rule. - * - * @param aIndex Index of the rule to remove. + * + * @param aIndex + * Index of the rule to remove. */ void removeRule(int aIndex); /** * Inserts a rule. - * - * @param aIndex Index of the position of the rule after insertion. - * @param aRule Rule to insert. + * + * @param aIndex + * Index of the position of the rule after insertion. + * @param aRule + * Rule to insert. */ void insertRuleAfter(int aIndex, AuthorizationRule aRule); }