Class ResourceCheckImpl<C extends ResourceCheckImpl>

    • Constructor Summary

      Constructors 
      Constructor Description
      ResourceCheckImpl​(AuthorizationManager authorizationManager, org.uberfire.security.Resource resource, org.jboss.errai.security.shared.api.identity.User user)  
      ResourceCheckImpl​(AuthorizationManager authorizationManager, org.uberfire.security.Resource resource, org.jboss.errai.security.shared.api.identity.User user, org.uberfire.security.authz.VotingStrategy votingStrategy)  
      ResourceCheckImpl​(AuthorizationManager authorizationManager, org.uberfire.security.ResourceType resourceType, org.jboss.errai.security.shared.api.identity.User user)  
      ResourceCheckImpl​(AuthorizationManager authorizationManager, org.uberfire.security.ResourceType resourceType, org.jboss.errai.security.shared.api.identity.User user, org.uberfire.security.authz.VotingStrategy votingStrategy)  
    • Field Detail

      • resource

        protected org.uberfire.security.Resource resource
      • resourceAction

        protected org.uberfire.security.ResourceAction resourceAction
      • resourceType

        protected org.uberfire.security.ResourceType resourceType
      • user

        protected org.jboss.errai.security.shared.api.identity.User user
      • votingStrategy

        protected org.uberfire.security.authz.VotingStrategy votingStrategy
    • Constructor Detail

      • ResourceCheckImpl

        public ResourceCheckImpl​(AuthorizationManager authorizationManager,
                                 org.uberfire.security.Resource resource,
                                 org.jboss.errai.security.shared.api.identity.User user)
      • ResourceCheckImpl

        public ResourceCheckImpl​(AuthorizationManager authorizationManager,
                                 org.uberfire.security.ResourceType resourceType,
                                 org.jboss.errai.security.shared.api.identity.User user)
      • ResourceCheckImpl

        public ResourceCheckImpl​(AuthorizationManager authorizationManager,
                                 org.uberfire.security.Resource resource,
                                 org.jboss.errai.security.shared.api.identity.User user,
                                 org.uberfire.security.authz.VotingStrategy votingStrategy)
      • ResourceCheckImpl

        public ResourceCheckImpl​(AuthorizationManager authorizationManager,
                                 org.uberfire.security.ResourceType resourceType,
                                 org.jboss.errai.security.shared.api.identity.User user,
                                 org.uberfire.security.authz.VotingStrategy votingStrategy)
    • Method Detail

      • check

        protected void check​(org.uberfire.security.ResourceAction action)
      • action

        public C action​(org.uberfire.security.ResourceAction action)
        Description copied from interface: ResourceCheck
        Specifies the action to check
        Specified by:
        action in interface ResourceCheck<C extends ResourceCheckImpl>
        Parameters:
        action - The action to check
      • granted

        public C granted​(org.uberfire.mvp.Command onGranted)
        Description copied from interface: AuthorizationCheck
        Specifies the command instance to execute in case the check result is granted.
        Specified by:
        granted in interface AuthorizationCheck<C extends ResourceCheckImpl>
        Parameters:
        onGranted - The command to execute
      • denied

        public C denied​(org.uberfire.mvp.Command onDenied)
        Description copied from interface: AuthorizationCheck
        Specifies the command instance to execute in case the check result is denied.
        Specified by:
        denied in interface AuthorizationCheck<C extends ResourceCheckImpl>
        Parameters:
        onDenied - The command to execute