com.ibm.commerce.user.commands

Class RepresentativeAssignCustomerCmdImpl

  • All Implemented Interfaces:
    AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, Protectable, ToolsControllerCommand, RepresentativeAssignCustomerCmd, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable


    public class RepresentativeAssignCustomerCmdImpl
    extends ToolsControllerCommandImpl
    implements RepresentativeAssignCustomerCmd
    Creates relationships between the CSR or CSR group and the customers that are passed in.

    Behavior

    1. Deletes all the existing relationships for the CSR or CSR group.
    2. For each customer on the input list, calls the EJB to create the relationship.

    Parameters

    representativeId
    The member ID of the CSR or CSR group.
    customerId
    A comma separated list of the member IDs of the customers.
    relationshipSequence
    A comma separated list of the relationship sequence numbers for the customers.
    URL
    The URL to be called when the command completes successfully.

    Response Parameters:

    none
    See Also:
    Serialized Form
    • Constructor Detail

      • RepresentativeAssignCustomerCmdImpl

        public RepresentativeAssignCustomerCmdImpl()
    • Method Detail

      • getCustomerIds

        public java.util.Vector getCustomerIds()
        Gets the customers to set up relationships for.
        Returns:
        the list of customer IDs
      • getRepresentativeId

        public java.lang.Long getRepresentativeId()
        Gets the CSR or CSR group ID.
        Returns:
        the CSR or CSR group ID
      • getSequences

        public java.util.Vector getSequences()
        Gets the sequence numbers for the relationships.
        Returns:
        the list of relationship sequence numbers
      • setCustomerIds

        public void setCustomerIds(java.util.Vector inCustomerIds)
        Sets the customer IDs.
        Parameters:
        inCustomerIds - list of customer IDs (each of type Long)
      • setRepresentativeId

        public void setRepresentativeId(java.lang.Long inRepId)
        Sets the CSR or CSR group ID.
        Parameters:
        inRepId - CSR or CSR group ID
      • setSequences

        public void setSequences(java.util.Vector inSequences)
        Sets the sequence numbers for the relationships.
        Parameters:
        inSequences - list of relationship sequence numbers (each of type Double)