Package wt.facade.persistedcollection
Class PersistedCollectionDelegate
java.lang.Object
wt.facade.persistedcollection.PersistedCollectionDelegate
Abstract delegate that can be extended for customization of PersistedCollectionService APIs that
and remove seeds and members.
Supported API: true
Extendable: true
Supported API: true
Extendable: true
-
Method Summary
Modifier and TypeMethodDescriptionThe delegate API called when members are added to a holder.The delegate API called when seeds are added to a holder.The delegate API called when all members are removed from a holder (by a call to PersistedCollectionService.removeAllMembers()).The delegate API called when all seeds are removed from a holder.The delegate API called when members are removed from a holder.The delegate API called when seeds are removed from a holder.
-
Method Details
-
addSeeds
public PersistedCollectionDelegateData addSeeds(PersistedCollectionDelegateData data) throws WTException The delegate API called when seeds are added to a holder.
Supported API: true- Parameters:
data- PersistedCollectionDelegateData containing the add seeds information.- Returns:
- PersistedCollectionDelegateData The modified data object, null if nothing changed. If the seeds are null or an empty set then nothing will be added.
- Throws:
WTException
-
removeSeeds
public PersistedCollectionDelegateData removeSeeds(PersistedCollectionDelegateData data) throws WTException The delegate API called when seeds are removed from a holder.
Supported API: true- Parameters:
data- PersistedCollectionDelegateData containing the remove seeds information.- Returns:
- PersistedCollectionDelegateData The modified data object, null if nothing changed. If the seeds are null or an empty set then nothing will be removed.
- Throws:
WTException
-
removeAllSeeds
public PersistedCollectionDelegateData removeAllSeeds(PersistedCollectionDelegateData data) throws WTException The delegate API called when all seeds are removed from a holder. (by a call to PersistedCollectionService.removeAllSeeds()).
Supported API: true- Parameters:
data- PersistedCollectionDelegateData containing the remove all seeds information. The seeds will not be passed in this object. It is the delegate's responsibility to look up the seeds if they are needed.- Returns:
- PersistedCollectionDelegateData The modified data object, null if nothing changed. If the seeds are null then all seeds will be removed. If the seeds are an empty set then nothing is removed. If the seeds are a non-empty set then the specified seeds will be removed.
- Throws:
WTException
-
addMembers
public PersistedCollectionDelegateData addMembers(PersistedCollectionDelegateData data) throws WTException The delegate API called when members are added to a holder.
Supported API: true- Parameters:
data- PersistedCollectionDelegateData containing the add members information.- Returns:
- PersistedCollectionDelegateData The modified data object, null if nothing changed. If the members are null or an empty set then nothing will be added.
- Throws:
WTException
-
removeMembers
public PersistedCollectionDelegateData removeMembers(PersistedCollectionDelegateData data) throws WTException The delegate API called when members are removed from a holder.
Supported API: true- Parameters:
data- PersistedCollectionDelegateData containing the remove members information.- Returns:
- PersistedCollectionDelegateData The modified data object, null if nothing changed. If the member are null or an empty set then nothing will be removed.
- Throws:
WTException
-
removeAllMembers
public PersistedCollectionDelegateData removeAllMembers(PersistedCollectionDelegateData data) throws WTException The delegate API called when all members are removed from a holder (by a call to PersistedCollectionService.removeAllMembers()).
Supported API: true- Parameters:
data- PersistedCollectionDelegateData containing the remove all members information. The members will not be passed in this object. It is the delegate's responsibility to look up the members if they are needed.- Returns:
- PersistedCollectionDelegateData The modified data object, null if nothing changed. If the members are null then all members will be removed. If the members are an empty set then nothing is removed. If the members are a non-empty set then the specified members will be removed.
- Throws:
WTException
-