Class PartnerListImpl
java.lang.Object
de.hybris.platform.sap.sapordermgmtbol.transaction.order.businessobject.impl.PartnerListImpl
- All Implemented Interfaces:
PartnerList,Serializable,Cloneable,Iterable<Map.Entry<String,PartnerListEntry>>
List of business partners and their partner functions.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear the business partner listclone()Creates an emptyPartnerListEntryDatafor the basket.createPartnerListEntry(TechKey partnerGUID, String partnerId) Creates a initialisedPartnerListEntryDatafor 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 availableConvenience 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 partner function(role).getPayer()Convenience method to Get the payer business partner, or null, if not availableConvenience 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 reseller business partner, or null, if not availableConvenience method to Get the soldfrom business partner, or null, if not availableConvenience method to Get the soldfrom business partner, or null, if not availableConvenience method to Get the soldto business partner, or null, if not availableConvenience method to Get the soldto business partner, or null, if not availableiterator()Returns en iterator over the Entrys of Partner List in form of Map.Entry The keys are the partner function and the values areParterListEntryobjects.voidremovePartner(TechKey bpTechKey) Remove the business partner with the given techKey.voidremovePartner(String bpRole) remove the business partner for the given partner function (role).voidremovePartnerData(TechKey bpTechKey) remove the business partner with the given techKey.voidremovePartnerData(String bpRole) remove the business partner for the given partner function (role).voidsetContact(PartnerListEntryImpl entry) Convenience method to set the contact business partnervoidsetContactData(PartnerListEntry entry) Convenience method to set the contact business partnervoidsetGenericFactory(GenericFactory genericFactory) voidsetList(Map<String, PartnerListEntry> partnerList) set the business partner listvoidsetPartner(String bpRole, PartnerListEntryImpl entry) Set the business partner for the given partner function (role).voidsetPartnerData(String bpRole, PartnerListEntry entry) Set the business partner for the given function (role).voidsetPayer(PartnerListEntryImpl entry) Convenience method to set the payer business partnervoidsetPayerData(PartnerListEntry entry) Convenience method to set the payer business partnervoidsetReseller(PartnerListEntryImpl entry) Convenience method to set the reseller business partnervoidsetResellerData(PartnerListEntry entry) Convenience method to set the reseller business partnervoidsetSoldFrom(PartnerListEntryImpl entry) Convenience method to set the sold-from business partnervoidsetSoldFromData(PartnerListEntry entry) Convenience method to set the sold-from business partnervoidsetSoldTo(PartnerListEntryImpl entry) Convenience method to set the soldto business partnervoidsetSoldToData(PartnerListEntry entry) Convenience method to set the soldto business partnertoString()Returns a string representation of the object.Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
PartnerListImpl
public PartnerListImpl()Creates a newPartnerListobject.
-
-
Method Details
-
setGenericFactory
- Parameters:
genericFactory- Factory to access SAP session beans
-
createPartnerListEntry
Creates an emptyPartnerListEntryDatafor the basket.- Specified by:
createPartnerListEntryin interfacePartnerList- Returns:
- PartnerListEntry which can added to the partnerList
-
createPartnerListEntry
Creates a initialisedPartnerListEntryDatafor the basket.- Specified by:
createPartnerListEntryin interfacePartnerList- 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 partner function(role).- Specified by:
getPartnerDatain interfacePartnerList- Parameters:
bpRole- Name of the partner function- Returns:
- PartnerListEntryData of the business partner, with the given partner function (role) or null if not found
-
getSoldTo
Convenience method to Get the soldto business partner, or null, if not available- Returns:
- PartnerListEntry of the soldTo business partner, or null if not found
-
getSoldToData
Convenience method to Get the soldto business partner, or null, if not available- Specified by:
getSoldToDatain interfacePartnerList- Returns:
- PartnerListEntryData of the soldTo business partner, or null if not found
-
getReseller
Convenience method to Get the reseller business partner, or null, if not available- Returns:
- PartnerListEntry of the reseller business partner, or null if not found
-
getResellerData
Convenience method to Get the reseller business partner, or null, if not available- Specified by:
getResellerDatain interfacePartnerList- Returns:
- PartnerListEntryData of the reseller business partner, or null if not found
-
getContact
Convenience method to Get the contact business partner, or null, if not available- Returns:
- PartnerListEntry of the contact business partner, or null if not found
-
getContactData
Convenience method to Get the contact business partner, or null, if not available- Specified by:
getContactDatain interfacePartnerList- Returns:
- PartnerListEntry of the contact business partner, or null if not found
-
getSoldFrom
Convenience method to Get the soldfrom business partner, or null, if not available- Returns:
- PartnerListEntry of the soldfrom business partner, or null if not found
-
getSoldFromData
Convenience method to Get the soldfrom business partner, or null, if not available- Specified by:
getSoldFromDatain interfacePartnerList- Returns:
- PartnerListEntry of the soldfrom business partner, or null if not found
-
getPayer
Convenience method to Get the payer business partner, or null, if not available- Returns:
- PartnerListEntry of the payer business partner, or null if not found
-
getPayerData
Convenience method to Get the payer business partner, or null, if not available- Specified by:
getPayerDatain interfacePartnerList- Returns:
- PartnerListEntryData of the payer business partner, or null if not found
-
setPartner
Set the business partner for the given partner function (role).- Parameters:
bpRole- Name of the partner functionentry- the PartnerListEntry for the business partner
-
setPartnerData
Set the business partner for the given function (role).- Specified by:
setPartnerDatain interfacePartnerList- Parameters:
bpRole- Name of the partner functionentry- the PartnerListEntry for the business partner
-
setSoldTo
Convenience method to set the soldto business partner- Parameters:
entry- of the soldTo business partner
-
setSoldToData
Convenience method to set the soldto business partner- Specified by:
setSoldToDatain interfacePartnerList- Parameters:
entry- of the soldTo business partner
-
setContact
Convenience method to set the contact business partner- Parameters:
entry- of the contact business partner
-
setContactData
Convenience method to set the contact business partner- Specified by:
setContactDatain interfacePartnerList- Parameters:
entry- of the contact business partner
-
setSoldFrom
Convenience method to set the sold-from business partner- Parameters:
entry- of the sold-from business partner
-
setSoldFromData
Convenience method to set the sold-from business partner- Specified by:
setSoldFromDatain interfacePartnerList- Parameters:
entry- of the sold-from business partner
-
setReseller
Convenience method to set the reseller business partner- Parameters:
entry- of the reseller business partner
-
setResellerData
Convenience method to set the reseller business partner- Parameters:
entry- of the reseller business partner
-
setPayer
Convenience method to set the payer business partner- Parameters:
entry- of the payer business partner
-
setPayerData
Convenience method to set the payer business partner- Specified by:
setPayerDatain interfacePartnerList- Parameters:
entry- of the payer business partner
-
removePartner
remove the business partner for the given partner function (role).- Parameters:
bpRole- Name of the partner function
-
removePartnerData
remove the business partner for the given partner function (role).- Specified by:
removePartnerDatain interfacePartnerList- Parameters:
bpRole- Name of the partner function
-
removePartner
Remove the business partner with the given techKey.- Parameters:
bpTechKey- TechKey of the businesspartner, to delete
-
removePartnerData
remove the business partner with the given techKey.- Specified by:
removePartnerDatain interfacePartnerList- Parameters:
bpTechKey- TechKey of the businesspartner, to delete
-
clearList
public void clearList()clear the business partner list- Specified by:
clearListin interfacePartnerList
-
toString
Returns a string representation of the object. -
getAllToString
Description copied from interface:PartnerListGet a string representation of this partnerList which is unique for these partners- Specified by:
getAllToStringin interfacePartnerList- Returns:
- string
-
getList
get the business partner list- Specified by:
getListin interfacePartnerList- Returns:
- MashMap list of the business partners
-
setList
set the business partner list- Parameters:
partnerList- new list of the business partners
-
clone
- Specified by:
clonein interfacePartnerList- Overrides:
clonein classObject- Returns:
- clone
- See Also:
-
iterator
Returns en iterator over the Entrys of Partner List in form of Map.Entry The keys are the partner function and the values areParterListEntryobjects.- Specified by:
iteratorin interfaceIterable<Map.Entry<String,PartnerListEntry>> - Returns:
- iterator over the partners and their parternfunctions
-