@ThreadSafe public abstract class AbstractPartnershipFactoryWithPartners extends AbstractPartnershipFactory implements IPartnershipFactoryWithPartners
IPartnershipFactoryWithPartners implementation based on
AbstractPartnershipFactory using PartnerMap as the underlying
data storage object for the partners.m_aRWLock| Constructor and Description |
|---|
AbstractPartnershipFactoryWithPartners() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPartner(Partner aNewPartner)
Add a partner.
|
boolean |
equals(Object o) |
com.helger.commons.collection.impl.ICommonsSet<String> |
getAllPartnerNames() |
com.helger.commons.collection.impl.ICommonsList<Partner> |
getAllPartners() |
IPartnerMap |
getPartnerMap() |
Partner |
getPartnerOfName(String sPartnerName)
Get all the partner data of the partner with the given name.
|
int |
hashCode() |
com.helger.commons.state.EChange |
removePartner(String sPartnerName)
Remove a partner.
|
protected void |
setPartners(PartnerMap aPartners) |
addPartnership, getAllPartnershipNames, getAllPartnerships, getPartnership, getPartnershipByName, getPartnershipMap, markAsChanged, removePartnership, setPartnerships, toString, updatePartnership, updatePartnershipattrs, getAttributeAsIntRequired, getAttributeAsStringRequired, getName, getSession, initDynamicComponentclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddPartnership, getAllPartnershipNames, getAllPartnerships, getPartnership, getPartnershipByName, removePartnership, updatePartnership, updatePartnershipattrs, getName, getSession, initDynamicComponentpublic AbstractPartnershipFactoryWithPartners()
protected final void setPartners(@Nonnull PartnerMap aPartners) throws AS2Exception
AS2Exceptionpublic void addPartner(@Nonnull Partner aNewPartner) throws AS2Exception
IPartnershipFactoryWithPartnersaddPartner in interface IPartnershipFactoryWithPartnersaNewPartner - The partner data to be used. May not be null.AS2Exception - Generic error@Nonnull public com.helger.commons.state.EChange removePartner(@Nullable String sPartnerName) throws AS2Exception
IPartnershipFactoryWithPartnersremovePartner in interface IPartnershipFactoryWithPartnerssPartnerName - The name of the partner to be removed.EChange.CHANGED if the partner was successfully removed,
EChange.UNCHANGED if no such partner exists.AS2Exception - Generic error@Nullable public Partner getPartnerOfName(@Nullable String sPartnerName)
IPartnershipFactoryWithPartnersgetPartnerOfName in interface IPartnershipFactoryWithPartnerssPartnerName - Partner name to search. May be null.null if no such partner exists.@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsSet<String> getAllPartnerNames()
getAllPartnerNames in interface IPartnershipFactoryWithPartnersnull but
maybe empty.@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsList<Partner> getAllPartners()
getAllPartners in interface IPartnershipFactoryWithPartners@Nonnull public IPartnerMap getPartnerMap()
public boolean equals(Object o)
equals in class AbstractPartnershipFactorypublic int hashCode()
hashCode in class AbstractPartnershipFactoryCopyright © 2013–2022 Philip Helger. All rights reserved.