Class AuthorizationManagerHelper


  • @ApplicationScoped
    public class AuthorizationManagerHelper
    extends Object
    • Constructor Summary

      Constructors 
      Constructor Description
      AuthorizationManagerHelper​(org.uberfire.security.authz.AuthorizationManager authorizationManager, org.jboss.errai.security.shared.api.identity.User user)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean authorize​(String permission)  
      static boolean authorize​(String resourceType, String action)  
      static boolean authorize​(String permission, org.uberfire.security.authz.VotingStrategy votingStrategy)  
      static boolean authorize​(org.uberfire.security.authz.Permission permission)  
      static boolean authorize​(org.uberfire.security.authz.Permission permission, org.uberfire.security.authz.VotingStrategy votingStrategy)  
      static boolean authorize​(org.uberfire.security.Resource resource)  
      static boolean authorize​(org.uberfire.security.Resource resource, String action)  
      static boolean authorize​(org.uberfire.security.Resource resource, org.uberfire.security.authz.VotingStrategy votingStrategy)  
      static boolean authorize​(org.uberfire.security.Resource resource, org.uberfire.security.ResourceAction action)  
      static boolean authorize​(org.uberfire.security.Resource resource, org.uberfire.security.ResourceAction action, org.uberfire.security.authz.VotingStrategy votingStrategy)  
      static boolean authorize​(org.uberfire.security.ResourceType resourceType, org.uberfire.security.ResourceAction action)  
      static boolean authorize​(org.uberfire.security.ResourceType resourceType, org.uberfire.security.ResourceAction action, org.uberfire.security.authz.VotingStrategy votingStrategy)  
      static org.uberfire.security.authz.AuthorizationCheck check​(String permission)  
      static org.uberfire.security.authz.AuthorizationCheck check​(String permission, org.uberfire.security.authz.VotingStrategy votingStrategy)  
      static org.uberfire.security.authz.AuthorizationCheck check​(org.uberfire.security.Resource target)  
      static org.uberfire.security.authz.AuthorizationCheck check​(org.uberfire.security.Resource target, org.uberfire.security.authz.VotingStrategy votingStrategy)  
      org.uberfire.security.authz.AuthorizationManager getAuthorizationManager()  
      org.jboss.errai.security.shared.api.identity.User getUser()  
    • Constructor Detail

      • AuthorizationManagerHelper

        @Inject
        public AuthorizationManagerHelper​(org.uberfire.security.authz.AuthorizationManager authorizationManager,
                                          org.jboss.errai.security.shared.api.identity.User user)
    • Method Detail

      • authorize

        public static boolean authorize​(org.uberfire.security.Resource resource)
      • authorize

        public static boolean authorize​(org.uberfire.security.Resource resource,
                                        String action)
      • authorize

        public static boolean authorize​(org.uberfire.security.Resource resource,
                                        org.uberfire.security.ResourceAction action)
      • authorize

        public static boolean authorize​(String resourceType,
                                        String action)
      • authorize

        public static boolean authorize​(org.uberfire.security.ResourceType resourceType,
                                        org.uberfire.security.ResourceAction action)
      • authorize

        public static boolean authorize​(org.uberfire.security.Resource resource,
                                        org.uberfire.security.authz.VotingStrategy votingStrategy)
      • authorize

        public static boolean authorize​(org.uberfire.security.Resource resource,
                                        org.uberfire.security.ResourceAction action,
                                        org.uberfire.security.authz.VotingStrategy votingStrategy)
      • authorize

        public static boolean authorize​(org.uberfire.security.ResourceType resourceType,
                                        org.uberfire.security.ResourceAction action,
                                        org.uberfire.security.authz.VotingStrategy votingStrategy)
      • authorize

        public static boolean authorize​(String permission)
      • authorize

        public static boolean authorize​(org.uberfire.security.authz.Permission permission)
      • authorize

        public static boolean authorize​(String permission,
                                        org.uberfire.security.authz.VotingStrategy votingStrategy)
      • authorize

        public static boolean authorize​(org.uberfire.security.authz.Permission permission,
                                        org.uberfire.security.authz.VotingStrategy votingStrategy)
      • check

        public static org.uberfire.security.authz.AuthorizationCheck check​(org.uberfire.security.Resource target)
      • check

        public static org.uberfire.security.authz.AuthorizationCheck check​(org.uberfire.security.Resource target,
                                                                           org.uberfire.security.authz.VotingStrategy votingStrategy)
      • check

        public static org.uberfire.security.authz.AuthorizationCheck check​(String permission)
      • check

        public static org.uberfire.security.authz.AuthorizationCheck check​(String permission,
                                                                           org.uberfire.security.authz.VotingStrategy votingStrategy)
      • getAuthorizationManager

        public org.uberfire.security.authz.AuthorizationManager getAuthorizationManager()
      • getUser

        public org.jboss.errai.security.shared.api.identity.User getUser()