Class DataProviderService

java.lang.Object
com.priint.pubserver.plugin.PluginControlDefault
com.priint.pubserver.entitydata.service.AbstractService
com.priint.pubserver.entitydata.service.DataProviderService
All Implemented Interfaces:
com.priint.pubserver.plugin.interfaces.PluginControl

@Consumes({"application/json","application/xml"}) @Produces({"application/json","application/xml"}) @Path("/dataprovider") public class DataProviderService extends AbstractService
RESTful service interface for querying entity model manager of publishing server.

Supports through its URIs some helper methods from EntityManagerRemote interface.

You may use either XML or JSON as serialization method.

In case of errors a ServerResult object will be returned along with the HTTP status code (in most cases 500) containing exception details.

Since:
4.0.5
  • Field Details

  • Constructor Details

    • DataProviderService

      public DataProviderService()
  • Method Details

    • get

      @GET @Path("/{identifier}") public com.priint.pubserver.webservice.ServiceResult get(@PathParam("identifier") String identifier, @QueryParam("model") String model, @QueryParam("entity") String entity, @QueryParam("resultEntity") String resultEntity, @QueryParam("record") String record, @QueryParam("recordGroup") String recordGroup, @QueryParam("searchString") String searchString, @QueryParam("assortment") String assortment, @QueryParam("country") String country, @QueryParam("language") String language, @QueryParam("well") String well, @QueryParam("publication") String publication, @QueryParam("targetGroup") String targetGroup, @QueryParam("market") String market, @QueryParam("documentId") String documentId, @QueryParam("resultClass") String className) throws com.priint.pubserver.exception.PubServerException
      Example calls:
      http://localhost:40080/EntityDataService/dataprovider/BucketLabel?model=PublishingHubDB&entity=product&resultEntity=&record=100051&recordGroup=&searchString=&assortment=&country=&language=&well=&publication=&documentId&resultClass=
      http://localhost:40080/EntityDataService/dataprovider/BucketLabel?model=PublishingHubDB&entity=product&record=100051

      {
         "entries": {
           "0": "Combi scissors"
         },
         "exception": null,
         "method": "GET",
         "status": null,
         "success": true,
         "uri": "/EntityDataService/dataprovider",
         "value": ""
       }
      Parameters:
      identifier -
      model -
      entity -
      resultEntity -
      record -
      recordGroup -
      searchString -
      assortment -
      country -
      language -
      well -
      publication -
      documentId -
      className -
      Returns:
      Throws:
      com.priint.pubserver.exception.PubServerException