Class SponsorshipData

java.lang.Object
com.portal.app.ccare.comp.SponsorshipData
All Implemented Interfaces:
Serializable

public class SponsorshipData extends Object implements Serializable
This is a common class that is used to pass the sponsorship data between the setup panel and its controller.
Version:
%version: 8 % %date_modified: Wed Oct 24 18:29:48 2001 %
See Also:
  • Constructor Details

    • SponsorshipData

      public SponsorshipData(PModelHandle acct, PModelHandle group)
      Creates an instance of this class setting the account and sponsor group data.
      Parameters:
      acct - the account
      group - the sponsor group
    • SponsorshipData

      public SponsorshipData(PModelHandle acct, PModelHandle group, PModelHandle[] details)
      Creates an instance of this class setting the account, sponsor group, and details data.
      Parameters:
      acct - the account
      group - the sponsor group
      details - an array of details about the sponsor group
  • Method Details

    • setDetails

      public void setDetails(PModelHandle[] d)
      Set the details for the sponsor group.
      Parameters:
      d - an array of detail information
    • getGroup

      public PModelHandle getGroup()
      Returns:
      a handle to the sponsor group
    • getAccount

      public PModelHandle getAccount()
      Returns:
      a handle to the sponsor group account
    • getDetails

      public PModelHandle[] getDetails()
      Returns:
      the detailed information about the sponsor group
    • getGroupName

      public String getGroupName()
      Returns:
      the group name for the sponsor object
    • isAccountActive

      public boolean isAccountActive()
      Returns:
      true if the owner account is active; otherwise false
    • getAccountName

      public String getAccountName()
      Returns the account name, first and last name, formated for the given the given locale. If the locale is null, it returns the format "first last".
      Parameters:
      l - the locale
      Returns:
      the formated account name
    • getAccountNumber

      public String getAccountNumber()
      Returns:
      the account number for the account object
    • getCompany

      public String getCompany()
      Returns:
      the company name for the account object
    • getCurrency

      public CurrenciesData getCurrency()
      Returns:
      the currency, primary and secondary, for the account object
    • equals

      public boolean equals(SponsorshipData d)
      Returns true if the given object is the same. The check is done on both the account number and the group name.
      Parameters:
      d - the SponsorshipData to compare
      Returns:
      true if the objects are the same, false otherwise