|
|||||||||||
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 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 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(String aRole,
TreeMap<String,TreeMap<String,Vector<String>>> aMap)
Constructs a role |
Method Summary | |
---|---|
boolean |
canExecuteAL(String aConfigId,
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(String aConfigId)
Returns whether specified user is allowed to execute given configuration. |
boolean |
canExecuteConfigALs(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(String aConfigId)
Check that the specific configuration could be read by the user. |
int |
getRole()
Retrives the ID of the given privileges level . |
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 String ALLIST
public static final int ROLE_ADMIN
public static final int ROLE_READ
public static final int ROLE_EXECUTE
public static final String[] ROLE_NAMES
Constructor Detail |
---|
public Role()
public Role(String aRole, TreeMap<String,TreeMap<String,Vector<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_EXECUTE
public String getRoleName()
public boolean isAdmin()
ROLE_ADMIN
public boolean canReadConfig(String aConfigId)
aConfigId
- the configInstance identifier
public boolean canExecuteAL(String aConfigId, String aAssemblyLine)
aConfigId
- the configInstance that has this ALaAssemblyLine
- the name of the AL to check for
public boolean canExecuteConfigALs(String aConfigId)
aConfigId
- the configInstance identifier
public boolean canExecuteConfig(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 |