|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
com.ibm.di.api.remote.impl.SecurityRegistryImpl
public class SecurityRegistryImpl
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 inherited from class java.rmi.server.RemoteObject |
---|
ref |
Method Summary | |
---|---|
static SecurityRegistryImpl |
createInstance(SecurityRegistry aLocalSecurityRegistry,
SessionImpl aSession)
Creates new instance of this class. |
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. |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
---|
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
---|
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
---|
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public boolean userIsAdmin(java.lang.String aUserId) throws DIException, java.rmi.RemoteException
userIsAdmin
in interface SecurityRegistry
aUserId
- the id of the user
true
if the user is granted the admin role
DIException
- if Runtime or Security exception occurs
java.rmi.RemoteException
- if a communication-related exception occurs.public boolean userCanReadConfig(java.lang.String aUserId, java.lang.String aConfigId) throws DIException, java.rmi.RemoteException
userCanReadConfig
in interface SecurityRegistry
aUserId
- the id of the useraConfigId
- the id of the configuration
aUserId
is allowed to read
aConfigId
.
DIException
- if Runtime or Security exception occurs
java.rmi.RemoteException
- if a communication-related exception occurs.public boolean userCanExecuteAL(java.lang.String aUserId, java.lang.String aConfigId, java.lang.String aAssemblyLine) throws DIException, java.rmi.RemoteException
userCanExecuteAL
in interface SecurityRegistry
aUserId
- 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
java.rmi.RemoteException
- if a communication-related exception occurs.public boolean userCanExecuteConfig(java.lang.String aUserId, java.lang.String aConfigId) throws DIException, java.rmi.RemoteException
userCanExecuteConfig
in interface SecurityRegistry
aUserId
- 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
java.rmi.RemoteException
- if a communication-related exception occurs.public boolean userCanExecuteConfigALs(java.lang.String aUserId, java.lang.String aConfigId) throws DIException, java.rmi.RemoteException
userCanExecuteConfigALs
in interface SecurityRegistry
aUserId
- 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
java.rmi.RemoteException
- if a communication-related exception occurs.public boolean userCanExecuteAll(java.lang.String aUserId) throws DIException, java.rmi.RemoteException
userCanExecuteAll
in interface SecurityRegistry
aUserId
- the id of the user
true
only if aUserId
is
allowed to execute everything.
DIException
- if Runtime or Security exception occurs
java.rmi.RemoteException
- if a communication-related exception occurs.public boolean userCanReadAll(java.lang.String aUserId) throws DIException, java.rmi.RemoteException
userCanReadAll
in interface SecurityRegistry
aUserId
- the id of the user
true
only if aUserId
is
allowed to read everything.
DIException
- if Runtime or Security exception occurs
java.rmi.RemoteException
- if a communication-related exception occurs.public static SecurityRegistryImpl createInstance(SecurityRegistry aLocalSecurityRegistry, SessionImpl aSession) throws DIException, java.rmi.RemoteException
aLocalSecurityRegistry
- local sequrity registryaSession
- the SessionImpl object
DIException
- if Runtime or Security exception occurs.
java.rmi.RemoteException
- if a communication-related exception occurs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |