Class RelatedProductsHelper

java.lang.Object
com.ptc.qualitymanagement.cem.rest.RelatedProductsHelper

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

Supported API: true

Extendable: true
  • Method Details

    • operationPreProcess

      public com.ptc.qualitymanagement.cem.CEProductDetail operationPreProcess(com.ptc.qualitymanagement.cem.CEProductDetail productDetail, 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.cem.CEProductDetail storeNewObject(com.ptc.qualitymanagement.cem.CEProductDetail productDetail, org.apache.olingo.commons.api.data.Entity createdCustExp, NavigationProcessorData processorData) throws Exception
      Creates the ReportedAgainst object and links it into CEProductDetails relatedProductData attribute.

      Supported API: true
      Throws:
      Exception
    • deleteObject

      public void deleteObject(com.ptc.qualitymanagement.cem.CEProductDetail productDetail, org.apache.olingo.commons.api.data.Entity createdCustExp, NavigationProcessorData processorData) throws Exception
      If the last CEProductDetails 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 navData) throws org.apache.olingo.server.api.ODataApplicationException, WTException
      Enforces business rules defined in cemProductDetails-rules.xml

      Supported API: true
      Throws:
      org.apache.olingo.server.api.ODataApplicationException
      WTException
    • getRelatedEntityCollection

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

      Supported API: true
      Throws:
      Exception
    • isValidNavigation

      public com.ptc.odata.core.ValidNavigation isValidNavigation(String navName, Object sourceObject, String targetObjectId, EntityProcessorData processorData)
      Validate all navigations for RelatedProducts

      Supported API: true