Class RelationshipsHelper

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

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

Supported API: true

Extendable: true
  • Method Details

    • getRelatedEntityCollection

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

      Supported API: true
      Throws:
      Exception
    • operationPreProcess

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

      Supported API: true
      Throws:
      Exception
    • deleteObject

      public void deleteObject(com.ptc.qualitymanagement.masterdata.entity.MDRelationshipLink relationship, org.apache.olingo.commons.api.data.Entity entity, NavigationProcessorData processorData) throws Exception
      Check for edit permission on parent 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 mdEntity-rules.xml

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