Package com.ibm.di.api.jmx.mbeans
Class SecurityRegistry
- java.lang.Object
-
- com.ibm.di.api.jmx.mbeans.BaseAdmin
-
- com.ibm.di.api.jmx.mbeans.SecurityRegistry
-
- All Implemented Interfaces:
BaseAdminMBean,BaseMBean,SecurityRegistryMBean
public class SecurityRegistry extends BaseAdmin implements SecurityRegistryMBean
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
Fields Modifier and Type Field Description static java.lang.StringMBEAN_IDId of the MBean.static java.lang.StringMBEAN_TYPEType of the MBean.
-
Constructor Summary
Constructors Constructor Description SecurityRegistry(SecurityRegistry aSecurityRegistry)Class constructorSecurityRegistry
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetId()Reads attribute "Id".java.lang.StringgetType()Reads attribute "Type".java.lang.BooleanuserCanExecuteAL(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.BooleanuserCanExecuteAll(java.lang.String aUserId)Returns whether specified user is allowed to execute everything.java.lang.BooleanuserCanExecuteConfig(java.lang.String aUserId, java.lang.String aConfigId)Returns whether specified user is allowed to execute given configuration.java.lang.BooleanuserCanExecuteConfigALs(java.lang.String aUserId, java.lang.String aConfigId)Returns whether specified user is allowed to execute assembly lines from a given configuration.java.lang.BooleanuserCanReadAll(java.lang.String aUserId)Returns whether specified user is allowed to read everything.java.lang.BooleanuserCanReadConfig(java.lang.String aUserId, java.lang.String aConfigId)Returns whether specified user is allowed to read given configuration.java.lang.BooleanuserIsAdmin(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
-
-
-
-
Field Detail
-
MBEAN_TYPE
public static final java.lang.String MBEAN_TYPE
Type of the MBean.- See Also:
- Constant Field Values
-
MBEAN_ID
public static final java.lang.String MBEAN_ID
Id of the MBean.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SecurityRegistry
public SecurityRegistry(SecurityRegistry aSecurityRegistry)
Class constructorSecurityRegistry- Parameters:
aSecurityRegistry-
-
-
Method Detail
-
getType
public java.lang.String getType()
Reads attribute "Type".getType()andgetId()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
public java.lang.String getId()
Reads attribute "Id". The "Id" value should be different for different MBeans of the same type.getType()andgetId()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".
-
userIsAdmin
public java.lang.Boolean userIsAdmin(java.lang.String aUserId) throws DIExceptionReturns whether specified user is granted admin role.- Specified by:
userIsAdminin interfaceSecurityRegistryMBean- Parameters:
aUserId- the id of the user- Returns:
trueif the user is granted the admin role- Throws:
DIException- if Runtime or Security exception occurs
-
userCanReadConfig
public java.lang.Boolean userCanReadConfig(java.lang.String aUserId, java.lang.String aConfigId) throws DIExceptionReturns whether specified user is allowed to read given configuration.- Specified by:
userCanReadConfigin interfaceSecurityRegistryMBean- Parameters:
aUserId- the id of the useraConfigId- the id of the configuration- Returns:
- return
trueonly ifaUserIdis allowed to readaConfigId. - Throws:
DIException- if Runtime or Security exception occurs
-
userCanExecuteAL
public java.lang.Boolean userCanExecuteAL(java.lang.String aUserId, java.lang.String aConfigId, java.lang.String aAssemblyLine) throws DIExceptionReturns whether specified user is allowed to execute given AL from a given configuration.- Specified by:
userCanExecuteALin interfaceSecurityRegistryMBean- Parameters:
aUserId- the id of the useraConfigId- the id of the configurationaAssemblyLine- the name of the assembly line- Returns:
- return
trueonly ifaUserIdis allowed to executeaAssemblyLinefrom configurationaConfigId. - Throws:
DIException- if Runtime or Security exception occurs
-
userCanExecuteConfig
public java.lang.Boolean userCanExecuteConfig(java.lang.String aUserId, java.lang.String aConfigId) throws DIExceptionReturns whether specified user is allowed to execute given configuration.- Specified by:
userCanExecuteConfigin interfaceSecurityRegistryMBean- Parameters:
aUserId- the id of the useraConfigId- the id of the configuration- Returns:
- return
trueonly ifaUserIdis allowed to execute configurationaConfigId. - Throws:
DIException- if Runtime or Security exception occurs
-
userCanExecuteConfigALs
public java.lang.Boolean userCanExecuteConfigALs(java.lang.String aUserId, java.lang.String aConfigId) throws DIExceptionReturns whether specified user is allowed to execute assembly lines from a given configuration.- Specified by:
userCanExecuteConfigALsin interfaceSecurityRegistryMBean- Parameters:
aUserId- the id of the useraConfigId- the id of the configuration- Returns:
- return
trueonly ifaUserIdis allowed to execute assembly lines from configurationaConfigId. - Throws:
DIException- if Runtime or Security exception occurs
-
userCanExecuteAll
public java.lang.Boolean userCanExecuteAll(java.lang.String aUserId) throws DIExceptionReturns whether specified user is allowed to execute everything.- Specified by:
userCanExecuteAllin interfaceSecurityRegistryMBean- Parameters:
aUserId- the id of the user- Returns:
- return
trueonly ifaUserIdis allowed to execute everything. - Throws:
DIException- if Runtime or Security exception occurs
-
userCanReadAll
public java.lang.Boolean userCanReadAll(java.lang.String aUserId) throws DIExceptionReturns whether specified user is allowed to read everything.- Specified by:
userCanReadAllin interfaceSecurityRegistryMBean- Parameters:
aUserId- the id of the user- Returns:
- return
trueonly ifaUserIdis allowed to read everything. - Throws:
DIException- if Runtime or Security exception occurs
-
-