|
|||||||||
| 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(Object o)
Compare role names. |
String |
getName()
Getter for the role name. |
Pattern |
getPattern()
Getter for the regexp pattern. |
Set<hudson.security.Permission> |
getPermissions()
Getter for the Permissions set. |
Boolean |
hasAnyPermission(Set<hudson.security.Permission> permissions)
Checks if the role holds any of the given Permission. |
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 String getName()
public final Pattern getPattern()
public final Set<hudson.security.Permission> getPermissions()
Permissions set.
Permissions setpublic final Boolean hasPermission(hudson.security.Permission permission)
Permission.
permission - The permission you want to check
public final Boolean hasAnyPermission(Set<hudson.security.Permission> permissions)
Permission.
permissions - A Permissions set
Permissionspublic int compareTo(Object o)
Used to sort the set.
compareTo in interface 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 | ||||||||