Package wt.occurrence

Interface UsesOccurrenceCreationApprovalDelegate

All Known Implementing Classes:
SingleUsesOccurrenceCreationApprovalDelegate

public interface UsesOccurrenceCreationApprovalDelegate
Determines if you can create another UsesOccurrence for a specific OccurrenceableLink object; it may say no in all cases for certain types of OccurrenceableLink objects.

Supported API: true

Extendable: true
  • Method Details

    • approveCreation

      void approveCreation(WTCollection links) throws WTException
      Checks to see if exactly one UsesOccurrence can be created for each of the given OccurrenceableLinks. If one fails the entire collection fails.

      Supported API: true
      Parameters:
      links -
      Throws:
      WTException
    • approveCreation

      void approveCreation(WTKeyedMap linkCountMap) throws WTException
      Checks to see if a given count of UsesOccurrences can be created for the given OccurrenceableLink. Throws a WTException if any count in the input map is zero or less. If one fails the entire collection fails.

      Supported API: true
      Parameters:
      linkCountMap - key = OccurrenceableLink, value = Integer count.
      Throws:
      WTException