Interface PartnerList
- All Superinterfaces:
Cloneable,Iterable<Map.Entry<String,,PartnerListEntry>> Serializable
- All Known Implementing Classes:
PartnerListImpl
public interface PartnerList
extends Iterable<Map.Entry<String,PartnerListEntry>>, Cloneable, Serializable
Represents the backend's view of a PartnerList.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear the business partner listclone()Creates an emptyPartnerListEntryDatafor the basket.createPartnerListEntry(TechKey partnerGUID, String partnerId) Creates a initializedPartnerListEntryDatafor the basket.Get a string representation of this partnerList which is unique for these partnersConvenience method to Get the contact business partner, or null, if not availablegetList()get the business partner listgetPartnerData(String bpRole) Get the business partner for the given roleConvenience method to Get the payer business partner, or null, if not availableConvenience method to Get the reseller business partner, or null, if not availableConvenience method to Get the contact business partner, or null, if not availableConvenience method to Get the soldto business partner, or null, if not availablevoidremovePartnerData(TechKey bpTechKey) remove the business partner with the given GUIDvoidremovePartnerData(String bpRole) remove the business partner for the given rolevoidsetContactData(PartnerListEntry entry) Convenience method to set the contact business partnervoidsetPartnerData(String bpRole, PartnerListEntry entry) Set the business partner for the given rolevoidsetPayerData(PartnerListEntry entry) Convenience method to set the payer business partnervoidsetSoldFromData(PartnerListEntry entry) Convenience method to set the soldfrom business partnervoidsetSoldToData(PartnerListEntry entry) Convenience method to set the soldto business partnerMethods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
createPartnerListEntry
PartnerListEntry createPartnerListEntry()Creates an emptyPartnerListEntryDatafor the basket.- Returns:
- PartnerListEntry which can added to the partnerList
-
createPartnerListEntry
Creates a initializedPartnerListEntryDatafor the basket.- Parameters:
partnerGUID- techkey of the business partnerpartnerId- id of the business partner- Returns:
- PartnerListEntry which can added to the partnerList
-
getPartnerData
Get the business partner for the given role- Parameters:
bpRole- String the role of the business partner- Returns:
- PartnerListEntryData of the business partner, with the given role or null if not found
-
getSoldToData
PartnerListEntry getSoldToData()Convenience method to Get the soldto business partner, or null, if not available- Returns:
- PartnerListEntryData of the soldTo business partner, or null if not found
-
getContactData
PartnerListEntry getContactData()Convenience method to Get the contact business partner, or null, if not available- Returns:
- PartnerListEntryData of the contact business partner, or null if not found
-
getSoldFromData
PartnerListEntry getSoldFromData()Convenience method to Get the contact business partner, or null, if not available- Returns:
- PartnerListEntryData of the contac business partner, or null if not found
-
getResellerData
PartnerListEntry getResellerData()Convenience method to Get the reseller business partner, or null, if not available- Returns:
- PartnerListEntryData of the reseller business partner, or null if not found
-
getPayerData
PartnerListEntry getPayerData()Convenience method to Get the payer business partner, or null, if not available- Returns:
- PartnerListEntryData of the payer business partner, or null if not found
-
setPartnerData
Set the business partner for the given role- Parameters:
bpRole- String the role of the business partnerentry- the PartnerListEntry for the business partner
-
setSoldToData
Convenience method to set the soldto business partner- Parameters:
entry- of the soldTo business partner
-
setContactData
Convenience method to set the contact business partner- Parameters:
entry- of the contact business partner
-
setSoldFromData
Convenience method to set the soldfrom business partner- Parameters:
entry- of the soldfrom business partner
-
setPayerData
Convenience method to set the payer business partner- Parameters:
entry- of the payer business partner
-
removePartnerData
remove the business partner for the given role- Parameters:
bpRole- String the role of the business partner
-
removePartnerData
remove the business partner with the given GUID- Parameters:
bpTechKey- TechKey of the Partner, to dlete
-
clearList
void clearList()clear the business partner list -
clone
PartnerList clone()- Returns:
- clone
- See Also:
-
getList
Map<String,PartnerListEntry> getList()get the business partner list- Returns:
- MashMap list of the business partners
-
getAllToString
String getAllToString()Get a string representation of this partnerList which is unique for these partners- Returns:
- string
-