Class PermissionCheckImpl

    • Field Detail

      • permission

        protected String permission
      • user

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

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

      • PermissionCheckImpl

        public PermissionCheckImpl​(PermissionManager permissionManager,
                                   String permission,
                                   org.jboss.errai.security.shared.api.identity.User user,
                                   org.uberfire.security.authz.VotingStrategy votingStrategy)
    • Method Detail

      • check

        protected void check()
      • granted

        public AuthorizationCheck 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
        Parameters:
        onGranted - The command to execute
      • denied

        public AuthorizationCheck 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
        Parameters:
        onDenied - The command to execute
      • result

        public boolean result()
        Description copied from interface: AuthorizationCheck
        Get the check result value
        Specified by:
        result in interface AuthorizationCheck
        Returns:
        true if granted, false otherwise