|
Enterprise Information Portal APIs |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.mm.beans.CMBUserManagement
The CMBUserManagement bean provides EIP User Management functions. This bean should only be used with federated dsType. It provides user mapping, server mapping utilities.
Summary of properties and events:
imported properties traceEnabled, defaulting off, will not veto exported properties none standalone properties none interested in events CMBSConnectionReplyEvent - to get connection handle CMBUserRequestEvent - to perform functions source of events CMBUserReplyEvent - to reply the request CMBExceptionEvent - to post exception CMBTraceEvent - to let logger trace
CMBConnection
, Serialized FormConstructor Summary | |
CMBUserManagement()
Default constructor |
Method Summary | |
void |
addCMBExceptionListener(CMBExceptionListener listener)
CMBExceptionEvent registration method. |
void |
addCMBTraceListener(CMBTraceListener listener)
CMBTraceEvent registration method. |
void |
addCMBUserReplyListener(CMBUserReplyListener listener)
CMBUserReplyEvent registration method. |
void |
addUserMapping(java.lang.String serverName,
java.lang.String uid,
java.lang.String passwd)
Adds new user mapping for the current logged on userid |
void |
changePassword(java.lang.String serverName,
java.lang.String userid,
java.lang.String passwd,
java.lang.String newPasswd)
Changes the native userid password on a given server |
CMBConnection |
getConnection()
Gets the connection bean reference. |
CMBExceptionEvent |
getExceptionEvent()
To support VisualCafe 3.0 "Add Interaction..." |
java.lang.String |
getNativeUserid(java.lang.String serverName)
Gets the native userid on the given back-end server |
java.lang.String[] |
getServerName()
Gets a list of back-end server names that the current logged on federated userid has access to. |
java.lang.String |
getServerName(int index)
Index getter for back-end server name that the current logged on federated userid has access to. |
CMBTraceEvent |
getTraceEvent()
To support VisualCafe 3.0 "Add Interaction..." |
CMBUserReplyEvent |
getUserReplyEvent()
To support VisualCafe 3.0 "Add Interaction..." |
boolean |
isTraceEnabled()
Indicates if tracing is enabled on this bean. |
void |
onCMBConnectionReply(CMBConnectionReplyEvent evt)
Implementation of connection reply service method: update the connection handle accordingly. |
void |
onCMBUserRequest(CMBUserRequestEvent evt)
Implementation of user request service method |
void |
removeCMBExceptionListener(CMBExceptionListener listener)
CMBExceptionEvent unregistration method. |
void |
removeCMBTraceListener(CMBTraceListener listener)
CMBTraceEvent unregistration method. |
void |
removeCMBUserReplyListener(CMBUserReplyListener listener)
CMBUserReplyEvent unregistration method. |
void |
removeUserMapping(java.lang.String serverName)
Deletes current user mapping on a server |
void |
setConnection(CMBConnection connObj)
Sets the connection bean reference. |
void |
setTraceEnabled(boolean newValue)
Enables or disables tracing on this bean. |
void |
updateUserMapping(java.lang.String serverName,
java.lang.String uid,
java.lang.String passwd)
Updates current user mapping on a server |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CMBUserManagement()
Method Detail |
public boolean isTraceEnabled()
public void setTraceEnabled(boolean newValue)
newValue
- if true, tracing is enabled. If false, tracing is disabled.public void setConnection(CMBConnection connObj)
connObj
- CMBConnection bean referencepublic CMBConnection getConnection()
public java.lang.String[] getServerName() throws CMBException
CMBException
- when error occurs in the serverpublic java.lang.String getServerName(int index) throws java.lang.ArrayIndexOutOfBoundsException, CMBException
index
- int - index to the current list of back-end serverspublic java.lang.String getNativeUserid(java.lang.String serverName) throws CMBException
serverName
- back-end server namepublic void addUserMapping(java.lang.String serverName, java.lang.String uid, java.lang.String passwd) throws CMBException, CMBUserAlreadyExistException
serverName
- name of the back-end serveruid
- back-end server uidpasswd
- back-end server uid passwordCMBException
- if adding failed at the serverCMBUserAlreadyExist
- if mapping already exist for this back-end serverNamepublic void updateUserMapping(java.lang.String serverName, java.lang.String uid, java.lang.String passwd) throws CMBException
serverName
- name of the back-end serveruid
- back-end server uidpasswd
- back-end server uid passwordCMBException
- if adding failed at the serverpublic void removeUserMapping(java.lang.String serverName) throws CMBException
serverName
- name of the back-end serverCMBException
- if adding failed at the serverpublic void changePassword(java.lang.String serverName, java.lang.String userid, java.lang.String passwd, java.lang.String newPasswd) throws CMBException
public void onCMBConnectionReply(CMBConnectionReplyEvent evt)
onCMBConnectionReply
in interface CMBConnectionReplyListener
evt
- a CMBConnectionReplyEventpublic void onCMBUserRequest(CMBUserRequestEvent evt)
onCMBUserRequest
in interface CMBUserRequestListener
evt
- a CMBUserRequestEventpublic void addCMBExceptionListener(CMBExceptionListener listener)
listener
- listener to be registeredpublic void removeCMBExceptionListener(CMBExceptionListener listener)
listener
- listener to be unregisteredpublic void addCMBTraceListener(CMBTraceListener listener)
listener
- listener to be registeredpublic void removeCMBTraceListener(CMBTraceListener listener)
listener
- listener to be unregisteredpublic void addCMBUserReplyListener(CMBUserReplyListener listener)
listener
- listener to be registeredpublic void removeCMBUserReplyListener(CMBUserReplyListener listener)
listener
- listener to be unregisteredpublic CMBTraceEvent getTraceEvent()
public CMBExceptionEvent getExceptionEvent()
public CMBUserReplyEvent getUserReplyEvent()
|
EIP JavaBeans | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |