public class LDAPIntegrationCmdImpl extends TaskCommandImpl implements LDAPIntegrationCmd
The following methods are called by SyncBeanBase
:
postCreateInLDAPProcessing(com.ibm.commerce.member.syncbeans.SyncBeanBase)
postRefreshFromLDAPProcessing(com.ibm.commerce.member.syncbeans.SyncBeanBase)
postUpdateInLDAPProcessing(com.ibm.commerce.member.syncbeans.SyncBeanBase)
UserSyncBean.initDOs()
The following method is called from OrganizationSyncBean#initDOs
The following method is called from LogonCmdImpl
:
The following methods are called from the single sign-on code: Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
defaultCommandClassName, NAME
Constructor and Description |
---|
LDAPIntegrationCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCommerceDN(java.lang.String astrLDAPDN,
commonj.sdo.DataObject adoMember)
Returns the Commerce DN that corresponds to a specified LDAP DN.
|
java.lang.String |
getLDAPDN(java.lang.String astrCommerceDN)
Returns the LDAP DN that corresponds to a specified Commerce DN.
|
java.lang.String |
getLDAPDNFromSingleSignOnTokenForWeb(javax.servlet.http.HttpServletRequest request)
This method is called in single sign on scenarios from web requests.
|
java.lang.String |
getLDAPDNFromSingleSignOnTokenForWebServices(java.lang.String ssoToken)
This method is called in single sign on scenarios from web services requests.
|
java.util.Vector |
getOrganizationDOs()
Returns a vector of Data Object classes that correspond to
OrganizationSyncBean . |
java.util.Vector |
getUserDOs()
Returns a vector of Data Object classes that correspond to
UserSyncBean . |
void |
postCreateInLDAPProcessing(SyncBeanBase aSyncBean)
This method is called when an entry is being created in LDAP based on Commerce data.
|
void |
postLogonProcessing(UserAccessBean aUserAccessBean)
This method is called from
LogonCmdImpl , when the authentication mode is set to LDAP, and
the authentication is successful. |
void |
postRefreshFromLDAPProcessing(SyncBeanBase aSyncBean)
This method is called when an entry in Commerce is being refreshed with LDAP data.
|
void |
postSingleSignOnProcessing(UserSyncBean aUserSyncBean)
This method is called after single sign-on has taken place.
|
void |
postUpdateInLDAPProcessing(SyncBeanBase aSyncBean)
This method is called when an entry in LDAP is being updated with Commerce data.
|
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, performExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, performExecute, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
public static final java.lang.String COPYRIGHT
public java.lang.String getLDAPDN(java.lang.String astrCommerceDN) throws ECException
getLDAPDN
in interface LDAPIntegrationCmd
astrCommerceDN
- The Commerce DN.ECException
- Thrown if an error occurs.public void postLogonProcessing(UserAccessBean aUserAccessBean) throws ECException
LogonCmdImpl
, when the authentication mode is set to LDAP, and
the authentication is successful. It is provided to allow extra synchronization between the
Commerce database and LDAP if it's needed. The default logic is to do nothing.
postLogonProcessing
in interface LDAPIntegrationCmd
aUserAccessBean
- The user that has authenticated.ECException
- Thrown if an error occurs.public void postSingleSignOnProcessing(UserSyncBean aUserSyncBean) throws ECException
The default logic is to do nothing.
postSingleSignOnProcessing
in interface LDAPIntegrationCmd
aUserSyncBean
- Contains information about the user that has authenticated.ECException
- Thrown if an error occurs.public java.util.Vector getUserDOs()
UserSyncBean
.
These Data Object classes each correspond to a Commerce database table, and are used for
reading from and writing to that table.
The default logic is to return the following Data Object classes: UserDO
- maps to USERS table.
UserRegistryDO
- maps to USERREG table.
UserDemographicsDO
- maps to USERDEMO table.
SelfAddressDO
- maps to ADDRESS table.
BusinessProfileDO
- maps to BUSPROF table.
UserProfileDO
- maps to USERPROF table.
MemberAttributesDO
- maps to MBRATTRVAL table.
getUserDOs
in interface LDAPIntegrationCmd
UserSyncBean
.public java.util.Vector getOrganizationDOs()
OrganizationSyncBean
.
These Data Object classes each correspond to a Commerce database table, and are used for
reading from and writing to that table.
The default logic is to return the following Data Object classes: OrgEntityDO
- maps to ORGENTITY table.
SelfAddressDO
- maps to ADDRESS table.
MemberAttributesDO
- maps to MBRATTRVAL table.
getOrganizationDOs
in interface LDAPIntegrationCmd
UserSyncBean
.public java.lang.String getCommerceDN(java.lang.String astrLDAPDN, commonj.sdo.DataObject adoMember) throws ECException
getCommerceDN
in interface LDAPIntegrationCmd
astrLDAPDN
- The LDAP DN.adoMember
- The entity data object corresponding to the member.ECException
- Thrown if an error occurs.public void postCreateInLDAPProcessing(SyncBeanBase aSyncBean) throws ECException
The default logic is to do nothing.
postCreateInLDAPProcessing
in interface LDAPIntegrationCmd
aSyncBean
- Contains information about the object that is being synchronized.ECException
- Thrown if an error occurs.public void postUpdateInLDAPProcessing(SyncBeanBase aSyncBean) throws ECException
The default logic is to do nothing.
postUpdateInLDAPProcessing
in interface LDAPIntegrationCmd
aSyncBean
- Contains information about the object that is being synchronized.ECException
- Thrown if an error occurs.public void postRefreshFromLDAPProcessing(SyncBeanBase aSyncBean) throws ECException
The default logic is to do nothing.
postRefreshFromLDAPProcessing
in interface LDAPIntegrationCmd
aSyncBean
- Contains information about the object that is being synchronized.ECException
- Thrown if an error occurs.public java.lang.String getLDAPDNFromSingleSignOnTokenForWeb(javax.servlet.http.HttpServletRequest request) throws ECException
getLDAPDNFromSingleSignOnTokenForWeb
in interface LDAPIntegrationCmd
request
- The http request object of the current request.ECException
- Thrown if an error occurs.public java.lang.String getLDAPDNFromSingleSignOnTokenForWebServices(java.lang.String ssoToken) throws ECException
getLDAPDNFromSingleSignOnTokenForWebServices
in interface LDAPIntegrationCmd
ssoToken
- The single sign on tokenECException
- Thrown if an error occurs.