com.ibm.di.api.jmx.mbeans
Class SecurityRegistry

java.lang.Object
  extended by com.ibm.di.api.jmx.mbeans.BaseAdmin
      extended by com.ibm.di.api.jmx.mbeans.SecurityRegistry
All Implemented Interfaces:
BaseAdminMBean, BaseMBean, SecurityRegistryMBean

public class SecurityRegistry
extends BaseAdmin
implements SecurityRegistryMBean


Field Summary
static String MBEAN_ID
           
static String MBEAN_TYPE
           
 
Constructor Summary
SecurityRegistry(SecurityRegistry aSecurityRegistry)
           
 
Method Summary
 String getId()
          Reads attribute "Id".
 String getType()
          Reads attribute "Type".
 Boolean userCanExecuteAL(String aUserId, String aConfigId, String aAssemblyLine)
           
 Boolean userCanExecuteAll(String aUserId)
           
 Boolean userCanExecuteConfig(String aUserId, String aConfigId)
           
 Boolean userCanExecuteConfigALs(String aUserId, String aConfigId)
           
 Boolean userCanExecuteConfigEHs(String aUserId, String aConfigId)
           
 Boolean userCanExecuteEH(String aUserId, String aConfigId, String aEventHandler)
           
 Boolean userCanReadAll(String aUserId)
           
 Boolean userCanReadConfig(String aUserId, String aConfigId)
           
 Boolean userIsAdmin(String aUserId)
           
 
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

MBEAN_TYPE

public static final String MBEAN_TYPE
See Also:
Constant Field Values

MBEAN_ID

public static final String MBEAN_ID
See Also:
Constant Field Values
Constructor Detail

SecurityRegistry

public SecurityRegistry(SecurityRegistry aSecurityRegistry)
Method Detail

getType

public String getType()
Description copied from interface: BaseMBean
Reads attribute "Type".

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".

Specified by:
getType in interface BaseMBean
Returns:
the type of this MBean.

getId

public String getId()
Description copied from interface: BaseMBean
Reads attribute "Id". The "Id" value should be different for different MBeans of the same type.

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".

Specified by:
getId in interface BaseMBean
Returns:
the Id of this MBean.

userIsAdmin

public Boolean userIsAdmin(String aUserId)
                    throws DIException
Specified by:
userIsAdmin in interface SecurityRegistryMBean
Throws:
DIException

userCanReadConfig

public Boolean userCanReadConfig(String aUserId,
                                 String aConfigId)
                          throws DIException
Specified by:
userCanReadConfig in interface SecurityRegistryMBean
Throws:
DIException

userCanExecuteAL

public Boolean userCanExecuteAL(String aUserId,
                                String aConfigId,
                                String aAssemblyLine)
                         throws DIException
Specified by:
userCanExecuteAL in interface SecurityRegistryMBean
Throws:
DIException

userCanExecuteEH

public Boolean userCanExecuteEH(String aUserId,
                                String aConfigId,
                                String aEventHandler)
                         throws DIException
Specified by:
userCanExecuteEH in interface SecurityRegistryMBean
Throws:
DIException

userCanExecuteConfig

public Boolean userCanExecuteConfig(String aUserId,
                                    String aConfigId)
                             throws DIException
Specified by:
userCanExecuteConfig in interface SecurityRegistryMBean
Throws:
DIException

userCanExecuteConfigALs

public Boolean userCanExecuteConfigALs(String aUserId,
                                       String aConfigId)
                                throws DIException
Specified by:
userCanExecuteConfigALs in interface SecurityRegistryMBean
Throws:
DIException

userCanExecuteConfigEHs

public Boolean userCanExecuteConfigEHs(String aUserId,
                                       String aConfigId)
                                throws DIException
Specified by:
userCanExecuteConfigEHs in interface SecurityRegistryMBean
Throws:
DIException

userCanExecuteAll

public Boolean userCanExecuteAll(String aUserId)
                          throws DIException
Specified by:
userCanExecuteAll in interface SecurityRegistryMBean
Throws:
DIException

userCanReadAll

public Boolean userCanReadAll(String aUserId)
                       throws DIException
Specified by:
userCanReadAll in interface SecurityRegistryMBean
Throws:
DIException