Package wt.occurrence
Interface UsesOccurrenceCreationApprovalDelegate
- All Known Implementing Classes:
SingleUsesOccurrenceCreationApprovalDelegate
public interface UsesOccurrenceCreationApprovalDelegate
Determines if you can create another
Supported API: true
Extendable: true
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 Summary
Modifier and TypeMethodDescriptionvoidapproveCreation(WTCollection links) Checks to see if exactly oneUsesOccurrencecan be created for each of the givenOccurrenceableLinks.voidapproveCreation(WTKeyedMap linkCountMap)
-
Method Details
-
approveCreation
Checks to see if exactly oneUsesOccurrencecan be created for each of the givenOccurrenceableLinks. If one fails the entire collection fails.
Supported API: true- Parameters:
links-- Throws:
WTException
-
approveCreation
Checks to see if a givencountofUsesOccurrences can be created for the givenOccurrenceableLink. Throws aWTExceptionif anycountin 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
-