public interface IPartnershipFactoryWithPartners extends IPartnershipFactory
IPartnershipFactory by adding
"partners". This can be used for providing certain fixed value on a
per-partner basis (e.g. email address or X509 certificate alias to the key
store) without having redundancy data in all partnerships.| Modifier and Type | Method and Description |
|---|---|
void |
addPartner(Partner aNewPartner)
Add a partner.
|
com.helger.commons.collection.impl.ICommonsSet<String> |
getAllPartnerNames() |
com.helger.commons.collection.impl.ICommonsList<? extends IPartner> |
getAllPartners() |
IPartner |
getPartnerOfName(String sPartnerName)
Get all the partner data of the partner with the given name.
|
com.helger.commons.state.EChange |
removePartner(String sPartnerName)
Remove a partner.
|
addPartnership, getAllPartnershipNames, getAllPartnerships, getPartnership, getPartnershipByName, removePartnership, updatePartnership, updatePartnershipattrs, getName, getSession, initDynamicComponentvoid addPartner(@Nonnull Partner aNewPartner) throws AS2Exception
aNewPartner - The partner data to be used. May not be null.AS2Exception - Generic error@Nonnull com.helger.commons.state.EChange removePartner(@Nullable String sPartnerName) throws AS2Exception
sPartnerName - 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 IPartner getPartnerOfName(@Nullable String sPartnerName)
sPartnerName - Partner name to search. May be null.null if no such partner exists.@Nonnull @ReturnsMutableCopy com.helger.commons.collection.impl.ICommonsSet<String> getAllPartnerNames()
null but
maybe empty.Copyright © 2013–2022 Philip Helger. All rights reserved.