com.ibm.commerce.member.syncbeans.commands

Class LDAPIntegrationCmdImpl

    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • LDAPIntegrationCmdImpl

        public LDAPIntegrationCmdImpl()
    • Method Detail

      • getLDAPDN

        public java.lang.String getLDAPDN(java.lang.String astrCommerceDN)
                                   throws ECException
        Returns the LDAP DN that corresponds to a specified Commerce DN. By default, the same DN is returned.
        Specified by:
        getLDAPDN in interface LDAPIntegrationCmd
        Parameters:
        astrCommerceDN - The Commerce DN.
        Returns:
        The LDAP DN.
        Throws:
        ECException - Thrown if an error occurs.
      • postLogonProcessing

        public void postLogonProcessing(UserAccessBean aUserAccessBean)
                                 throws ECException
        This method is called from 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.

        Specified by:
        postLogonProcessing in interface LDAPIntegrationCmd
        Parameters:
        aUserAccessBean - The user that has authenticated.
        Throws:
        ECException - Thrown if an error occurs.
      • postSingleSignOnProcessing

        public void postSingleSignOnProcessing(UserSyncBean aUserSyncBean)
                                        throws ECException
        This method is called after single sign-on has taken place. It is provided to allow extra synchronization between the Commerce database and LDAP if it's needed.

        The default logic is to do nothing.

        Specified by:
        postSingleSignOnProcessing in interface LDAPIntegrationCmd
        Parameters:
        aUserSyncBean - Contains information about the user that has authenticated.
        Throws:
        ECException - Thrown if an error occurs.
      • getUserDOs

        public java.util.Vector getUserDOs()
        Returns a vector of Data Object classes that correspond to 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: You have the option of removing Data Object classes for tables that you don't want to be synchronized, and also adding a new Data Object class for your own custom database table that you wish to be synchronized.
        Specified by:
        getUserDOs in interface LDAPIntegrationCmd
        Returns:
        a vector of Data Object classes that correspond to UserSyncBean.
      • getOrganizationDOs

        public java.util.Vector getOrganizationDOs()
        Returns a vector of Data Object classes that correspond to 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: You have the option of removing Data Object classes for tables that you don't want to be synchronized, and also adding a new Data Object class for your own custom database table that you wish to be synchronized.
        Specified by:
        getOrganizationDOs in interface LDAPIntegrationCmd
        Returns:
        a vector of Data Object classes that correspond to UserSyncBean.
      • getCommerceDN

        public java.lang.String getCommerceDN(java.lang.String astrLDAPDN,
                                              commonj.sdo.DataObject adoMember)
                                       throws ECException
        Returns the Commerce DN that corresponds to a specified LDAP DN. By default, the same DN is returned.
        Specified by:
        getCommerceDN in interface LDAPIntegrationCmd
        Parameters:
        astrLDAPDN - The LDAP DN.
        adoMember - The entity data object corresponding to the member.
        Returns:
        The Commerce DN.
        Throws:
        ECException - Thrown if an error occurs.
      • postCreateInLDAPProcessing

        public void postCreateInLDAPProcessing(SyncBeanBase aSyncBean)
                                        throws ECException
        This method is called when an entry is being created in LDAP based on Commerce data. It enables extra processing to take place in this scenario.

        The default logic is to do nothing.

        Specified by:
        postCreateInLDAPProcessing in interface LDAPIntegrationCmd
        Parameters:
        aSyncBean - Contains information about the object that is being synchronized.
        Throws:
        ECException - Thrown if an error occurs.
      • postUpdateInLDAPProcessing

        public void postUpdateInLDAPProcessing(SyncBeanBase aSyncBean)
                                        throws ECException
        This method is called when an entry in LDAP is being updated with Commerce data. It enables extra processing to take place in this scenario.

        The default logic is to do nothing.

        Specified by:
        postUpdateInLDAPProcessing in interface LDAPIntegrationCmd
        Parameters:
        aSyncBean - Contains information about the object that is being synchronized.
        Throws:
        ECException - Thrown if an error occurs.
      • postRefreshFromLDAPProcessing

        public void postRefreshFromLDAPProcessing(SyncBeanBase aSyncBean)
                                           throws ECException
        This method is called when an entry in Commerce is being refreshed with LDAP data. It enables extra processing to take place in this scenario.

        The default logic is to do nothing.

        Specified by:
        postRefreshFromLDAPProcessing in interface LDAPIntegrationCmd
        Parameters:
        aSyncBean - Contains information about the object that is being synchronized.
        Throws:
        ECException - Thrown if an error occurs.
      • getLDAPDNFromSingleSignOnTokenForWeb

        public java.lang.String getLDAPDNFromSingleSignOnTokenForWeb(javax.servlet.http.HttpServletRequest request)
                                                              throws ECException
        This method is called in single sign on scenarios from web requests. This default implementation will first call the getSingleSignOnTokenForWeb method to retrieve the LTPA token from the request. Then it calls the getUniqueIDFromSingleSignOnToken method to validate the token and retrieve the unique ID from the token. Finally it calls the getLDAPDNFromUniqueID method to retrieve the LDAP DN that maps to this unique ID.
        Specified by:
        getLDAPDNFromSingleSignOnTokenForWeb in interface LDAPIntegrationCmd
        Parameters:
        request - The http request object of the current request.
        Returns:
        The LDAP user DN that this token maps to.
        Throws:
        ECException - Thrown if an error occurs.
      • getLDAPDNFromSingleSignOnTokenForWebServices

        public java.lang.String getLDAPDNFromSingleSignOnTokenForWebServices(java.lang.String ssoToken)
                                                                      throws ECException
        This method is called in single sign on scenarios from web services requests. This default implementation will take a LTPA token as a parameter. Then it calls the getUniqueIDFromSingleSignOnToken method to validate the token and retrieve the unique ID from the token. Finally it calls the getLDAPDNFromUniqueID method to retrieve the LDAP DN that maps to this unique ID.
        Specified by:
        getLDAPDNFromSingleSignOnTokenForWebServices in interface LDAPIntegrationCmd
        Parameters:
        ssoToken - The single sign on token
        Returns:
        The LDAP user DN that this token maps to.
        Throws:
        ECException - Thrown if an error occurs.