Class StandardUdiSuperSet2AttributePopulator
- All Implemented Interfaces:
UDIAttributePopulatorService
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 UdiSuperset2. 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.UdiSuperSet2" OR selector="com.ptc.qualitymanagement.udi.superset.UdiSuperSet2|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
- See Also:
-
Field Summary
Fields inherited from class com.ptc.qualitymanagement.udi.AbstractUDIAttributePopulator
UDI_SUBMISSION_RESOURCE -
Method Summary
Modifier and TypeMethodDescriptionpopulateFromSouce(UDISubmission submission, Map attributes) Deprecated.voidCalled after the new version of the UdiSuperSet2 is persisted.voidThis method populates all the UdiSuperSet2 data when revise action is performed.Methods inherited from class com.ptc.qualitymanagement.udi.AbstractUDIAttributePopulator
copyAttributesFromTemplate, createUDIPackagingDetail, createUDISubmissionDetail, getAttributeValue, getAvailableAttributes, getDefinedAttributes, getPart, getPersitableAttributes, getSubmissionDetail, populateAllUdiSuperSetDetailsFromTemplate, populateFromAttributes, populateFromTempalteSizeCharacteristics, populateFromTempateUDISubmission, populateFromTemplateAlternateIdentifiers, populateFromTemplateContacts, populateFromTemplateGMDNTermCode, populateFromTemplatePackaging, populateFromTemplateSterilizationMethods, populateFromTemplateStorageCharacteristics, populateSimpleAttributesForBulkUpdate, populateUDISubmissionInfoBean, recursePackaging, recursePackagingForDelete, refreshFromSource, refreshFromSourceDetails, refreshFromSourcePackaging, setPartMethods 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
-
populateFromSouce
@Deprecated public List<UDISubmissionDetailsIfc> populateFromSouce(UDISubmission submission, Map attributes) throws WTPropertyVetoException, WTException Deprecated.API Deprecated; use populateFromSource.
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- Parameters:
submission-attributes-- Returns:
- The detail child objects created.
- Throws:
WTPropertyVetoExceptionWTException
-
revisePopulateNewVersion
Called after the new version of the UdiSuperSet2 is persisted. Attributes, Subjects, and UDI Submission Details have already been propagated to the new version. This is where you can delete, update, or add related content.
Supported API: true- Throws:
Exception
-
revisePopulatePreNewVersion
This method populates all the UdiSuperSet2 data when revise action is performed. The method is called prior to the new version of the UdiSuperSet2 object being persisted. This allows modification of attributes during the creation of the new version.Out-of-the-box implementation is blank with the expectation that the method can be overwritten for customization when extending this class. Do not call save() or store() object methods inside of this method as this will be executed by the framework.
Supported API: true- Throws:
Exception
-