Class StandardUdiSuperSet2AttributePopulator

java.lang.Object
com.ptc.qualitymanagement.udi.AbstractUDIAttributePopulator
com.ptc.qualitymanagement.udi.superset.StandardUdiSuperSet2AttributePopulator
All Implemented Interfaces:
UDIAttributePopulatorService

public class StandardUdiSuperSet2AttributePopulator extends AbstractUDIAttributePopulator implements UDIAttributePopulatorService
Populates the UDISuperSet2 object and UDISuperSet2Details based upon the contents of the UDISuperSet2 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 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:
  • 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:
      populateFromSouce in interface UDIAttributePopulatorService
      Overrides:
      populateFromSouce in class AbstractUDIAttributePopulator
      Parameters:
      submission -
      attributes -
      Returns:
      The detail child objects created.
      Throws:
      WTPropertyVetoException
      WTException
    • revisePopulateNewVersion

      public void revisePopulateNewVersion(UdiSuperSet2 udi) throws Exception
      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

      public void revisePopulatePreNewVersion(UdiSuperSet2 udi) throws Exception
      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