|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ibm.di.api.local.impl.SecurityRegistryImpl
public class SecurityRegistryImpl
This interface provides information about various restrictions a user may have. It lets you query what rights a user is granted and whether he/she is authorized to execute a specific action.
| Constructor Summary | |
|---|---|
SecurityRegistryImpl(SessionImpl aSession)
Class constructor. |
|
| Method Summary | |
|---|---|
boolean |
userCanExecuteAL(String aUserId,
String aConfigId,
String aAssemblyLine)
Returns whether specified user is allowed to execute given AL from a given configuration. |
boolean |
userCanExecuteAll(String aUserId)
Returns whether specified user is allowed to execute everything. |
boolean |
userCanExecuteConfig(String aUserId,
String aConfigId)
Returns whether specified user is allowed to execute given configuration. |
boolean |
userCanExecuteConfigALs(String aUserId,
String aConfigId)
Returns whether specified user is allowed to execute assembly lines from a given configuration. |
boolean |
userCanReadAll(String aUserId)
Returns whether specified user is allowed to read everything. |
boolean |
userCanReadConfig(String aUserId,
String aConfigId)
Returns whether specified user is allowed to read given configuration. |
boolean |
userIsAdmin(String aUserId)
Returns whether specified user is granted admin role. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SecurityRegistryImpl(SessionImpl aSession)
aSession - SessionImpl instance| Method Detail |
|---|
public boolean userIsAdmin(String aUserId)
throws DIException
userIsAdmin in interface SecurityRegistryaUserId - the id of the user
true if the user is granted the admin role
DIException - if Runtime or Security exception occurs
public boolean userCanReadConfig(String aUserId,
String aConfigId)
throws DIException
userCanReadConfig in interface SecurityRegistryaUserId - the id of the useraConfigId - the id of the configuration
aUserId is allowed to read
aConfigId.
DIException - if Runtime or Security exception occurs
public boolean userCanExecuteAL(String aUserId,
String aConfigId,
String aAssemblyLine)
throws DIException
userCanExecuteAL in interface SecurityRegistryaUserId - the id of the useraConfigId - the id of the configurationaAssemblyLine - the name of the assembly line
true only if aUserId is
allowed to execute aAssemblyLine from
configuration aConfigId.
DIException - if Runtime or Security exception occurs
public boolean userCanExecuteConfig(String aUserId,
String aConfigId)
throws DIException
userCanExecuteConfig in interface SecurityRegistryaUserId - the id of the useraConfigId - the id of the configuration
true only if aUserId is
allowed to execute configuration aConfigId.
DIException - if Runtime or Security exception occurs
public boolean userCanExecuteConfigALs(String aUserId,
String aConfigId)
throws DIException
userCanExecuteConfigALs in interface SecurityRegistryaUserId - the id of the useraConfigId - the id of the configuration
true only if aUserId is
allowed to execute assembly lines from configuration
aConfigId.
DIException - if Runtime or Security exception occurs
public boolean userCanExecuteAll(String aUserId)
throws DIException
userCanExecuteAll in interface SecurityRegistryaUserId - the id of the user
true only if aUserId is
allowed to execute everything.
DIException - if Runtime or Security exception occurs
public boolean userCanReadAll(String aUserId)
throws DIException
userCanReadAll in interface SecurityRegistryaUserId - the id of the user
true only if aUserId is
allowed to read everything.
DIException - if Runtime or Security exception occurs
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||