wt.occurrence
Interface UsesOccurrenceCreationApprovalDelegate

All Known Implementing Classes:
EPMUsesOccurrenceCreationApprovalDelegate, SingleUsesOccurrenceCreationApprovalDelegate, WTPartUsageLinkUsesOccurrenceCreationApprovalDelegate

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 Summary
 void approveCreation(OccurrenceableLink link)
          Checks to see if exactly one UsesOccurrence can be created for the given OccurrenceableLink.
 void approveCreation(OccurrenceableLink link, int count)
          Checks to see if a give count of UsesOccurrences can be created for the given OccurrenceableLink.
 

Method Detail

approveCreation

public void approveCreation(OccurrenceableLink link)
                     throws WTException
Checks to see if exactly one UsesOccurrence can be created for the given OccurrenceableLink.

Supported API: false

Parameters:
link -
Throws:
WTException

approveCreation

public void approveCreation(OccurrenceableLink link,
                            int count)
                     throws WTException
Checks to see if a give count of UsesOccurrences can be created for the given OccurrenceableLink. Returns false if count is zero or less.

Supported API: false

Parameters:
link -
count -
Throws:
WTException