com.ibm.commerce.member.syncbeans.commands

Interface LDAPIntegrationCmd

    • Field Detail

      • COPYRIGHT

        static final java.lang.String COPYRIGHT
        The copyright field.
        See Also:
        Constant Field Values
      • NAME

        static final java.lang.String NAME
        The command name.
      • defaultCommandClassName

        static final java.lang.String defaultCommandClassName
        The default command implementation class.
    • Method Detail

      • getCommerceDN

        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.
        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.
      • getLDAPDN

        java.lang.String getLDAPDN(java.lang.String astrCommerceDN)
                            throws ECException
        Returns the LDAP DN that corresponds to a specified Commerce DN.
        Parameters:
        astrCommerceDN - The Commerce DN.
        Returns:
        The LDAP DN.
        Throws:
        ECException - Thrown if an error occurs.
      • getUserDOs

        java.util.Vector getUserDOs()
        Returns a vector of sync helper 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. 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.
        Returns:
        a vector of Data Object classes that correspond to UserSyncBean.
      • getOrganizationDOs

        java.util.Vector getOrganizationDOs()
        Returns a vector of sync helper 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. 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.
        Returns:
        a vector of Data Object classes that correspond to UserSyncBean.
      • postLogonProcessing

        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.

        Parameters:
        aUserAccessBean - The user that has authenticated.
        Throws:
        ECException - Thrown if an error occurs.
      • postSingleSignOnProcessing

        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.

        Parameters:
        aUserSyncBean - Contains information about the user that has authenticated.
        Throws:
        ECException - Thrown if an error occurs.
      • postCreateInLDAPProcessing

        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.

        Parameters:
        aSyncBean - Contains information about the object that is being synchronized.
        Throws:
        ECException - Thrown if an error occurs.
      • postUpdateInLDAPProcessing

        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.

        Parameters:
        aSyncBean - Contains information about the object that is being synchronized.
        Throws:
        ECException - Thrown if an error occurs.
      • postRefreshFromLDAPProcessing

        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.

        Parameters:
        aSyncBean - Contains information about the object that is being synchronized.
        Throws:
        ECException - Thrown if an error occurs.
      • getLDAPDNFromSingleSignOnTokenForWeb

        java.lang.String getLDAPDNFromSingleSignOnTokenForWeb(javax.servlet.http.HttpServletRequest request)
                                                       throws ECException
        This method is called in single sign on scenarios from web requests. The implementation of this method should fetch the single sign on token from the request, validate the token and return the LDAP user DN that this token maps to.
        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

        java.lang.String getLDAPDNFromSingleSignOnTokenForWebServices(java.lang.String ssoToken)
                                                               throws ECException
        This method is called in single sign on scenarios from web services requests. The implementation of this method should validate the single sign on token and return the LDAP user DN that this token maps to.
        Parameters:
        ssoToken - The single sign on token
        Returns:
        The LDAP user DN that this token maps to.
        Throws:
        ECException - Thrown if an error occurs.