Package net.timewalker.ffmq4.security
Class Privilege
- java.lang.Object
-
- net.timewalker.ffmq4.security.Privilege
-
public class Privilege extends Object
Privilege
-
-
Constructor Summary
Constructors Constructor Description Privilege()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanmatches(String resourceName, String action)Check if this privilege matches the given resource/action couplevoidsetActions(String actionsList)voidsetResourcePattern(String resourcePattern)StringtoString()
-
-
-
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 nameaction- the action name- Returns:
- true if the privilege matches
-
-