Package com.ibm.di.api.local
Interface SecurityRegistry
-
- All Known Implementing Classes:
SecurityRegistryImpl
public interface SecurityRegistry
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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.boolean
userCanExecuteAll(java.lang.String aUserId)
Returns whether specified user is allowed to execute everything.boolean
userCanExecuteConfig(java.lang.String aUserId, java.lang.String aConfigId)
Returns whether specified user is allowed to execute given configuration.boolean
userCanExecuteConfigALs(java.lang.String aUserId, java.lang.String aConfigId)
Returns whether specified user is allowed to execute assembly lines from a given configuration.boolean
userCanReadAll(java.lang.String aUserId)
Returns whether specified user is allowed to read everything.boolean
userCanReadConfig(java.lang.String aUserId, java.lang.String aConfigId)
Returns whether specified user is allowed to read given configuration.boolean
userIsAdmin(java.lang.String aUserId)
Returns whether specified user is granted admin role.
-
-
-
Method Detail
-
userIsAdmin
boolean userIsAdmin(java.lang.String aUserId) throws DIException
Returns whether specified user is granted admin role.- Parameters:
aUserId
- the id of the user- Returns:
true
if the user is granted the admin role- Throws:
DIException
- if Runtime or Security exception occurs
-
userCanReadConfig
boolean userCanReadConfig(java.lang.String aUserId, java.lang.String aConfigId) throws DIException
Returns whether specified user is allowed to read given configuration.- Parameters:
aUserId
- the id of the useraConfigId
- the id of the configuration- Returns:
- return true only if
aUserId
is allowed to readaConfigId
. - Throws:
DIException
- if Runtime or Security exception occurs
-
userCanExecuteAL
boolean userCanExecuteAL(java.lang.String aUserId, java.lang.String aConfigId, java.lang.String aAssemblyLine) throws DIException
Returns 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
true
only ifaUserId
is allowed to executeaAssemblyLine
from configurationaConfigId
. - Throws:
DIException
- if Runtime or Security exception occurs
-
userCanExecuteConfig
boolean userCanExecuteConfig(java.lang.String aUserId, java.lang.String aConfigId) throws DIException
Returns whether specified user is allowed to execute given configuration.- Parameters:
aUserId
- the id of the useraConfigId
- the id of the configuration- Returns:
- return
true
only ifaUserId
is allowed to execute configurationaConfigId
. - Throws:
DIException
- if Runtime or Security exception occurs
-
userCanExecuteConfigALs
boolean userCanExecuteConfigALs(java.lang.String aUserId, java.lang.String aConfigId) throws DIException
Returns 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
true
only ifaUserId
is allowed to execute assembly lines from configurationaConfigId
. - Throws:
DIException
- if Runtime or Security exception occurs
-
userCanExecuteAll
boolean userCanExecuteAll(java.lang.String aUserId) throws DIException
Returns whether specified user is allowed to execute everything.- Parameters:
aUserId
- the id of the user- Returns:
- return
true
only ifaUserId
is allowed to execute everything. - Throws:
DIException
- if Runtime or Security exception occurs
-
userCanReadAll
boolean userCanReadAll(java.lang.String aUserId) throws DIException
Returns whether specified user is allowed to read everything.- Parameters:
aUserId
- the id of the user- Returns:
- return
true
only ifaUserId
is allowed to read everything. - Throws:
DIException
- if Runtime or Security exception occurs
-
-