JavaScript is disabled on your browser.
javolution.context

Class SecurityContext.Permission<T>

  • Enclosing class:
    SecurityContext


    public static class SecurityContext.Permission<T>
    extends Object 
    A permission associated to a specific class/action/instance. There are three levels of permission possible, at the class/category level, at the action level and at the instance level. Any permission granted/revoked at the higher level is explicitly granted/revoked at the lower level. The order in which the permission are granted/revoked is important. For example, it is possible to grant a permission at the class level, then to revoke it at the action or instance level. In which case, for that class the permission is granted for all actions/instances except for those actions/instances for which the permission has been explicitly revoked.
    • Constructor Detail

      • SecurityContext.Permission

        public SecurityContext.Permission(Class<? super T> category)
        Creates a security permission for all actions of the specified category.
      • SecurityContext.Permission

        public SecurityContext.Permission(Class<? super T> category,
         String action)
        Creates a security permission for the specified action of the specified category.
      • SecurityContext.Permission

        public SecurityContext.Permission(Class<? super T> category,
         String action,
         T instance)
        Creates a security permission for the specified instance and the specified action of the specified category.
    • Method Detail

      • getCategory

        public Class<? super T> getCategory()
        Returns the permission category or null for all categories.
      • getAction

        public String getAction()
        Returns the permission action or null for all actions.
      • getInstance

        public T getInstance()
        Returns the permission instance or null for all instances.
      • implies

        public boolean implies(SecurityContext.Permission<?> that)
        Checks if the specified permission is automatically granted/revoked by 'this' permission being granted/revoked.
        Parameters:
        that - the permission to check.
        Returns:
        true if this permission being granted/revoked implies that the specified permission is granted/revoked; false otherwise.

Copyright © 2005-2013 Javolution. All Rights Reserved.

AltStyle によって変換されたページ (->オリジナル) /