Package com.ibm.di.api.jmx.mbeans
Interface SecurityRegistryMBean
-
- All Known Implementing Classes:
SecurityRegistry
public interface SecurityRegistryMBeanThis 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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.
-
-
-
Method Detail
-
userIsAdmin
java.lang.Boolean userIsAdmin(java.lang.String aUserId) throws DIExceptionReturns whether specified user is granted admin role.- 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
java.lang.Boolean userCanReadConfig(java.lang.String aUserId, java.lang.String aConfigId) throws DIExceptionReturns whether specified user is allowed to read given configuration.- 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
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.- 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
java.lang.Boolean userCanExecuteConfig(java.lang.String aUserId, java.lang.String aConfigId) throws DIExceptionReturns whether specified user is allowed to execute given configuration.- 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
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.- 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
java.lang.Boolean userCanExecuteAll(java.lang.String aUserId) throws DIExceptionReturns whether specified user is allowed to execute everything.- Parameters:
aUserId- the id of the user- Returns:
- return
trueonly ifaUserIdis allowed to execute everything. - Throws:
DIException- if Runtime or Security exception occurs
-
userCanReadAll
java.lang.Boolean userCanReadAll(java.lang.String aUserId) throws DIExceptionReturns whether specified user is allowed to read everything.- Parameters:
aUserId- the id of the user- Returns:
- return
trueonly ifaUserIdis allowed to read everything. - Throws:
DIException- if Runtime or Security exception occurs
-
-