|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.di.api.jmx.mbeans.BaseAdmin
com.ibm.di.api.jmx.mbeans.SecurityRegistry
public class SecurityRegistry
This class 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.
| Field Summary | |
|---|---|
static java.lang.String |
MBEAN_ID
Id of the MBean. |
static java.lang.String |
MBEAN_TYPE
Type of the MBean. |
| Constructor Summary | |
|---|---|
SecurityRegistry(SecurityRegistry aSecurityRegistry)
Class constructor SecurityRegistry |
|
| Method Summary | |
|---|---|
java.lang.String |
getId()
Reads attribute "Id". |
java.lang.String |
getType()
Reads attribute "Type". |
java.lang.Boolean |
userCanExecuteAL(java.lang.String aUserId,
java.lang.String aConfigId,
java.lang.String aAssemblyLine)
Returns whether specified user is allowed to execute given AL from a given configuration. |
java.lang.Boolean |
userCanExecuteAll(java.lang.String aUserId)
Returns whether specified user is allowed to execute everything. |
java.lang.Boolean |
userCanExecuteConfig(java.lang.String aUserId,
java.lang.String aConfigId)
Returns whether specified user is allowed to execute given configuration. |
java.lang.Boolean |
userCanExecuteConfigALs(java.lang.String aUserId,
java.lang.String aConfigId)
Returns whether specified user is allowed to execute assembly lines from a given configuration. |
java.lang.Boolean |
userCanReadAll(java.lang.String aUserId)
Returns whether specified user is allowed to read everything. |
java.lang.Boolean |
userCanReadConfig(java.lang.String aUserId,
java.lang.String aConfigId)
Returns whether specified user is allowed to read given configuration. |
java.lang.Boolean |
userIsAdmin(java.lang.String aUserId)
Returns whether specified user is granted admin role. |
| Methods inherited from class com.ibm.di.api.jmx.mbeans.BaseAdmin |
|---|
getCurrentUserId, getKeyPropertyList |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String MBEAN_TYPE
public static final java.lang.String MBEAN_ID
| Constructor Detail |
|---|
public SecurityRegistry(SecurityRegistry aSecurityRegistry)
SecurityRegistry
aSecurityRegistry - | Method Detail |
|---|
public java.lang.String getType()
getType() and getId() are used in a common
schema for object names for all MBeans in the management package. The key
properties part of the object name of each MBean is defined as
"type=" + getType() + ",id=" + getId(), for example
"type=AssemblyLine,id=Hello".
getType in interface BaseMBeanpublic java.lang.String getId()
getType() and getId() are used in a common
schema for object names for all MBeans in the management package. The key
properties part of the object name of each MBean is defined as
"type=" + getType() + ",id=" + getId(), for example
"type=AssemblyLine,id=Hello".
getId in interface BaseMBean
public java.lang.Boolean userIsAdmin(java.lang.String aUserId)
throws DIException
userIsAdmin in interface SecurityRegistryMBeanaUserId - the id of the user
true if the user is granted the admin role
DIException - if Runtime or Security exception occurs
public java.lang.Boolean userCanReadConfig(java.lang.String aUserId,
java.lang.String aConfigId)
throws DIException
userCanReadConfig in interface SecurityRegistryMBeanaUserId - the id of the useraConfigId - the id of the configuration
true only if aUserId is
allowed to read aConfigId.
DIException - if Runtime or Security exception occurs
public java.lang.Boolean userCanExecuteAL(java.lang.String aUserId,
java.lang.String aConfigId,
java.lang.String aAssemblyLine)
throws DIException
userCanExecuteAL in interface SecurityRegistryMBeanaUserId - 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 java.lang.Boolean userCanExecuteConfig(java.lang.String aUserId,
java.lang.String aConfigId)
throws DIException
userCanExecuteConfig in interface SecurityRegistryMBeanaUserId - 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 java.lang.Boolean userCanExecuteConfigALs(java.lang.String aUserId,
java.lang.String aConfigId)
throws DIException
userCanExecuteConfigALs in interface SecurityRegistryMBeanaUserId - 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 java.lang.Boolean userCanExecuteAll(java.lang.String aUserId)
throws DIException
userCanExecuteAll in interface SecurityRegistryMBeanaUserId - the id of the user
true only if aUserId is
allowed to execute everything.
DIException - if Runtime or Security exception occurs
public java.lang.Boolean userCanReadAll(java.lang.String aUserId)
throws DIException
userCanReadAll in interface SecurityRegistryMBeanaUserId - 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 | |||||||||