|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.michelin.cio.hudson.plugins.rolestrategy.Role
public final class Role
Class representing a role, which holds a set of Permissions.
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object o)
Compare role names. |
java.lang.String |
getName()
Getter for the role name. |
java.util.regex.Pattern |
getPattern()
Getter for the regexp pattern. |
java.util.Set<hudson.security.Permission> |
getPermissions()
Getter for the Permissions set. |
java.lang.Boolean |
hasAnyPermission(java.util.Set<hudson.security.Permission> permissions)
Checks if the role holds any of the given Permission. |
java.lang.Boolean |
hasPermission(hudson.security.Permission permission)
Checks if the role holds the given Permission. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public final java.lang.String getName()
public final java.util.regex.Pattern getPattern()
public final java.util.Set<hudson.security.Permission> getPermissions()
Permissions set.
Permissions setpublic final java.lang.Boolean hasPermission(hudson.security.Permission permission)
Permission.
permission - The permission you want to check
public final java.lang.Boolean hasAnyPermission(java.util.Set<hudson.security.Permission> permissions)
Permission.
permissions - A Permissions set
Permissionspublic int compareTo(java.lang.Object o)
Used to sort the set.
compareTo in interface java.lang.Comparableo - The object you want to compare this instance to
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||