|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.di.api.security.Role
public class Role
This class defines a specific role assigned to a user.
| Field Summary | |
|---|---|
protected static java.lang.String |
ALLIST
A String constant for the ALs. |
static int |
ROLE_ADMIN
The Id of the admin privileges. |
static int |
ROLE_EXECUTE
The Id of the execute privileges. |
static java.lang.String[] |
ROLE_NAMES
The string representation of the available privileges. |
static int |
ROLE_READ
The Id of the read privileges. |
| Constructor Summary | |
|---|---|
Role()
Constructs a role |
|
Role(java.lang.String aRole,
java.util.TreeMap<java.lang.String,java.util.TreeMap<java.lang.String,java.util.Vector<java.lang.String>>> aMap)
Constructs a role |
|
| Method Summary | |
|---|---|
boolean |
canExecuteAL(java.lang.String aConfigId,
java.lang.String aAssemblyLine)
Check that the specific AssemblyLine could be started by the user. |
boolean |
canExecuteAll()
Returns whether specified user is allowed to execute everything. |
boolean |
canExecuteConfig(java.lang.String aConfigId)
Returns whether specified user is allowed to execute given configuration. |
boolean |
canExecuteConfigALs(java.lang.String aConfigId)
Returns whether specified user is allowed to execute assembly lines from a given configuration. |
boolean |
canReadAll()
Returns whether specified user is allowed to read everything. |
boolean |
canReadConfig(java.lang.String aConfigId)
Check that the specific configuration could be read by the user. |
int |
getRole()
Retrives the ID of the given privileges level . |
java.lang.String |
getRoleName()
Retrieves the name of the role. |
boolean |
isAdmin()
Verify if role is admin. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final java.lang.String ALLIST
public static final int ROLE_ADMIN
public static final int ROLE_READ
public static final int ROLE_EXECUTE
public static final java.lang.String[] ROLE_NAMES
| Constructor Detail |
|---|
public Role()
public Role(java.lang.String aRole,
java.util.TreeMap<java.lang.String,java.util.TreeMap<java.lang.String,java.util.Vector<java.lang.String>>> aMap)
throws DIException
aRole - the role nameaMap - the objects this role applies on.
DIException - if the aRole parameter is either null or an
unsupportable role.| Method Detail |
|---|
public int getRole()
ROLE_ADMIN,
ROLE_READ,
ROLE_EXECUTEpublic java.lang.String getRoleName()
public boolean isAdmin()
ROLE_ADMINpublic boolean canReadConfig(java.lang.String aConfigId)
aConfigId - the configInstance identifier
public boolean canExecuteAL(java.lang.String aConfigId,
java.lang.String aAssemblyLine)
aConfigId - the configInstance that has this ALaAssemblyLine - the name of the AL to check for
public boolean canExecuteConfigALs(java.lang.String aConfigId)
aConfigId - the configInstance identifier
public boolean canExecuteConfig(java.lang.String aConfigId)
aConfigId - the configInstance identifier
public boolean canExecuteAll()
public boolean canReadAll()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||