biz.janux.people
Interface Party

All Superinterfaces:
Cloneable, Contacteable, Persistent, Serializable
All Known Subinterfaces:
Organization, Person

public interface Party
extends Persistent, Contacteable, Serializable, Cloneable

Organization and people have common characteristics that describe them, such as addresses, phone numbers and email addresses; they can also play similar roles as parties to contracts, such as buyers/sellers, client/provider, etc; this interface is the super type for the Person and Organization interfaces and provides a mean to refer to their implementing classes as a whole


Field Summary
 
Fields inherited from interface org.janux.bus.persistence.Persistent
UNSAVED_ID
 
Method Summary
 Object clone()
           
 String getCode()
          optional string identifier for this Party
 Map<String,ContactMethod> getContactMethods()
          map of ContactMethods keyed by a string code representing a user-defined kind of ContactMethod, such as PHYSICAL_ADDRESS, CUST_SERVICE_PHONE, EMAIL_INFO, etc...
 biz.janux.commerce.FormOfPayment getFormOfPayment(Class aFormOfPaymentClass)
          returns the matching type of form of payment
 List<biz.janux.commerce.FormOfPayment> getFormsOfPayment()
          Forms of payment associated with this party
 PartyName getPartyName()
          The name(s) by which this Party is known; sub-classes may implement this in different ways; for Persons, for example, it may the concatenation of the first and last name, while for an Organization it may be a short name or legal name
 void setCode(String code)
           
 void setContactMethods(Map<String,ContactMethod> aContactMethods)
           
 void setFormsOfPayment(List<biz.janux.commerce.FormOfPayment> fopList)
           
 
Methods inherited from interface org.janux.bus.persistence.Persistent
getId, setId
 
Methods inherited from interface biz.janux.people.Contacteable
getContactMethod, getEmailAddress, getEmailAddresses, getPhoneNumber, getPhoneNumbers, getPostalAddress, getPostalAddresses, getUrl, getUrls, setContactMethod
 

Method Detail

getCode

String getCode()
optional string identifier for this Party


setCode

void setCode(String code)

getPartyName

PartyName getPartyName()
The name(s) by which this Party is known; sub-classes may implement this in different ways; for Persons, for example, it may the concatenation of the first and last name, while for an Organization it may be a short name or legal name


getFormOfPayment

biz.janux.commerce.FormOfPayment getFormOfPayment(Class aFormOfPaymentClass)
returns the matching type of form of payment


getFormsOfPayment

List<biz.janux.commerce.FormOfPayment> getFormsOfPayment()
Forms of payment associated with this party

Returns:
a list containing all the forms of payment associated with the party

setFormsOfPayment

void setFormsOfPayment(List<biz.janux.commerce.FormOfPayment> fopList)
Parameters:
fopList - The fopList to set.

getContactMethods

Map<String,ContactMethod> getContactMethods()
Description copied from interface: Contacteable
map of ContactMethods keyed by a string code representing a user-defined kind of ContactMethod, such as PHYSICAL_ADDRESS, CUST_SERVICE_PHONE, EMAIL_INFO, etc...

Specified by:
getContactMethods in interface Contacteable

setContactMethods

void setContactMethods(Map<String,ContactMethod> aContactMethods)
Specified by:
setContactMethods in interface Contacteable

clone

Object clone()


Copyright © 2005-2013 Janux. All Rights Reserved.