Class Privilege


  • public class Privilege
    extends Object
    Privilege
    • Constructor Detail

      • Privilege

        public Privilege()
        Constructor
    • Method Detail

      • setResourcePattern

        public void setResourcePattern​(String resourcePattern)
      • setActions

        public void setActions​(String actionsList)
      • matches

        public boolean matches​(String resourceName,
                               String action)
        Check if this privilege matches the given resource/action couple
        Parameters:
        resourceName - the resource name
        action - the action name
        Returns:
        true if the privilege matches