|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectflux.security.Role
public class Role
Security role that grants or restricts access to different parts of engines in the cluster as well as the Operations Console.
All other privileges pertain to engines in the cluster only. There are two predefined, built-in roles: Administrator and Flow Chart Master. An Administrator has all privileges, while a Flow Chart Master can perform typical "day-to-day" activities but no "administrative" activities. A newly instantiated Role object contains the same privileges as the built-in Flow Chart Master role. Changing any information through this Role does not take effect until SecurityAdministrator.putRole() is called, which requires administrator privileges.
SecurityAdministrator
,
Serialized FormConstructor Summary | |
---|---|
Role()
|
Method Summary | |
---|---|
java.util.SortedSet<Privilege> |
getPrivileges()
Returns the privileges for this role. |
java.lang.String |
getRoleDescription()
Returns a description of this role meant for human consumption. |
java.lang.String |
getRoleName()
Returns the name of this role. |
boolean |
hasPrivilege(Privilege privilege)
Returns whether this role has this privilege. |
void |
setPrivileges(Privilege... privileges)
Sets the privileges for this role. |
void |
setRoleDescription(java.lang.String roleDescription)
Sets a description of this role meant for human consumption. |
void |
setRoleName(java.lang.String roleName)
Sets the name of this role. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Role()
Method Detail |
---|
public java.util.SortedSet<Privilege> getPrivileges()
public java.lang.String getRoleDescription()
public java.lang.String getRoleName()
public boolean hasPrivilege(Privilege privilege)
privilege
- Privilege to check in this role.
public void setPrivileges(Privilege... privileges)
privileges
- The privileges for this role.public void setRoleDescription(java.lang.String roleDescription)
roleDescription
- A description of this role meant for human
consumption.public void setRoleName(java.lang.String roleName)
roleName
- The name of this role.
java.lang.IllegalArgumentException
- If name is null or empty.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |