Class AffectedObjectsHelper

java.lang.Object
com.ptc.qualitymanagement.capa.rest.AffectedObjectsHelper

public class AffectedObjectsHelper extends Object
Supports the Creation of RelatedProducts REST Endpoints

Supported API: true

Extendable: true
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    deleteObject(com.ptc.qualitymanagement.capa.RelevantRequestDataProductLink productDetail, org.apache.olingo.commons.api.data.Entity createdCustExp, NavigationProcessorData processorData)
    If the last RelevantRequestDataProductLinks linked the ReportedAgainst for a Part is deleted, delete the ReportedAgainst object.
    Map<com.ptc.qualitymanagement.capa.RelevantRequestDataProductLink,Collection<Object>>
    Processes all collections for RelatedProducts

    Supported API: true
    void
    operationPostProcess(Object object, org.apache.olingo.commons.api.data.Entity entity, NavigationProcessorData processorData)
    Enforces business rules.
    com.ptc.qualitymanagement.capa.RelevantRequestDataProductLink
    operationPreProcess(com.ptc.qualitymanagement.capa.RelevantRequestDataProductLink productLink, org.apache.olingo.commons.api.data.Entity createdProductDetail, NavigationProcessorData processorData, EntityObjectProcessor entityObjectProcessor)
    Populates default values for RelatedProducts.
    com.ptc.qualitymanagement.capa.RelevantRequestDataProductLink
    storeNewObject(com.ptc.qualitymanagement.capa.RelevantRequestDataProductLink productLink, org.apache.olingo.commons.api.data.Entity createdCustExp, NavigationProcessorData processorData)
    Creates the ReportedAgainst object and links it into RelevantRequestDataProductLinks relatedProductData attribute.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • operationPreProcess

      public com.ptc.qualitymanagement.capa.RelevantRequestDataProductLink operationPreProcess(com.ptc.qualitymanagement.capa.RelevantRequestDataProductLink productLink, org.apache.olingo.commons.api.data.Entity createdProductDetail, NavigationProcessorData processorData, EntityObjectProcessor entityObjectProcessor) throws Exception
      Populates default values for RelatedProducts.

      Enforces that Subject is immutable.

      Supported API: true

      Throws:
      Exception
    • storeNewObject

      public com.ptc.qualitymanagement.capa.RelevantRequestDataProductLink storeNewObject(com.ptc.qualitymanagement.capa.RelevantRequestDataProductLink productLink, org.apache.olingo.commons.api.data.Entity createdCustExp, NavigationProcessorData processorData) throws Exception
      Creates the ReportedAgainst object and links it into RelevantRequestDataProductLinks relatedProductData attribute.

      Supported API: true
      Throws:
      Exception
    • deleteObject

      public void deleteObject(com.ptc.qualitymanagement.capa.RelevantRequestDataProductLink productDetail, org.apache.olingo.commons.api.data.Entity createdCustExp, NavigationProcessorData processorData) throws Exception
      If the last RelevantRequestDataProductLinks linked the ReportedAgainst for a Part is deleted, delete the ReportedAgainst object.

      Supported API: true
      Throws:
      Exception
    • operationPostProcess

      public void operationPostProcess(Object object, org.apache.olingo.commons.api.data.Entity entity, NavigationProcessorData processorData) throws org.apache.olingo.server.api.ODataApplicationException, WTException, WTPropertyVetoException
      Enforces business rules.

      Set CAPA Product Affected flag.

      Supported API: true

      Throws:
      WTPropertyVetoException
      org.apache.olingo.server.api.ODataApplicationException
      WTException
    • getRelatedEntityCollection

      public Map<com.ptc.qualitymanagement.capa.RelevantRequestDataProductLink,Collection<Object>> getRelatedEntityCollection(NavigationProcessorData processorData) throws Exception
      Processes all collections for RelatedProducts

      Supported API: true
      Throws:
      Exception