Class PersistedCollectionDelegate

java.lang.Object
wt.facade.persistedcollection.PersistedCollectionDelegate

public abstract class PersistedCollectionDelegate extends Object
Abstract delegate that can be extended for customization of PersistedCollectionService APIs that and remove seeds and members.

Supported API: true

Extendable: true
  • Method Details

    • addSeeds

      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

      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

      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

      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

      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

      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