com.ibm.commerce.usermanagement.commands

Interface OrgEntityAddCmd

  • All Superinterfaces:
    AccCommand, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, ControllerCommand, ECCommand, OrgEntityRegistrationCmd, Protectable, java.io.Serializable, com.ibm.websphere.command.TargetableCommand
    All Known Implementing Classes:
    OrgEntityAddCmdImpl


    public interface OrgEntityAddCmd
    extends OrgEntityRegistrationCmd
    Registers a new organization or organizational unit.

    The information of the new organization or organizational unit is stored in the MEMBER, ORGENTITY, MBRREL and ADDRESS tables.

    Use this command with SSL (Secure Sockets Layer) to ensure that the information are encrypted. To do so, type the command with the HTTPS secure protocol.

    The parameters URL, orgEntityName, orgEntityType and parentMemberId are mandatory. The rest of the parameters are optional.

    Behavior

    • Calls an empty task command PreOrgEntityAddCmd which can be customized for any pre-processing prior to execution of this command.
    • Checks for the required parameters.
    • Calls a task command SetBusinessEntityCmd to set the BusinessEntity attribute.
    • Calls a task command AuditOrgEntityCmd which can be customized to perform additional parameter checking.
    • Creates a self address if any field related to ADDRESS table is specified. Self address is also called register address, has selfAddress field set to '1' and nickname = orgEntityName. Otherwise no record will be created in the ADDRESS table.
    • Calls the OrgEntityErrorView view command if the command fails. Upon successful completion, the specified URL is called.
    • Calls an empty task command PostOrgEntityAddCmd which can be customized for any further processig post execution of this command.

    Exception conditions

    • URL is null (_ERR_CMD_MISSING_PARAM).
    • The length of URL length equals 0 (_ERR_CMD_INVALID_PARAM).
    • parentMemberId is null (_ERR_CMD_MISSING_PARAM).
    • parentMemberId is not a foreign key set to the ORGENTITY table (_ERR_CMD_INVALID_PARAM).
    • orgEntityName is null (_ERR_CMD_MISSING_PARAM).
    • The length of orgEntityName equals 0 (_ERR_CMD_INVALID_PARAM).
    • orgEntityType is null (_ERR_CMD_MISSING_PARAM).
    • orgEntityType is not 'O' or 'OU' (_ERR_CMD_INVALID_PARAM).
    • In LDAP Mode, the formulated Distinguished Name already exist in LDAP Sever or WebSphere Commerce Database (_ERR_RDN_ALREADY_EXIST).
    • In LDAP Mode, the distinguishedName specified already exist in LDAP Sever or WebSphere Commerce Database (_ERR_DN_ALREADY_EXIST).