com.ibm.commerce.usermanagement.commands

Class BuyerRegistrationAddCmdImpl

    • Field Detail

      • COPYRIGHT

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

        public static final java.lang.String CLASSNAME
        The class name
      • ADDITIONAL_APPROVAL_GROUPS

        public static final java.lang.String ADDITIONAL_APPROVAL_GROUPS
        Constant to indicate the KEY name used to pass additional approval group names separated by comma (,).
        See Also:
        Constant Field Values
      • ORDER_PROCESS

        public static final java.lang.String ORDER_PROCESS
        Constant to indicate ORDER PROCESS APPROVAL group
        See Also:
        Constant Field Values
      • ORDER_PROCESS_DISABLE

        public static final java.lang.String ORDER_PROCESS_DISABLE
        Constant to indicate ORDER PROCESS Disapproval group
        See Also:
        Constant Field Values
      • APPROVAL_GROUPS_LENGTH

        public static final int APPROVAL_GROUPS_LENGTH
        Constant to indicate the limit on the length of the approvalGroups supported.
        See Also:
        Constant Field Values
    • Constructor Detail

      • BuyerRegistrationAddCmdImpl

        public BuyerRegistrationAddCmdImpl()
    • Method Detail

      • performExecute

        public void performExecute()
                            throws ECException
        Delegates to super class to register new organization, new user and to create Member group for approvals. Once the super class executes, this method creates any additional approval groups required. To specify additional approval groups set comma separated approval group names in request properties with Key ADDITIONAL_APPROVAL_GROUPS
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class ResellerRegistrationAddCmdImpl
        Throws:
        ECException
        See Also:
        TargetableCommand.performExecute()
      • getApprovalGroupId

        public java.lang.Long getApprovalGroupId(java.lang.String approvalGroupName)
        Given an approval group name this method returns the corresponding member group approval Id. Supported approval group names are ORDER_PROCESS and ORDER_PROCESS_DISABLE. Override this method to support additional approval group names
        Parameters:
        approvalGroupName - - Approval group name.
        Returns:
        - The corresponding approval group Id.
        See Also:
        ECMemberGroupConstants