Class QualityContactHelper

java.lang.Object
com.ptc.qualitymanagement.qms.rest.QualityContactHelper

public class QualityContactHelper extends Object
Supports the Creation of Relationship REST Endpoints

Supported API: true

Extendable: true
  • Method Details

    • getRelatedEntityCollection

      public Map<com.ptc.qualitymanagement.masterdata.contact.QMSContact,Collection<Object>> getRelatedEntityCollection(NavigationProcessorData processorData) throws Exception
      Processes all collections for Relationships

      Supported API: true
      Throws:
      Exception
    • createEntityData

      public org.apache.olingo.commons.api.data.Entity createEntityData(org.apache.olingo.commons.api.data.Entity entity, EntityProcessorData processorData) throws org.apache.olingo.server.api.ODataApplicationException, WTException
      Set Contact attributes based on existing mdEntity reference.

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

      public org.apache.olingo.commons.api.data.Entity updateEntityData(org.apache.olingo.commons.api.data.Entity entity, EntityProcessorData processorData) throws org.apache.olingo.server.api.ODataApplicationException, WTException
      Set Contact attributes based on existing mdEntity reference.

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

      public void deleteObject(com.ptc.qualitymanagement.masterdata.contact.QMSContact contact, org.apache.olingo.commons.api.data.Entity entity, NavigationProcessorData processorData) throws Exception
      Check for edit permission on parent object

      Supported API: true
      Throws:
      Exception
    • operationPreProcess

      public com.ptc.qualitymanagement.masterdata.contact.QMSContact operationPreProcess(com.ptc.qualitymanagement.masterdata.contact.QMSContact contact, org.apache.olingo.commons.api.data.Entity entity, NavigationProcessorData processorData, EntityObjectProcessor entityObjectProcessor) throws Exception
      Populates default values for relationships.

      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 qmsContact-rules.xml

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