Class StandardUdiSuperSetAttributePopulator
java.lang.Object
com.ptc.qualitymanagement.udi.AbstractUDIAttributePopulator
com.ptc.qualitymanagement.udi.superset.StandardUdiSuperSetAttributePopulator
- All Implemented Interfaces:
UDIAttributePopulatorService
public class StandardUdiSuperSetAttributePopulator
extends AbstractUDIAttributePopulator
implements UDIAttributePopulatorService
Populates the UDISubmission object and UDISubmissionDetails based upon the contents of the UDISubmission Template
object.
This object is intended to be used as a base class for customer extensions. To extend create a class that extends this class then register it as the UDI Attribute Populator Service for a UdiSuperset. To register the new class create xconf file xxx.UDI.service.properties.xconf and register with Windchill.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Configuration SYSTEM "xconf.dtd">
<Configuration targetFile="codebase/service.properties">
<Service name="com.ptc.qualitymanagement.udi.UDIAttributePopulatorService">
<Option
cardinality="duplicate"
requestor=null
selector="com.ptc.qualitymanagement.udi.superset.UdiSuperSet" OR selector="com.ptc.qualitymanagement.udi.superset.UdiSuperSet|yourSubType"
serviceClass="yourfullyqualifiedclassname"
/>
</Service>
</Configuration>
Register new xconf file with Windchill
xconfmanager -i src\\com\\acme\\udi\\xxx.UDI.service.properties.xconf -p
Supported API: true
Extendable: true
-
Method Summary
Modifier and TypeMethodDescriptionCreate a new UdiSuperSet
Supported API: truegetOrderedAttributes(UDISubmission submission)
Supported API: truevoidinitializeFollowUp(UDISubmission submission)
Supported API: truepopulateFromSouce(UDISubmission submission, Map attributes) Override this method to provide the ability to customize attribute population to UDISubmission and UDISubmissionDetails
Supported API: truepopulateFromTemplate(UDISubmission submission, UDISubmission template) Populate the UDISubmission and the UDISubmissionDetails from the given template
Supported API: truepopulateFromTemplateUdiSuperSetDetails(UdiSuperSet submission, UdiSuperSet template) Deprecated.Methods inherited from class com.ptc.qualitymanagement.udi.AbstractUDIAttributePopulator
populateAllUdiSuperSetDetailsFromTemplate, populateFromAttributes, refreshFromSourceMethods 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
getPart, populateFromAttributes, populateSimpleAttributesForBulkUpdate, refreshFromSource, setPart
-
Method Details
-
createUDISubmission
Create a new UdiSuperSet
Supported API: true- Specified by:
createUDISubmissionin interfaceUDIAttributePopulatorService- Throws:
WTException-
Supported API: true
-
initializeFollowUp
public void initializeFollowUp(UDISubmission submission) throws WTPropertyVetoException, WTException
Supported API: true- Specified by:
initializeFollowUpin interfaceUDIAttributePopulatorService- Throws:
WTPropertyVetoExceptionWTException
-
populateFromTemplate
public Collection<UDISubmissionDetailsIfc> populateFromTemplate(UDISubmission submission, UDISubmission template) throws WTPropertyVetoException, WTException Populate the UDISubmission and the UDISubmissionDetails from the given template
Supported API: true- Specified by:
populateFromTemplatein interfaceUDIAttributePopulatorService- Overrides:
populateFromTemplatein classAbstractUDIAttributePopulator- Returns:
- The detail child objects created.
- Throws:
WTPropertyVetoExceptionWTException
-
populateFromTemplateUdiSuperSetDetails
@Deprecated public List<UdiSuperSetDetail> populateFromTemplateUdiSuperSetDetails(UdiSuperSet submission, UdiSuperSet template) throws WTException, WTPropertyVetoException Deprecated.Add the UDI Super Set Details from the template to the submission. Deprecated - super class's populateAllUdiSuperSetDetailsFromTemplate(submission, template) handles UDISuperSetDetails in addition to all other detail types
Supported API: true- Parameters:
submission-template-- Returns:
- Throws:
WTExceptionWTPropertyVetoException
-
getOrderedAttributes
Supported API: true- Specified by:
getOrderedAttributesin interfaceUDIAttributePopulatorService- Returns:
- Throws:
WTException
-
populateFromSouce
public List<UDISubmissionDetailsIfc> populateFromSouce(UDISubmission submission, Map attributes) throws WTPropertyVetoException, WTException Override this method to provide the ability to customize attribute population to UDISubmission and UDISubmissionDetails
Supported API: true- Specified by:
populateFromSoucein interfaceUDIAttributePopulatorService- Overrides:
populateFromSoucein classAbstractUDIAttributePopulator- Returns:
- The detail child objects created.
- Throws:
WTPropertyVetoExceptionWTException
-