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 Summary
FieldsFields inherited from class com.priint.pubserver.entitydata.service.AbstractService
ERR_OBJECT_ALREADY_EXISTS, ERR_OBJECT_DOES_NOT_EXIST, httpServletRequest, httpServletResponse, logger, pluginLibrary, PUBLISHINGHUBDB_MAPPED_NAME, WILDCARD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.priint.pubserver.webservice.ServiceResultget(String identifier, String model, String entity, String resultEntity, String record, String recordGroup, String searchString, String assortment, String country, String language, String well, String publication, String targetGroup, String market, String documentId, String className) 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=100051Methods inherited from class com.priint.pubserver.entitydata.service.AbstractService
clean, clean, connectorEntityFromRequest, connectorEntityFromRequest, connectorEntityFromRequest, connectorEntityFromRequest, contextFromListField, contextFromListField, fillUpdateItem, fillUpdateRecords, findMethod, fromEntityDataList, fromEntityDataList, lookupBean, lookupConnector, lookupEntityManager, lookupPersistConnector, lookupPlugin, lookupPluginByJndi, lookupPluginByPluginManager, lookupPublishingHubDBConnector, lookupPublishingManagementConnector, preProcessData, setConnectorEntity, setConnectorEntity, toEntityDataList, toEntityDataMap, toEntityDataRecord, toEntityDataRecord4Update, toEntityDataRecord4UpdateList, toEntityDataRecordList, toEntityItem, toEntityItem4UpdateList, toEntityItemForUpdate, toEntityItemList, toPushDataMethods inherited from class com.priint.pubserver.plugin.PluginControlDefault
afterCreateConfigurations, afterDeleteConfigurations, afterUpdateConfigurations, createConfiguration, deleteConfigurations, getSession, getSessionId, initInstance, loadServerConfig, ping, readSessionAttribute, updateConfigurations, writeSessionAttributeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.priint.pubserver.plugin.interfaces.PluginControl
validateConfigurations
-
Field Details
-
MAPPED_NAME
- See Also:
-
-
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
-