com.ibm.commerce.ordermanagement.beans

Class RMADataBean

  • All Implemented Interfaces:
    DataBean, InputDataBean, SmartDataBean, com.ibm.commerce.ordermanagement.beans.RMAInputDataBean, com.ibm.commerce.ordermanagement.beans.RMASmartDataBean, Delegator, Protectable, java.io.Serializable


    public class RMADataBean
    extends com.ibm.commerce.ordermanagement.beansrc.RMADataBeanBase
    implements com.ibm.commerce.ordermanagement.beans.RMAInputDataBean, com.ibm.commerce.ordermanagement.beans.RMASmartDataBean
    This databean represents a RMA object.
    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        The internal copyright field
        See Also:
        Constant Field Values
    • Constructor Detail

      • RMADataBean

        public RMADataBean()
        OrderDataBean constructor comment.
      • RMADataBean

        public RMADataBean(RMAAccessBean aabRMA)
        Constructs an RMADataBean from an RMAAccessBean by extracting the RMA EJB reference from the RMAAccessBean.
        Parameters:
        aabRMA - RMAAccessBean
        Throws:
        java.lang.Exception
    • Method Detail

      • setCommandContext

        public void setCommandContext(CommandContext context)
        This method sets the cached copy of the commandContext property.
        Specified by:
        setCommandContext in interface SmartDataBean
        Parameters:
        context - the command context
      • getCommandContext

        public CommandContext getCommandContext()
        This method returns the cached copy of the commandContext property.
        Specified by:
        getCommandContext in interface SmartDataBean
        Returns:
        the command context
      • setComments

        public void setComments(java.lang.String comments)
        This method sets (or updates) the comments property for this bean if the old value and the new value are different. Assumes that this data bean is already active.
        Specified by:
        setComments in interface com.ibm.commerce.ordermanagement.beans.RMAInputDataBean
        Overrides:
        setComments in class RMAAccessBean
        Parameters:
        comments - the rma comments
      • getFormattedTotalCredit

        public FormattedMonetaryAmountDataBean getFormattedTotalCredit()
        This method returns the formatted total credit value of this RMA.
        Specified by:
        getFormattedTotalCredit in interface com.ibm.commerce.ordermanagement.beans.RMASmartDataBean
        Returns:
        the formatted total credit
      • getNumberOfRmaItems

        public int getNumberOfRmaItems()
        This method returns the number of rma items associated with this rma.
        Specified by:
        getNumberOfRmaItems in interface com.ibm.commerce.ordermanagement.beans.RMASmartDataBean
        Returns:
        the number of rma items
      • setRmaId

        public void setRmaId(java.lang.String rmaId)
        This method sets the rmaId property for this data bean.
        Specified by:
        setRmaId in interface com.ibm.commerce.ordermanagement.beans.RMAInputDataBean
        Overrides:
        setRmaId in class RMAAccessBean
        Parameters:
        rmaId - the rma id
      • getRmaId

        public java.lang.String getRmaId()
        This method returns the rmaId property.
        Specified by:
        getRmaId in interface com.ibm.commerce.ordermanagement.beans.RMASmartDataBean
        Overrides:
        getRmaId in class RMAAccessBean
        Returns:
        the rma id
      • getRmaItemDataBeans

        public RMAItemDataBean[] getRmaItemDataBeans()
        This method returns all rma item data beans in this rma.
        Specified by:
        getRmaItemDataBeans in interface com.ibm.commerce.ordermanagement.beans.RMASmartDataBean
        Returns:
        the rma item data beans
      • populate

        public void populate()
                      throws java.lang.Exception
        This method is used to populate the RMADataBean. You must set the RmaId using the setRmaId method before running the populate() method.
        Specified by:
        populate in interface SmartDataBean
        Throws:
        java.lang.Exception - thrown if access bean cannot be refreshed
        ECApplicationException - thrown if key property(ies) is(are) not set
        See Also:
        setRmaId(String)
      • getCurrentPage

        public int getCurrentPage()
        This method gets current page number.
        Returns:
        int
      • getPageSize

        public int getPageSize()
        This method gets page size.
        Returns:
        int
      • setCurrentPage

        public void setCurrentPage(int i)
        This method sets current page number.
        Parameters:
        i -
      • setPageSize

        public void setPageSize(int i)
        This method sets page size.
        Parameters:
        i -
      • getTotalPages

        public int getTotalPages()
        This method gets total page number.
        Returns:
        int
      • getTotalSize

        public int getTotalSize()
        This method gets total RMAItem number.
        Returns:
        int
      • getRMAItemDataBeansByPageNumber

        public RMAItemDataBean[] getRMAItemDataBeansByPageNumber(int pageNum)
        This method gets a list of RMAItem databeans by the page number. Note: page number starts from 1
        Parameters:
        pageNum -
        Returns:
        RMAItemDataBean[]
      • getRMAItemDataBeansInCurrentPage

        public RMAItemDataBean[] getRMAItemDataBeansInCurrentPage()
        This method gets a list of RMAItem databeans in the current page.
        Returns:
        RMAItemDataBean[]
      • getMemberLogonId

        public java.lang.String getMemberLogonId()
        This method returns the logon id of the customer.
        Returns:
        The logon id of the customer.
      • getOrganizationName

        public java.lang.String getOrganizationName()
        This method returns the organization name that the customer belongs to.
        Returns:
        The name of the organization that the customer belongs to.
      • getContractName

        public java.lang.String getContractName()
        This method returns the contract name used.
        Returns:
        The contract name.
      • getFulfillmentCenterName

        public java.lang.String getFulfillmentCenterName()
        This method returns the fulfillment center's name.
        Returns:
        The name of the fulfillment center.
      • getFfmcAddress1

        public java.lang.String getFfmcAddress1()
        This method returns the fulfillment center's address 1 line.
        Returns:
        The address 1 of the fulfillment center.
      • getFfmcAddress2

        public java.lang.String getFfmcAddress2()
        This method returns the fulfillment center's address 2 line.
        Returns:
        The address 2 of the fulfillment center.
      • getFfmcAddress3

        public java.lang.String getFfmcAddress3()
        This is the getter method for the fulfillment center's address 3 line.
        Returns:
        The address 3 of the fulfillment center.
      • getFfmcCity

        public java.lang.String getFfmcCity()
        This method returns the fulfillment center's city.
        Returns:
        The city of the fulfillment center.
      • getFfmcCountry

        public java.lang.String getFfmcCountry()
        This method returns the fulfillment center's country or region.
        Returns:
        The country or region of the fulfillment center.
      • getFfmcState

        public java.lang.String getFfmcState()
        This method returns the fulfillment center's state.
        Returns:
        The state where the fulfillment center resides.
      • getFfmcZipCode

        public java.lang.String getFfmcZipCode()
        This method returns the fulfillment center's ZIP code.
        Returns:
        The ZIP code of the fulfillment center.
      • getFfmcEmail

        public java.lang.String getFfmcEmail()
        This method returns the fulfillment center's e-mail address.
        Returns:
        The e-mail address of the fulfillment center.
      • getFfmcFirstName

        public java.lang.String getFfmcFirstName()
        This method returns the fulfillment center's contact first name.
        Returns:
        The contact's first name of the fulfillment center.
      • getFfmcLastName

        public java.lang.String getFfmcLastName()
        This method returns the fulfillment center's contact last name.
        Returns:
        The last name of the fulfillment center's contact.
      • getFfmcPhoneNumber

        public java.lang.String getFfmcPhoneNumber()
        This method returns the fulfillment center's phone number.
        Returns:
        The phone number of the fulfillment center.
      • getRmaCharges

        public java.lang.String getRmaCharges()
        This method returns the total RMA charges for the return.
        Returns:
        The total charges applied to the RMA.
      • getTotalTaxAmount

        public java.lang.String getTotalTaxAmount()
        This method returns the total tax amount.
        Returns:
        The total tax amount.
      • checkLock

        public boolean checkLock()
        Checks if the current CSR has locked the return.
        Returns:
        true if it is locked by the current CSR, otherwise return false;
      • isLocked

        public boolean isLocked()
        Checks if this return is locked by some other people.
        Returns:
        true if it is locked by other people or some errors in checking the lock, otherwise return false;