Package com.portal.app.ccare.comp
Class SponsorshipData
java.lang.Object
com.portal.app.ccare.comp.SponsorshipData
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionSponsorshipData
(PModelHandle acct, PModelHandle group) Creates an instance of this class setting the account and sponsor group data.SponsorshipData
(PModelHandle acct, PModelHandle group, PModelHandle[] details) Creates an instance of this class setting the account, sponsor group, and details data. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true if the given object is the same.Returns the account name, first and last name, formated for the given the given locale.getGroup()
boolean
void
setDetails
(PModelHandle[] d) Set the details for the sponsor group.
-
Constructor Details
-
SponsorshipData
Creates an instance of this class setting the account and sponsor group data.- Parameters:
acct
- the accountgroup
- the sponsor group
-
SponsorshipData
Creates an instance of this class setting the account, sponsor group, and details data.- Parameters:
acct
- the accountgroup
- the sponsor groupdetails
- an array of details about the sponsor group
-
-
Method Details
-
setDetails
Set the details for the sponsor group.- Parameters:
d
- an array of detail information
-
getGroup
- Returns:
- a handle to the sponsor group
-
getAccount
- Returns:
- a handle to the sponsor group account
-
getDetails
- Returns:
- the detailed information about the sponsor group
-
getGroupName
- Returns:
- the group name for the sponsor object
-
isAccountActive
public boolean isAccountActive()- Returns:
- true if the owner account is active; otherwise false
-
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
- Returns:
- the account number for the account object
-
getCompany
- Returns:
- the company name for the account object
-
getCurrency
- Returns:
- the currency, primary and secondary, for the account object
-
equals
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
-