com.ibm.commerce.tickler.commands

Class DetermineAssignmentCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, DetermineAssignmentCmd, 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 DetermineAssignmentCmdImpl
    extends TaskCommandImpl
    implements DetermineAssignmentCmd
    The class determines the assignee for a tickler.

    Behavior:

    1. If a role is specified for the supplied tickler reason, assigns the tickler to that role.
    2. Otherwise, assigns the tickler to the owning CSR or CSR team for the customer:
      1. Determines the customer associated with the action object.
      2. Gets the list of the CSRs assigned to that customer and assigns the tickler to the first CSR on the list.
      3. If the CSR list is empty, gets the list of the CSR teams assigned to that customer. And also assigns the tickler to the first CSR team on the list.
    3. Otherwise, assigns the tickler to the owning CSR or CSR team for the organization:
      1. Determines the organization associated with the action object.
      2. Gets the list of the CSRs associated with the customer organization and assigns the tickler to the first CSR on the list.
      3. If the CSR list is empty, gets the list of the CSR teams associated with the customer organization. And also assigns the tickler to the first CSR team on the list.
    4. Otherwise, assigns the tickler to the owning CSR or CSR team for the customer groups to which the customer belongs:
      1. Determines the customer groups to which the customer belongs.
      2. Gets the list of the CSRs associated with the customer groups and assigns the tickler to the first CSR on the list.
      3. If the CSR list is empty, gets the list of the CSR teams associated with the customer groups. And also assigns the tickler to the first CSR team on the list.
    5. Otherwise, assigns the tickler to the CSR who has created this tickler if the tickler is not system-generated.
    6. Returns null if no responsible party can be found.

    Exceptional conditions:

    • The tickler ID is not supplied.
    See Also:
    Serialized Form
    • Field Detail

      • CLASSNAME

        public static final java.lang.String CLASSNAME
        The name of this class.
        See Also:
        Constant Field Values
    • Constructor Detail

      • DetermineAssignmentCmdImpl

        public DetermineAssignmentCmdImpl()
    • Method Detail

      • setStoreId

        public void setStoreId(java.lang.Integer anStoreId)
        This method sets the identifier of the store in which this tickler was created.
        Specified by:
        setStoreId in interface DetermineAssignmentCmd
        Parameters:
        anStoreId - the store identifier.
      • getTicklerReasonId

        public java.lang.Integer getTicklerReasonId()
        This method returns the tickler reason identifier. ticklerReasonIdThe unique Identifier for Tickler reason. Tickler reason defines the purpose for a tickler.
        Specified by:
        getTicklerReasonId in interface DetermineAssignmentCmd
        Returns:
        the tickler reason identifier.
        See Also:
        createTickler
      • setTicklerReasonId

        public void setTicklerReasonId(java.lang.Integer anTicklerReasonId)
        This method sets the tickler reason identifier. ticklerReasonIdThe unique Identifier for Tickler reason. Tickler reason defines the purpose for a tickler.
        Specified by:
        setTicklerReasonId in interface DetermineAssignmentCmd
        Parameters:
        anTicklerReasonId - tickler reason identifier.
        See Also:
        createTickler
      • getActionObjectId

        public java.lang.Long getActionObjectId()
        This method returns the identifier of the action object based on which tickler is created. The action object are the types of object to which to-do item is associated. Valid values are as follows:
         ORDER=Order
         QUOTE=Quote
         RMA=Return
         USER=Customer
         
        Specified by:
        getActionObjectId in interface DetermineAssignmentCmd
        Returns:
        the action object identifier.
        See Also:
        createTickler
      • setActionObjectId

        public void setActionObjectId(java.lang.Long anActionObjectId)
        This method sets the identifier of the action object based on which this tickler is created. The action object are the types of object to which to-do item is associated. Valid values are as follows:
         ORDER=Order
         QUOTE=Quote
         RMA=Return
         USER=Customer
         
        Specified by:
        setActionObjectId in interface DetermineAssignmentCmd
        Parameters:
        anActionObjectId - action object identifier.
        See Also:
        createTickler
      • getActionObjectType

        public java.lang.String getActionObjectType()
        This method returns the type of the action object based on which this tickler is created. The action object are the types of object to which to-do item is associated. Valid values are as follows:
         ORDER=Order
         QUOTE=Quote
         RMA=Return
         USER=Customer
         
        Specified by:
        getActionObjectType in interface DetermineAssignmentCmd
        Returns:
        the action object type.
        See Also:
        createTickler
      • setActionObjectType

        public void setActionObjectType(java.lang.String astrActionObjectType)
        This method sets the type of the action object based on which this tickler is created. The action object are the types of object to which to-do item is associated. Valid values are as follows:
         ORDER=Order
         QUOTE=Quote
         RMA=Return
         USER=Customer
         
        Specified by:
        setActionObjectType in interface DetermineAssignmentCmd
        Parameters:
        astrActionObjectType - action object type.
        See Also:
        createTickler
      • getAssignToMemberId

        public java.lang.Long getAssignToMemberId()
        This method retrieves the identifier of the Customer Service Representative to whom this tickler is assigned to.
        Specified by:
        getAssignToMemberId in interface DetermineAssignmentCmd
        Returns:
        the Customer Service Representative.
      • getAssignToRole

        public java.lang.Integer getAssignToRole()
        This method returns the Customer Service Representative role to which this tickler is assigned.
        Specified by:
        getAssignToRole in interface DetermineAssignmentCmd
        Returns:
        the code of the Customer Service Representative role.
        See Also:
        createTickler
      • reset

        public void reset()
        This method resets all the command parameters.
        Specified by:
        reset in interface com.ibm.websphere.command.Command
        Overrides:
        reset in class AbstractECTargetableCommand