Class QualityContactHelper
java.lang.Object
com.ptc.qualitymanagement.qms.rest.QualityContactHelper
Supports the Creation of Relationship REST Endpoints
Supported API: true
Extendable: true
Supported API: true
Extendable: true
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.olingo.commons.api.data.EntitycreateEntityData(org.apache.olingo.commons.api.data.Entity entity, EntityProcessorData processorData) Set Contact attributes based on existing mdEntity reference.voiddeleteObject(com.ptc.qualitymanagement.masterdata.contact.QMSContact contact, org.apache.olingo.commons.api.data.Entity entity, NavigationProcessorData processorData) Check for edit permission on parent object
Supported API: trueMap<com.ptc.qualitymanagement.masterdata.contact.QMSContact, Collection<Object>> getRelatedEntityCollection(NavigationProcessorData processorData) Processes all collections for Relationships
Supported API: truevoidoperationPostProcess(Object object, org.apache.olingo.commons.api.data.Entity entity, NavigationProcessorData navData) Enforces business rules defined in qmsContact-rules.xml
Supported API: truecom.ptc.qualitymanagement.masterdata.contact.QMSContactoperationPreProcess(com.ptc.qualitymanagement.masterdata.contact.QMSContact contact, org.apache.olingo.commons.api.data.Entity entity, NavigationProcessorData processorData, EntityObjectProcessor entityObjectProcessor) Populates default values for relationships.org.apache.olingo.commons.api.data.EntityupdateEntityData(org.apache.olingo.commons.api.data.Entity entity, EntityProcessorData processorData) Set Contact attributes based on existing mdEntity reference.
-
Method Details
-
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.ODataApplicationExceptionWTException
-
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.ODataApplicationExceptionWTException