public interface IPartnershipFactory extends IDynamicComponent
Partnership
objects.| Modifier and Type | Method and Description |
|---|---|
com.helger.commons.state.EChange |
addPartnership(Partnership aPartnership)
Add a partnership.
|
com.helger.commons.collection.impl.ICommonsSet<String> |
getAllPartnershipNames() |
com.helger.commons.collection.impl.ICommonsList<Partnership> |
getAllPartnerships() |
Partnership |
getPartnership(Partnership aPartnership)
Get the partnership identified by the provided stub partnership.
|
Partnership |
getPartnershipByName(String sName)
Find an existing partnership by its name.
|
com.helger.commons.state.EChange |
removePartnership(Partnership aPartnership)
Remove the specified partnership.
|
void |
updatePartnership(IMessage aMsg,
boolean bOverwrite)
Looks up and fills in any header info for a specific msg's partnership.
|
void |
updatePartnership(IMessageMDN aMdn,
boolean bOverwrite)
Looks up and fills in any header info for a specific MDN's partnership
|
attrs, getName, getSession, initDynamicComponent@Nonnull com.helger.commons.state.EChange addPartnership(@Nonnull Partnership aPartnership) throws AS2Exception
aPartnership - The partnership to be added. May not be null. The name
of the partnership must be unique so that it gets added.EChange.CHANGED if adding was successfully,
EChange.UNCHANGED if the name is already contained.AS2Exception - Generic error@Nonnull com.helger.commons.state.EChange removePartnership(@Nonnull Partnership aPartnership) throws AS2Exception
aPartnership - The partnership to be removed.EChange.CHANGED if removal was successful,
EChange.UNCHANGED if no such partnership to be removed is
present.AS2Exception - Generic error@Nonnull Partnership getPartnership(@Nonnull Partnership aPartnership) throws AS2Exception
aPartnership - Stub partnership which must contain either a name or a set of sender
and receiver IDs.null.AS2Exception - If no partnership matching the provided stub partnership can be
found.@Nullable Partnership getPartnershipByName(@Nullable String sName)
sName - The partnership name to be looked up. May be null.null if no such partnership exists.@Nonnull @ReturnsMutableCopy com.helger.commons.collection.impl.ICommonsSet<String> getAllPartnershipNames()
null
but maybe empty.@Nonnull @ReturnsMutableCopy com.helger.commons.collection.impl.ICommonsList<Partnership> getAllPartnerships()
null but
maybe empty.void updatePartnership(@Nonnull IMessage aMsg, boolean bOverwrite) throws AS2Exception
aMsg - The message in which the partnership should be updated. May not be
null and must already contain a partnership with at
least name or sender and receiver IDs.bOverwrite - true to also set the subject of the message with the
subject stored in the partnership.AS2Exception - In case of an errorgetPartnership(Partnership)void updatePartnership(@Nonnull IMessageMDN aMdn, boolean bOverwrite) throws AS2Exception
aMdn - The MDN of which the partnership information should be updated. May
not be null and must already contain a partnership with
at least name or sender and receiver IDs.bOverwrite - has no effect currentlyAS2Exception - In case of an errorgetPartnership(Partnership)Copyright © 2013–2022 Philip Helger. All rights reserved.