Package com.ptc.qualitymanagement.udi
Class AbstractUDIAttributePopulator
java.lang.Object
com.ptc.qualitymanagement.udi.AbstractUDIAttributePopulator
- All Implemented Interfaces:
UDIAttributePopulatorService
- Direct Known Subclasses:
StandardFDAUDIAttributePopulator,StandardUdiSuperSet2AttributePopulator,StandardUdiSuperSetAttributePopulator
public abstract class AbstractUDIAttributePopulator
extends Object
implements UDIAttributePopulatorService
Implements shared logic across UDI Submission Attribute populators
Supported API: true
Extendable: true
Supported API: true
Extendable: true
-
Method Summary
Modifier and TypeMethodDescriptionabstract Map.Entry<UDISubmission,Collection<UDISubmissionDetailsIfc>> createRefreshSourceSubmission(WTContainer container, WTPart part, UDISubmission submissionTemplate)
Supported API: truepopulateAllUdiSuperSetDetailsFromTemplate(UDISubmission submission, UDISubmission template) Copy UDISubmissionDetail from template to submission
Supported API: truepopulateFromAttributes(UDISubmission submission, Map<String, Object> attributes)
Supported API: truepopulateFromSouce(UDISubmission submission, Map attributes) Provides the default implementation that populates the UDI Submission based on values in Windchill.populateFromTemplate(UDISubmission submission, UDISubmission template)
Supported API: truevoidrefreshFromSource(UDISubmission submission)
Supported API: trueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.ptc.qualitymanagement.udi.UDIAttributePopulatorService
getOrderedAttributes, initializeFollowUp, populateOneToManyAttributesFromSource
-
Method Details
-
populateFromTemplate
public Collection<UDISubmissionDetailsIfc> populateFromTemplate(UDISubmission submission, UDISubmission template) throws WTException, WTPropertyVetoException
Supported API: true- Specified by:
populateFromTemplatein interfaceUDIAttributePopulatorService- Returns:
- The detail child objects created.
- Throws:
WTExceptionWTPropertyVetoException
-
refreshFromSource
Supported API: true- Specified by:
refreshFromSourcein interfaceUDIAttributePopulatorService- Throws:
WTPropertyVetoExceptionWTException
-
createRefreshSourceSubmission
public abstract Map.Entry<UDISubmission,Collection<UDISubmissionDetailsIfc>> createRefreshSourceSubmission(WTContainer container, WTPart part, UDISubmission submissionTemplate) throws WTException, WTPropertyVetoException
Supported API: true- Specified by:
createRefreshSourceSubmissionin interfaceUDIAttributePopulatorService- Parameters:
container- - Container to set the container of newly created UDI Submission.part- - Part to link as SubmittedFor of newly UDISubmission along with populate the value from source(part).submissionTemplate- - To attach the submission template to newly created UDISubmission.- Returns:
- Entry of newly created UDISubmission as key and Collection of 1-to-many table as value.
- Throws:
WTExceptionWTPropertyVetoException
-
populateFromSouce
public List<UDISubmissionDetailsIfc> populateFromSouce(UDISubmission submission, Map attributes) throws WTPropertyVetoException, WTException Provides the default implementation that populates the UDI Submission based on values in Windchill.Provides values for:
Brand Name: from part name
Model Number: from part number + version
Serial Controlled: from part default trace code
Lot Controlled: from part default trace code
Supported API: true- Specified by:
populateFromSoucein interfaceUDIAttributePopulatorService- Returns:
- The detail child objects created.
- Throws:
WTPropertyVetoExceptionWTException
-
populateFromAttributes
public Collection<UDISubmissionDetailsIfc> populateFromAttributes(UDISubmission submission, Map<String, Object> attributes) throws WTException, WTPropertyVetoException
Supported API: true- Specified by:
populateFromAttributesin interfaceUDIAttributePopulatorService- Returns:
- The detail child objects created.
- Throws:
WTExceptionWTPropertyVetoException
-
populateAllUdiSuperSetDetailsFromTemplate
public Collection<UDISubmissionDetailsIfc> populateAllUdiSuperSetDetailsFromTemplate(UDISubmission submission, UDISubmission template) throws WTException, WTPropertyVetoException Copy UDISubmissionDetail from template to submission
Supported API: true- Parameters:
submission-template-- Returns:
- Throws:
WTExceptionWTPropertyVetoException
-