Class EntityManagerService

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

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

Supports through its URIs all methods from EntityManagerRemote interface.

Data transfer format for most methods is Data.

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.

Context is specified as a list of query string arguments where field names are separated by ":". Use e.g. the following call to query root buckets for MyEntityModel for a catalog for Austria in German language only using a data well called "Premium".

 http://server/EntityDataService/entitymanager/MyEntityModel/Bucket?context=language:deu&context=country:AT&context=well:Premium
 
Since:
4.0.5
  • Field Details

    • MAPPED_NAME

      public static final String MAPPED_NAME
      The mapped name for the `EntityManagerService` class.

      This constant is used to uniquely identify the `EntityManagerService` in the application server's JNDI registry. It provides a reference for accessing the service within the application.

      See Also:
  • Constructor Details

    • EntityManagerService

      public EntityManagerService()
  • Method Details

    • getEntityChildrenOfEntityBucket

      @GET @Path("/{entityModelIdentifier}/Bucket/{parentEntityId}/{parentDataId}/{resultType}") public com.priint.pubserver.plugin.entitydata.Data getEntityChildrenOfEntityBucket(@PathParam("entityModelIdentifier") String entityModelIdentifier, @PathParam("parentType") String parentType, @PathParam("parentEntityId") String parentEntityId, @PathParam("parentDataId") String parentDataId, @PathParam("resultType") String resultType, @QueryParam("corded") boolean corded, @QueryParam("search") String searchStr) throws com.priint.pubserver.exception.PubServerException
      Retrieves child entities of a specific entity bucket.

      This method handles a GET request to query child entities associated with a specific entity model, parent entity, and parent data ID. The result is filtered based on the provided result type and optional search string. It also supports an optional flag to include corded entities.

      Example endpoint: http://server/EntityDataService/entitymanager/{entityModelIdentifier}/Bucket/{parentEntityId}/{parentDataId}/{resultType}?corded=true&search={searchStr}

      Parameters:
      entityModelIdentifier - The identifier of the entity model to which the parent entity belongs.
      parentType - The type of the parent entity (not used in the method implementation).
      parentEntityId - The identifier of the parent entity.
      parentDataId - The identifier of the parent data.
      resultType - The type of the result entities to be retrieved.
      corded - A boolean flag indicating whether to include corded entities in the result.
      searchStr - An optional search string for filtering the child entities.
      Returns:
      A Data object containing the child entities matching the query.
      Throws:
      com.priint.pubserver.exception.PubServerException - If an error occurs during the query operation.
    • getEntityChildrenOfEntityBucket

      @GET @Path("/{entityModelIdentifier}/Bucket/{parentEntityId}/{parentDataId}/{resultType}/{resultEntityId}") public com.priint.pubserver.plugin.entitydata.Data getEntityChildrenOfEntityBucket(@PathParam("entityModelIdentifier") String entityModelIdentifier, @PathParam("parentType") String parentType, @PathParam("parentEntityId") String parentEntityId, @PathParam("parentDataId") String parentDataId, @PathParam("resultType") String resultType, @PathParam("resultEntityId") String resultEntityId, @QueryParam("corded") boolean corded, @QueryParam("search") String searchStr) throws com.priint.pubserver.exception.PubServerException
      Retrieves child entities of a specific entity bucket.

      This method handles a GET request to query child entities associated with a specific entity model, parent entity, and parent data ID. The result is filtered based on the provided result type, result entity ID, and optional search string. It also supports an optional flag to include corded entities.

      Example endpoint: http://server/EntityDataService/entitymanager/{entityModelIdentifier}/Bucket/{parentEntityId}/{parentDataId}/{resultType}/{resultEntityId}?amp;corded=true&search={searchStr}

      Parameters:
      entityModelIdentifier - The identifier of the entity model to which the parent entity belongs.
      parentType - The type of the parent entity.
      parentEntityId - The identifier of the parent entity.
      parentDataId - The identifier of the parent data.
      resultType - The type of the result entities to be retrieved.
      resultEntityId - The identifier of the result entity.
      corded - A boolean flag indicating whether to include corded entities in the result.
      searchStr - An optional search string for filtering the child entities.
      Returns:
      A Data object containing the child entities matching the query.
      Throws:
      com.priint.pubserver.exception.PubServerException - If an error occurs during the query operation.
    • getRootFromEntityManager

      @GET @Path("/{entityModelIdentifier}/Bucket") public com.priint.pubserver.plugin.entitydata.Data getRootFromEntityManager(@PathParam("entityModelIdentifier") String entityModelIdentifier, @QueryParam("search") String searchStr) throws com.priint.pubserver.exception.PubServerException
      Retrieves root buckets or searches for buckets associated with a specific entity model.

      This method handles a GET request to either fetch root buckets or perform a search for buckets based on the provided parameters. If the searchStr query parameter is provided, it filters the buckets based on the search string.

      Example endpoint: http://server/EntityDataService/entitymanager/{entityModelIdentifier}/Bucket?search={searchStr}

      Parameters:
      entityModelIdentifier - The identifier of the entity model to which the buckets belong.
      searchStr - An optional search string for filtering the buckets. If not provided, all root buckets are retrieved.
      Returns:
      A Data object containing the retrieved or searched buckets.
      Throws:
      com.priint.pubserver.exception.PubServerException - If an error occurs during the operation.
    • getRootFromEntityManager

      @GET @Path("/{entityModelIdentifier}/Bucket/{resultEntityId}") public com.priint.pubserver.plugin.entitydata.Data getRootFromEntityManager(@PathParam("entityModelIdentifier") String entityModelIdentifier, @PathParam("resultEntityId") String resultEntityId, @QueryParam("root") @DefaultValue("true") Boolean root, @QueryParam("search") String searchStr) throws com.priint.pubserver.exception.PubServerException
      Retrieves root buckets or searches for buckets associated with a specific entity model and result entity ID.

      This method handles a GET request to either fetch root buckets or perform a search for buckets based on the provided parameters. The behavior is determined by the root query parameter.

      Example endpoint: http://server/EntityDataService/entitymanager/{entityModelIdentifier}/Bucket/{resultEntityId}?root=true&search={searchStr}

      Parameters:
      entityModelIdentifier - The identifier of the entity model to which the buckets belong.
      resultEntityId - The identifier of the result entity for which buckets are being queried.
      root - A boolean query parameter. If true, retrieves root buckets. If false, performs a search for buckets. Defaults to true.
      searchStr - An optional search string for filtering the buckets. Ignored if root is true.
      Returns:
      A Data object containing the retrieved or searched buckets.
      Throws:
      com.priint.pubserver.exception.PubServerException - If an error occurs during the operation.
    • getBucketByIdentifier

      @GET @Path("/{entityModelIdentifier}/Bucket/{entityId}/{recordId}") public com.priint.pubserver.plugin.entitydata.Data getBucketByIdentifier(@PathParam("entityModelIdentifier") String entityModelIdentifier, @PathParam("entityId") String entityId, @PathParam("recordId") String recordId, @QueryParam("search") String searchStr) throws com.priint.pubserver.exception.PubServerException
      Query for bucket entities associated with a specific entity model and entity identifier.

      This method handles a GET request to retrieve bucket entities based on the provided entity model identifier, entity identifier, and an optional search string. It processes the query and returns the matching bucket entities.

      Example endpoint: http://server/EntityDataService/entitymanager/{entityModelIdentifier}/Bucket/{entityId}/{recordId}?search={searchStr}

      Parameters:
      entityModelIdentifier - The identifier of the entity model to which the bucket entities belong.
      entityId - The identifier of the specific entity to search for bucket entities.
      recordId - The identifier of the specific record to search for bucket entities.
      searchStr - An optional search string for filtering the bucket entities.
      Returns:
      A Data object containing the matching bucket entities.
      Throws:
      com.priint.pubserver.exception.PubServerException - If an error occurs during the search operation.
    • getContentMetaDataByIdentifier

      @GET @Path("/{entityModelIdentifier}/ContentMetaData/{entityId}/{recordId}") public com.priint.pubserver.plugin.entitydata.Data getContentMetaDataByIdentifier(@PathParam("entityModelIdentifier") String entityModelIdentifier, @PathParam("entityId") String entityId, @PathParam("recordId") String recordId, @QueryParam("search") String searchStr) throws com.priint.pubserver.exception.PubServerException
      Query for content metadata entities associated with a specific entity model and entity identifier.

      This method handles a GET request to retrieve content metadata entities based on the provided entity model identifier, entity identifier, and an optional search string. It processes the query and returns the matching content metadata entities.

      Example endpoint: http://server/EntityDataService/entitymanager/{entityModelIdentifier}/ContentMetaData/{entityId}/{recordId}?search={searchStr}

      Parameters:
      entityModelIdentifier - The identifier of the entity model to which the content metadata entities belong.
      entityId - The identifier of the specific entity to search for content metadata entities.
      recordId - The identifier of the specific record to search for content metadata entities.
      searchStr - An optional search string for filtering the content metadata entities.
      Returns:
      A Data object containing the matching content metadata entities.
      Throws:
      com.priint.pubserver.exception.PubServerException - If an error occurs during the search operation.
    • getCordByIdentifier

      @GET @Path("/{entityModelIdentifier}/Cord/{entityId}/{recordId}") public com.priint.pubserver.plugin.entitydata.Data getCordByIdentifier(@PathParam("entityModelIdentifier") String entityModelIdentifier, @PathParam("entityId") String entityId, @PathParam("recordId") String recordId, @QueryParam("search") String searchStr) throws com.priint.pubserver.exception.PubServerException
      Query for cord entities associated with a specific entity model and entity identifier.

      This method handles a GET request to retrieve cord entities based on the provided entity model identifier, entity identifier, and an optional search string. It processes the query and returns the matching cord entities.

      Example endpoint: http://server/EntityDataService/entitymanager/{entityModelIdentifier}/Cord/{entityId}/{recordId}?search={searchStr}

      Parameters:
      entityModelIdentifier - The identifier of the entity model to which the cord entities belong.
      entityId - The identifier of the specific entity to search for cord entities.
      recordId - The identifier of the specific record to search for cord entities.
      searchStr - An optional search string for filtering the cord entities.
      Returns:
      A Data object containing the matching cord entities.
      Throws:
      com.priint.pubserver.exception.PubServerException - If an error occurs during the search operation.
    • getKeyValueByIdentifier

      @GET @Path("/{entityModelIdentifier}/KeyValue/{entityId}/{recordId}") public com.priint.pubserver.plugin.entitydata.Data getKeyValueByIdentifier(@PathParam("entityModelIdentifier") String entityModelIdentifier, @PathParam("entityId") String entityId, @PathParam("recordId") String recordId, @QueryParam("search") String searchStr) throws com.priint.pubserver.exception.PubServerException
      Query for key-value entities associated with a specific entity model and entity identifier.

      This method handles a GET request to retrieve key-value entities based on the provided entity model identifier, entity identifier, and an optional search string. It processes the query and returns the matching key-value entities.

      Example endpoint: http://server/EntityDataService/entitymanager/{entityModelIdentifier}/KeyValue/{entityId}/{recordId}?search={searchStr}

      Parameters:
      entityModelIdentifier - The identifier of the entity model to which the key-value entities belong.
      entityId - The identifier of the specific entity to search for key-value entities.
      recordId - The identifier of the specific record to search for key-value entities.
      searchStr - An optional search string for filtering the key-value entities.
      Returns:
      A Data object containing the matching key-value entities.
      Throws:
      com.priint.pubserver.exception.PubServerException - If an error occurs during the search operation.
    • getMediaAssetByIdentifier

      @GET @Path("/{entityModelIdentifier}/MediaAsset/{entityId}/{recordId}") public com.priint.pubserver.plugin.entitydata.Data getMediaAssetByIdentifier(@PathParam("entityModelIdentifier") String entityModelIdentifier, @PathParam("entityId") String entityId, @PathParam("recordId") String recordId, @QueryParam("search") String searchStr) throws com.priint.pubserver.exception.PubServerException
      Query for media asset entities associated with a specific entity model and entity identifier.

      This method handles a GET request to retrieve media asset entities based on the provided entity model identifier, entity identifier, and an optional search string. It processes the query and returns the matching media asset entities.

      Example endpoint: http://server/EntityDataService/entitymanager/{entityModelIdentifier}/MediaAsset/{entityId}/{recordId}?search={searchStr}

      Parameters:
      entityModelIdentifier - The identifier of the entity model to which the media asset entities belong.
      entityId - The identifier of the specific entity to search for media asset entities.
      recordId - The identifier of the specific record to search for media asset entities.
      searchStr - An optional search string for filtering the media asset entities.
      Returns:
      A Data object containing the matching media asset entities.
      Throws:
      com.priint.pubserver.exception.PubServerException - If an error occurs during the search operation.
    • getPriceByIdentifier

      @GET @Path("/{entityModelIdentifier}/Price/{entityId}/{recordId}") public com.priint.pubserver.plugin.entitydata.Data getPriceByIdentifier(@PathParam("entityModelIdentifier") String entityModelIdentifier, @PathParam("entityId") String entityId, @PathParam("recordId") String recordId, @QueryParam("search") String searchStr) throws com.priint.pubserver.exception.PubServerException
      Query for price entities associated with a specific entity model and entity identifier.

      This method handles a GET request to retrieve price entities based on the provided entity model identifier, entity identifier, and an optional search string. It processes the query and returns the matching price entities.

      Example endpoint: http://server/EntityDataService/entitymanager/{entityModelIdentifier}/Price/{entityId}/{recordId}?search={searchStr}

      Parameters:
      entityModelIdentifier - The identifier of the entity model to which the price entities belong.
      entityId - The identifier of the specific entity to search for price entities.
      recordId - The identifier of the specific record to search for price entities.
      searchStr - An optional search string for filtering the price entities.
      Returns:
      A Data object containing the matching price entities.
      Throws:
      com.priint.pubserver.exception.PubServerException - If an error occurs during the search operation.
    • getTableDataByIdentifier

      @GET @Path("/{entityModelIdentifier}/TableData/{entityId}/{recordId}") public com.priint.pubserver.plugin.entitydata.Data getTableDataByIdentifier(@PathParam("entityModelIdentifier") String entityModelIdentifier, @PathParam("entityId") String entityId, @PathParam("recordId") String recordId, @QueryParam("search") String searchStr) throws com.priint.pubserver.exception.PubServerException
      Query for table data entities associated with a specific entity model and entity identifier.

      This method handles a GET request to retrieve table data entities based on the provided entity model identifier, entity identifier, and an optional search string. It processes the query and returns the matching table data entities.

      Example endpoint: http://server/EntityDataService/entitymanager/{entityModelIdentifier}/TableData/{entityId}/{recordId}?search={searchStr}

      Parameters:
      entityModelIdentifier - The identifier of the entity model to which the table data entities belong.
      entityId - The identifier of the specific entity to search for table data entities.
      recordId - The identifier of the specific record to search for table data entities.
      searchStr - An optional search string for filtering the table data entities.
      Returns:
      A Data object containing the matching table data entities.
      Throws:
      com.priint.pubserver.exception.PubServerException - If an error occurs during the search operation.
    • getTextByIdentifier

      @GET @Path("/{entityModelIdentifier}/Text/{entityId}/{recordId}") public com.priint.pubserver.plugin.entitydata.Data getTextByIdentifier(@PathParam("entityModelIdentifier") String entityModelIdentifier, @PathParam("entityId") String entityId, @PathParam("recordId") String recordId, @QueryParam("search") String searchStr) throws com.priint.pubserver.exception.PubServerException
      Query for text entities associated with a specific entity model and entity identifier.

      This method handles a GET request to retrieve text entities based on the provided entity model identifier, entity identifier, and an optional search string. It processes the query and returns the matching text entities.

      Example endpoint: http://server/EntityDataService/entitymanager/{entityModelIdentifier}/Text/{entityId}/{recordId}?search={searchStr}

      Parameters:
      entityModelIdentifier - The identifier of the entity model to which the text entities belong.
      entityId - The identifier of the specific entity to search for text entities.
      recordId - The identifier of the specific record to search for text entities.
      searchStr - An optional search string for filtering the text entities.
      Returns:
      A Data object containing the matching text entities.
      Throws:
      com.priint.pubserver.exception.PubServerException - If an error occurs during the search operation.
    • getTextBySearch

      @GET @Path("/{entityModelIdentifier}/Text/{entityId}") public com.priint.pubserver.plugin.entitydata.Data getTextBySearch(@PathParam("entityModelIdentifier") String entityModelIdentifier, @PathParam("entityId") String entityId, @QueryParam("search") String searchStr) throws com.priint.pubserver.exception.PubServerException
      Searches for text entities associated with a specific entity model and entity identifier.

      This method handles a GET request to retrieve text entities based on the provided entity model identifier, entity identifier, and an optional search string. It processes the query and returns the matching text entities.

      Example endpoint: http://server/EntityDataService/entitymanager/{entityModelIdentifier}/Text/{entityId}?search={searchStr}

      Parameters:
      entityModelIdentifier - The identifier of the entity model to which the text entities belong.
      entityId - The identifier of the specific entity to search for text entities.
      searchStr - An optional search string for filtering the text entities.
      Returns:
      A Data object containing the matching text entities.
      Throws:
      com.priint.pubserver.exception.PubServerException - If an error occurs during the search operation.
    • setEntityData

      @POST @Path("/{entityModelIdentifier}/Data") public com.priint.pubserver.plugin.entitydata.Data setEntityData(@PathParam("entityModelIdentifier") String entityModelIdentifier, com.priint.pubserver.plugin.entitydata.Data data) throws com.priint.pubserver.exception.PubServerException
      Sets or updates various types of entity data for a specific entity model.

      This method handles a POST request to add or update multiple types of entity data (e.g., buckets, content metadata, cords, etc.) associated with the specified entity model. It processes the provided data and updates the corresponding entities in the system.

      Example endpoint: http://server/EntityDataService/entitymanager/{entityModelIdentifier}/Data

      Parameters:
      entityModelIdentifier - The identifier of the entity model to which the data belongs.
      data - The Data object containing the various types of entity data to be set or updated.
      Returns:
      The Data object after processing, containing the updated entity data.
      Throws:
      com.priint.pubserver.exception.PubServerException - If an error occurs during the operation.
    • commit

      @POST @Path("/{entityModelIdentifier}/commit") public com.priint.pubserver.plugin.interfaces.ConnectorPersistRemote.PushData commit(@PathParam("entityModelIdentifier") String entityModelIdentifier, com.priint.pubserver.plugin.interfaces.ConnectorPersistRemote.PushData push) throws com.priint.pubserver.exception.PubServerException
      Commits a dataset of entity items from a push object.

      This method handles a POST request to commit entity items associated with the specified entity model. It processes the provided push data and commits the entity items in the system.

      Example endpoint: http://server/EntityDataService/entitymanager/{entityModelIdentifier}/commit

      Parameters:
      entityModelIdentifier - The identifier of the entity model to which the entity items belong.
      push - The ConnectorPersistRemote.PushData object containing the entity items to be committed.
      Returns:
      The ConnectorPersistRemote.PushData object after processing, containing the committed entity items.
      Throws:
      com.priint.pubserver.exception.PubServerException - If an error occurs during the commit operation.
    • bulkInsert

      @POST @Path("/{entityModelIdentifier}/bulk-insert") public com.priint.pubserver.plugin.interfaces.ConnectorPersistRemote.PushData bulkInsert(@PathParam("entityModelIdentifier") String entityModelIdentifier, com.priint.pubserver.plugin.interfaces.ConnectorPersistRemote.PushData push) throws com.priint.pubserver.exception.PubServerException
      Bulk inserts a dataset of entity items from a push object.

      This method handles a POST request to perform a bulk insert operation on entity items associated with the specified entity model. It processes the provided push data and inserts the entity items into the system.

      Example endpoint: http://server/EntityDataService/entitymanager/{entityModelIdentifier}/bulk-insert

      Parameters:
      entityModelIdentifier - The identifier of the entity model to which the entity items belong.
      push - The ConnectorPersistRemote.PushData object containing the entity items to be inserted.
      Returns:
      The ConnectorPersistRemote.PushData object after processing, containing the inserted entity items.
      Throws:
      com.priint.pubserver.exception.PubServerException - If an error occurs during the bulk insert operation.
    • bulkUpsert

      @POST @Path("/{entityModelIdentifier}/bulk-upsert") public com.priint.pubserver.plugin.interfaces.ConnectorPersistRemote.PushData bulkUpsert(@PathParam("entityModelIdentifier") String entityModelIdentifier, com.priint.pubserver.plugin.interfaces.ConnectorPersistRemote.PushData push) throws com.priint.pubserver.exception.PubServerException
      Bulk upserts a dataset of entity items from a push object.

      This method handles a POST request to perform a bulk upsert operation on entity items associated with the specified entity model. It processes the provided push data and updates or inserts the entity items in the system.

      Example endpoint: http://server/EntityDataService/entitymanager/{entityModelIdentifier}/bulk-upsert

      Parameters:
      entityModelIdentifier - The identifier of the entity model to which the entity items belong.
      push - The ConnectorPersistRemote.PushData object containing the entity items to be upserted.
      Returns:
      The ConnectorPersistRemote.PushData object after processing, containing the updated or inserted entity items.
      Throws:
      com.priint.pubserver.exception.PubServerException - If an error occurs during the bulk upsert operation.
    • setBuckets

      @POST @Path("/{entityModelIdentifier}/Bucket") public com.priint.pubserver.plugin.entitydata.Data setBuckets(@PathParam("entityModelIdentifier") String entityModelIdentifier, @PathParam("resultType") String resultType, @QueryParam("search") String searchStr, com.priint.pubserver.plugin.entitydata.Data data) throws com.priint.pubserver.exception.PubServerException
      Sets or updates bucket entities for a specific entity model.

      This method handles a POST request to add or update bucket entities associated with the specified entity model. It processes the provided data and updates the bucket entities in the system.

      Example endpoint: http://server/EntityDataService/entitymanager/{entityModelIdentifier}/Bucket?search={searchStr}

      Parameters:
      entityModelIdentifier - The identifier of the entity model to which the bucket entities belong.
      resultType - The type of the result entities to be updated (not used in this implementation).
      searchStr - An optional search string for filtering or additional processing.
      data - The Data object containing the bucket entities to be set or updated.
      Returns:
      The Data object after processing, containing the updated bucket entities.
      Throws:
      com.priint.pubserver.exception.PubServerException - If an error occurs during the operation.
    • setContentMetaData

      @POST @Path("/{entityModelIdentifier}/ContentMetaData") public com.priint.pubserver.plugin.entitydata.Data setContentMetaData(@PathParam("entityModelIdentifier") String entityModelIdentifier, @QueryParam("search") String searchStr, com.priint.pubserver.plugin.entitydata.Data data) throws com.priint.pubserver.exception.PubServerException
      Sets or updates content metadata entities for a specific entity model.

      This method handles a POST request to add or update content metadata entities associated with the specified entity model. It processes the provided data and updates the content metadata entities in the system.

      Parameters:
      entityModelIdentifier - The identifier of the entity model to which the content metadata entities belong.
      searchStr - An optional search string for filtering or additional processing.
      data - The Data object containing the content metadata entities to be set or updated.
      Returns:
      The Data object after processing, containing the updated content metadata entities.
      Throws:
      com.priint.pubserver.exception.PubServerException - If an error occurs during the operation.
    • setCords

      @POST @Path("/{entityModelIdentifier}/Cord") public com.priint.pubserver.plugin.entitydata.Data setCords(@PathParam("entityModelIdentifier") String entityModelIdentifier, @QueryParam("search") String searchStr, com.priint.pubserver.plugin.entitydata.Data data) throws com.priint.pubserver.exception.PubServerException
      Sets or updates cord entities for a specific entity model.

      This method handles a POST request to add or update cord entities associated with the specified entity model. It processes the provided data and updates the cord entities in the system.

      Parameters:
      entityModelIdentifier - The identifier of the entity model to which the cord entities belong.
      searchStr - An optional search string for filtering or additional processing.
      data - The Data object containing the cord entities to be set or updated.
      Returns:
      The Data object after processing, containing the updated cord entities.
      Throws:
      com.priint.pubserver.exception.PubServerException - If an error occurs during the operation.
    • setKeyValues

      @POST @Path("/{entityModelIdentifier}/KeyValue") public com.priint.pubserver.plugin.entitydata.Data setKeyValues(@PathParam("entityModelIdentifier") String entityModelIdentifier, @QueryParam("search") String searchStr, com.priint.pubserver.plugin.entitydata.Data data) throws com.priint.pubserver.exception.PubServerException
      Sets or updates key-value entities for a specific entity model.

      This method handles a POST request to add or update key-value entities associated with the specified entity model. It processes the provided data and updates the key-value entities in the system.

      Parameters:
      entityModelIdentifier - The identifier of the entity model to which the key-value entities belong.
      searchStr - An optional search string for filtering or additional processing.
      data - The Data object containing the key-value entities to be set or updated.
      Returns:
      The Data object after processing, containing the updated key-value entities.
      Throws:
      com.priint.pubserver.exception.PubServerException - If an error occurs during the operation.
    • setMediaAssets

      @POST @Path("/{entityModelIdentifier}/MediaAsset") public com.priint.pubserver.plugin.entitydata.Data setMediaAssets(@PathParam("entityModelIdentifier") String entityModelIdentifier, @QueryParam("search") String searchStr, com.priint.pubserver.plugin.entitydata.Data data) throws com.priint.pubserver.exception.PubServerException
      Sets or updates media asset entities for a specific entity model.

      This method handles a POST request to add or update media asset entities associated with the specified entity model. It processes the provided data and updates the media asset entities in the system.

      Parameters:
      entityModelIdentifier - The identifier of the entity model to which the media asset entities belong.
      searchStr - An optional search string for filtering or additional processing.
      data - The Data object containing the media asset entities to be set or updated.
      Returns:
      The Data object after processing, containing the updated media asset entities.
      Throws:
      com.priint.pubserver.exception.PubServerException - If an error occurs during the operation.
    • setPrices

      @POST @Path("/{entityModelIdentifier}/Price") public com.priint.pubserver.plugin.entitydata.Data setPrices(@PathParam("entityModelIdentifier") String entityModelIdentifier, @QueryParam("search") String searchStr, com.priint.pubserver.plugin.entitydata.Data data) throws com.priint.pubserver.exception.PubServerException
      Sets or updates price entities for a specific entity model.

      This method handles a POST request to add or update price entities associated with the specified entity model. It processes the provided data and updates the price entities in the system.

      Parameters:
      entityModelIdentifier - The identifier of the entity model to which the price entities belong.
      searchStr - An optional search string for filtering or additional processing.
      data - The Data object containing the price entities to be set or updated.
      Returns:
      The Data object after processing, containing the updated price entities.
      Throws:
      com.priint.pubserver.exception.PubServerException - If an error occurs during the operation.
    • setTableData

      @POST @Path("/{entityModelIdentifier}/TableData}") public com.priint.pubserver.plugin.entitydata.Data setTableData(@PathParam("entityModelIdentifier") String entityModelIdentifier, @QueryParam("search") String searchStr, com.priint.pubserver.plugin.entitydata.Data data) throws com.priint.pubserver.exception.PubServerException
      Sets or updates table data entities for a specific entity model.

      This method handles a POST request to add or update table data entities associated with the specified entity model. It processes the provided data and updates the table data entities in the system.

      Parameters:
      entityModelIdentifier - The identifier of the entity model to which the table data entities belong.
      searchStr - An optional search string for filtering or additional processing.
      data - The Data object containing the table data entities to be set or updated.
      Returns:
      The Data object after processing, containing the updated table data entities.
      Throws:
      com.priint.pubserver.exception.PubServerException - If an error occurs during the operation.
    • setTexts

      @POST @Path("/{entityModelIdentifier}/Text") public com.priint.pubserver.plugin.entitydata.Data setTexts(@PathParam("entityModelIdentifier") String entityModelIdentifier, @QueryParam("search") String searchStr, com.priint.pubserver.plugin.entitydata.Data data) throws com.priint.pubserver.exception.PubServerException
      Sets or updates text entities for a specific entity model.

      This method handles a POST request to add or update text entities associated with the specified entity model. It processes the provided data and updates the text entities in the system.

      Parameters:
      entityModelIdentifier - The identifier of the entity model to which the text entities belong.
      searchStr - An optional search string for filtering or additional processing.
      data - The Data object containing the text entities to be set or updated.
      Returns:
      The Data object after processing, containing the updated text entities.
      Throws:
      com.priint.pubserver.exception.PubServerException - If an error occurs during the operation.
    • deleteBucket

      @DELETE @Path("/{entityModelIdentifier}/Bucket/{entityId}/{recordId}") public jakarta.ws.rs.core.Response deleteBucket(@PathParam("entityModelIdentifier") String entityModelIdentifier, @PathParam("entityId") String entityId, @PathParam("recordId") String recordId) throws com.priint.pubserver.exception.PubServerException
      Deletes a specific bucket entity identified by the given parameters.

      This method handles a DELETE request to remove a bucket entity from the system. It retrieves the entity model, converts the entity data, and performs the deletion. The response indicates the success or failure of the operation.

      Parameters:
      entityModelIdentifier - The identifier of the entity model.
      entityId - The identifier of the entity to be deleted.
      recordId - The identifier of the record to be deleted.
      Returns:
      A Response indicating the result of the deletion operation. If successful, the response contains a status of 200 (OK). If an error occurs, the response contains the appropriate HTTP status code and error details.
      Throws:
      com.priint.pubserver.exception.PubServerException - If an error occurs during the deletion process.
    • deleteContentMetaData

      @DELETE @Path("/{entityModelIdentifier}/ContentMetaData/{entityId}/{recordId}") public jakarta.ws.rs.core.Response deleteContentMetaData(@PathParam("entityModelIdentifier") String entityModelIdentifier, @PathParam("entityId") String entityId, @PathParam("recordId") String recordId) throws com.priint.pubserver.exception.PubServerException
      Deletes a specific content metadata entity identified by the given parameters.

      This method handles a DELETE request to remove a content metadata entity from the system. It retrieves the entity model, converts the entity data, and performs the deletion. The response indicates the success or failure of the operation.

      Parameters:
      entityModelIdentifier - The identifier of the entity model.
      entityId - The identifier of the entity to be deleted.
      recordId - The identifier of the record to be deleted.
      Returns:
      A Response indicating the result of the deletion operation. If successful, the response contains a status of 200 (OK). If an error occurs, the response contains the appropriate HTTP status code and error details.
      Throws:
      com.priint.pubserver.exception.PubServerException - If an error occurs during the deletion process.
    • deleteCord

      @DELETE @Path("/{entityModelIdentifier}/Cord/{entityId}/{recordId}") public jakarta.ws.rs.core.Response deleteCord(@PathParam("entityModelIdentifier") String entityModelIdentifier, @PathParam("entityId") String entityId, @PathParam("recordId") String recordId) throws com.priint.pubserver.exception.PubServerException
      Deletes a specific cord entity identified by the given parameters.

      This method handles a DELETE request to remove a cord entity from the system. It retrieves the entity model, converts the entity data, and performs the deletion. The response indicates the success or failure of the operation.

      Parameters:
      entityModelIdentifier - The identifier of the entity model.
      entityId - The identifier of the entity to be deleted.
      recordId - The identifier of the record to be deleted.
      Returns:
      A Response indicating the result of the deletion operation. If successful, the response contains a status of 200 (OK). If an error occurs, the response contains the appropriate HTTP status code and error details.
      Throws:
      com.priint.pubserver.exception.PubServerException - If an error occurs during the deletion process.
    • deleteKeyValue

      @DELETE @Path("/{entityModelIdentifier}/KeyValue/{entityId}/{recordId}") public jakarta.ws.rs.core.Response deleteKeyValue(@PathParam("entityModelIdentifier") String entityModelIdentifier, @PathParam("entityId") String entityId, @PathParam("recordId") String recordId) throws com.priint.pubserver.exception.PubServerException
      Deletes a specific key-value entity identified by the given parameters.

      This method handles a DELETE request to remove a key-value entity from the system. It retrieves the entity model, converts the entity data, and performs the deletion. The response indicates the success or failure of the operation.

      Parameters:
      entityModelIdentifier - The identifier of the entity model.
      entityId - The identifier of the entity to be deleted.
      recordId - The identifier of the record to be deleted.
      Returns:
      A Response indicating the result of the deletion operation. If successful, the response contains a status of 200 (OK). If an error occurs, the response contains the appropriate HTTP status code and error details.
      Throws:
      com.priint.pubserver.exception.PubServerException - If an error occurs during the deletion process.
    • deleteMediaAsset

      @DELETE @Path("/{entityModelIdentifier}/MediaAsset/{entityId}/{recordId}") public jakarta.ws.rs.core.Response deleteMediaAsset(@PathParam("entityModelIdentifier") String entityModelIdentifier, @PathParam("entityId") String entityId, @PathParam("recordId") String recordId) throws com.priint.pubserver.exception.PubServerException
      Deletes a specific media asset entity identified by the given parameters.

      This method handles a DELETE request to remove a media asset entity from the system. It retrieves the entity model, converts the entity data, and performs the deletion. The response indicates the success or failure of the operation.

      Parameters:
      entityModelIdentifier - The identifier of the entity model.
      entityId - The identifier of the entity to be deleted.
      recordId - The identifier of the record to be deleted.
      Returns:
      A Response indicating the result of the deletion operation. If successful, the response contains a status of 200 (OK). If an error occurs, the response contains the appropriate HTTP status code and error details.
      Throws:
      com.priint.pubserver.exception.PubServerException - If an error occurs during the deletion process.
    • deletePrice

      @DELETE @Path("/{entityModelIdentifier}/Price/{entityId}/{recordId}") public jakarta.ws.rs.core.Response deletePrice(@PathParam("entityModelIdentifier") String entityModelIdentifier, @PathParam("entityId") String entityId, @PathParam("recordId") String recordId) throws com.priint.pubserver.exception.PubServerException
      Deletes a specific price entity identified by the given parameters.

      This method handles a DELETE request to remove a price entity from the system. It retrieves the entity model, converts the entity data, and performs the deletion. The response indicates the success or failure of the operation.

      Parameters:
      entityModelIdentifier - The identifier of the entity model.
      entityId - The identifier of the entity to be deleted.
      recordId - The identifier of the record to be deleted.
      Returns:
      A Response indicating the result of the deletion operation. If successful, the response contains a status of 200 (OK). If an error occurs, the response contains the appropriate HTTP status code and error details.
      Throws:
      com.priint.pubserver.exception.PubServerException - If an error occurs during the deletion process.
    • deleteTableData

      @DELETE @Path("/{entityModelIdentifier}/TableData/{entityId}/{recordId}") public jakarta.ws.rs.core.Response deleteTableData(@PathParam("entityModelIdentifier") String entityModelIdentifier, @PathParam("entityId") String entityId, @PathParam("recordId") String recordId) throws com.priint.pubserver.exception.PubServerException
      Deletes a specific table data entity identified by the given parameters.

      This method handles a DELETE request to remove a table data entity from the system. It retrieves the entity model, converts the entity data, and performs the deletion. The response indicates the success or failure of the operation.

      Parameters:
      entityModelIdentifier - The identifier of the entity model.
      entityId - The identifier of the entity to be deleted.
      recordId - The identifier of the record to be deleted.
      Returns:
      A Response indicating the result of the deletion operation. If successful, the response contains a status of 200 (OK). If an error occurs, the response contains the appropriate HTTP status code and error details.
      Throws:
      com.priint.pubserver.exception.PubServerException - If an error occurs during the deletion process.
    • deleteText

      @DELETE @Path("/{entityModelIdentifier}/Text/{entityId}/{recordId}") public jakarta.ws.rs.core.Response deleteText(@PathParam("entityModelIdentifier") String entityModelIdentifier, @PathParam("entityId") String entityId, @PathParam("recordId") String recordId) throws com.priint.pubserver.exception.PubServerException
      Deletes a specific text entity identified by the given parameters.

      This method handles a DELETE request to remove a text entity from the system. It retrieves the entity model, converts the entity data, and performs the deletion. The response indicates the success or failure of the operation.

      Parameters:
      entityModelIdentifier - The identifier of the entity model.
      entityId - The identifier of the entity to be deleted.
      recordId - The identifier of the record to be deleted.
      Returns:
      A Response indicating the result of the deletion operation. If successful, the response contains a status of 200 (OK). If an error occurs, the response contains the appropriate HTTP status code and error details.
      Throws:
      com.priint.pubserver.exception.PubServerException - If an error occurs during the deletion process.
    • setEntityData

      @PUT @Path("/{entityModelIdentifier}/Bucket/{entityId}/{recordId}") public com.priint.pubserver.plugin.entitydata.Bucket setEntityData(@PathParam("entityModelIdentifier") String entityModelIdentifier, @PathParam("entityId") String entityId, @PathParam("recordId") String recordId, @QueryParam("search") String searchStr, com.priint.pubserver.plugin.entitydata.Bucket entityData) throws com.priint.pubserver.exception.PubServerException
      Updates or sets the entity data for a specific bucket.
      Parameters:
      entityModelIdentifier - The identifier of the entity model.
      entityId - The identifier of the entity.
      recordId - The identifier of the record.
      searchStr - The search string for filtering.
      entityData - The bucket entity data to be set.
      Returns:
      The updated or newly set bucket entity data.
      Throws:
      com.priint.pubserver.exception.PubServerException - If an error occurs during the operation.
    • setEntityData

      @PUT @Path("/{entityModelIdentifier}/ContentMetaData/{entityId}/{recordId}") public com.priint.pubserver.plugin.entitydata.ContentMetaData setEntityData(@PathParam("entityModelIdentifier") String entityModelIdentifier, @PathParam("entityId") String entityId, @PathParam("recordId") String recordId, @QueryParam("search") String searchStr, com.priint.pubserver.plugin.entitydata.ContentMetaData entityData) throws com.priint.pubserver.exception.PubServerException
      Updates or sets the content metadata entity data for a specific entity model.

      This method handles a PUT request to update or set content metadata entities associated with the specified entity model, entity ID, and record ID. It processes the provided content metadata entity data and updates the corresponding entities in the system.

      Example endpoint: http://server/EntityDataService/entitymanager/{entityModelIdentifier}/ContentMetaData/{entityId}/{recordId}?search={searchStr}

      Parameters:
      entityModelIdentifier - The identifier of the entity model to which the content metadata entities belong.
      entityId - The identifier of the specific entity to update or set content metadata entities for.
      recordId - The identifier of the specific record to update or set content metadata entities for.
      searchStr - An optional search string for filtering or additional processing.
      entityData - The ContentMetaData object containing the content metadata entity data to be updated or set.
      Returns:
      The updated or newly set ContentMetaData entity data.
      Throws:
      com.priint.pubserver.exception.PubServerException - If an error occurs during the operation.
    • setEntityData

      @PUT @Path("/{entityModelIdentifier}/Cord/{entityId}/{recordId}") public com.priint.pubserver.plugin.entitydata.Cord setEntityData(@PathParam("entityModelIdentifier") String entityModelIdentifier, @PathParam("entityId") String entityId, @PathParam("recordId") String recordId, @QueryParam("search") String searchStr, com.priint.pubserver.plugin.entitydata.Cord entityData) throws com.priint.pubserver.exception.PubServerException
      Updates or sets the cord entity data for a specific entity model.

      This method handles a PUT request to update or set cord entities associated with the specified entity model, entity ID, and record ID. It processes the provided cord entity data and updates the corresponding entities in the system.

      Example endpoint: http://server/EntityDataService/entitymanager/{entityModelIdentifier}/Cord/{entityId}/{recordId}?search={searchStr}

      Parameters:
      entityModelIdentifier - The identifier of the entity model to which the cord entities belong.
      entityId - The identifier of the specific entity to update or set cord entities for.
      recordId - The identifier of the specific record to update or set cord entities for.
      searchStr - An optional search string for filtering or additional processing.
      entityData - The Cord object containing the cord entity data to be updated or set.
      Returns:
      The updated or newly set Cord entity data.
      Throws:
      com.priint.pubserver.exception.PubServerException - If an error occurs during the operation.
    • setEntityData

      @PUT @Path("/{entityModelIdentifier}/KeyValue/{entityId}/{recordId}") public com.priint.pubserver.plugin.entitydata.KeyValue setEntityData(@PathParam("entityModelIdentifier") String entityModelIdentifier, @PathParam("entityId") String entityId, @PathParam("recordId") String recordId, @QueryParam("search") String searchStr, com.priint.pubserver.plugin.entitydata.KeyValue entityData) throws com.priint.pubserver.exception.PubServerException
      Updates or sets the key-value entity data for a specific entity model.

      This method handles a PUT request to update or set key-value entities associated with the specified entity model, entity ID, and record ID. It processes the provided key-value entity data and updates the corresponding entities in the system.

      Example endpoint: http://server/EntityDataService/entitymanager/{entityModelIdentifier}/KeyValue/{entityId}/{recordId}?search={searchStr}

      Parameters:
      entityModelIdentifier - The identifier of the entity model to which the key-value entities belong.
      entityId - The identifier of the specific entity to update or set key-value entities for.
      recordId - The identifier of the specific record to update or set key-value entities for.
      searchStr - An optional search string for filtering or additional processing.
      entityData - The KeyValue object containing the key-value entity data to be updated or set.
      Returns:
      The updated or newly set KeyValue entity data.
      Throws:
      com.priint.pubserver.exception.PubServerException - If an error occurs during the operation.
    • setEntityData

      @PUT @Path("/{entityModelIdentifier}/MediaAsset/{entityId}/{recordId}") public com.priint.pubserver.plugin.entitydata.MediaAsset setEntityData(@PathParam("entityModelIdentifier") String entityModelIdentifier, @PathParam("entityId") String entityId, @PathParam("recordId") String recordId, @QueryParam("search") String searchStr, com.priint.pubserver.plugin.entitydata.MediaAsset entityData) throws com.priint.pubserver.exception.PubServerException
      Updates or sets the media asset entity data for a specific entity model.

      This method handles a PUT request to update or set media asset entities associated with the specified entity model, entity ID, and record ID. It processes the provided media asset entity data and updates the corresponding entities in the system.

      Example endpoint: http://server/EntityDataService/entitymanager/{entityModelIdentifier}/MediaAsset/{entityId}/{recordId}?search={searchStr}

      Parameters:
      entityModelIdentifier - The identifier of the entity model to which the media asset entities belong.
      entityId - The identifier of the specific entity to update or set media asset entities for.
      recordId - The identifier of the specific record to update or set media asset entities for.
      searchStr - An optional search string for filtering or additional processing.
      entityData - The MediaAsset object containing the media asset entity data to be updated or set.
      Returns:
      The updated or newly set MediaAsset entity data.
      Throws:
      com.priint.pubserver.exception.PubServerException - If an error occurs during the operation.
    • setEntityData

      @PUT @Path("/{entityModelIdentifier}/Price/{entityId}/{recordId}") public com.priint.pubserver.plugin.entitydata.Price setEntityData(@PathParam("entityModelIdentifier") String entityModelIdentifier, @PathParam("entityId") String entityId, @PathParam("recordId") String recordId, @QueryParam("search") String searchStr, com.priint.pubserver.plugin.entitydata.Price entityData) throws com.priint.pubserver.exception.PubServerException
      Updates or sets the price entity data for a specific entity model.

      This method handles a PUT request to update or set price entities associated with the specified entity model, entity ID, and record ID. It processes the provided price entity data and updates the corresponding entities in the system.

      Example endpoint: http://server/EntityDataService/entitymanager/{entityModelIdentifier}/Price/{entityId}/{recordId}?search={searchStr}

      Parameters:
      entityModelIdentifier - The identifier of the entity model to which the price entities belong.
      entityId - The identifier of the specific entity to update or set price entities for.
      recordId - The identifier of the specific record to update or set price entities for.
      searchStr - An optional search string for filtering or additional processing.
      entityData - The Price object containing the price entity data to be updated or set.
      Returns:
      The updated or newly set Price entity data.
      Throws:
      com.priint.pubserver.exception.PubServerException - If an error occurs during the operation.
    • setEntityData

      @PUT @Path("/{entityModelIdentifier}/TableData/{entityId}/{recordId}") public com.priint.pubserver.plugin.entitydata.TableData setEntityData(@PathParam("entityModelIdentifier") String entityModelIdentifier, @PathParam("entityId") String entityId, @PathParam("recordId") String recordId, @QueryParam("search") String searchStr, com.priint.pubserver.plugin.entitydata.TableData entityData) throws com.priint.pubserver.exception.PubServerException
      Updates or sets the table data for a specific entity model.

      This method handles a PUT request to update or set table data associated with the specified entity model, entity ID, and record ID. It processes the provided table data and updates the corresponding entities in the system.

      Example endpoint: http://server/EntityDataService/entitymanager/{entityModelIdentifier}/TableData/{entityId}/{recordId}?search={searchStr}

      Parameters:
      entityModelIdentifier - The identifier of the entity model to which the table data belongs.
      entityId - The identifier of the specific entity to update or set table data for.
      recordId - The identifier of the specific record to update or set table data for.
      searchStr - An optional search string for filtering or additional processing.
      entityData - The TableData object containing the table data to be updated or set.
      Returns:
      The updated or newly set TableData entity data.
      Throws:
      com.priint.pubserver.exception.PubServerException - If an error occurs during the operation.
    • setEntityData

      @PUT @Path("/{entityModelIdentifier}/Text/{entityId}/{recordId}") public com.priint.pubserver.plugin.entitydata.Text setEntityData(@PathParam("entityModelIdentifier") String entityModelIdentifier, @PathParam("entityId") String entityId, @PathParam("recordId") String recordId, @QueryParam("search") String searchStr, com.priint.pubserver.plugin.entitydata.Text entityData) throws com.priint.pubserver.exception.PubServerException
      Updates or sets the text entity data for a specific entity model.

      This method handles a PUT request to update or set text entities associated with the specified entity model, entity ID, and record ID. It processes the provided text entity data and updates the corresponding entities in the system.

      Example endpoint: http://server/EntityDataService/entitymanager/{entityModelIdentifier}/Text/{entityId}/{recordId}?search={searchStr}

      Parameters:
      entityModelIdentifier - The identifier of the entity model to which the text entities belong.
      entityId - The identifier of the specific entity to update or set text entities for.
      recordId - The identifier of the specific record to update or set text entities for.
      searchStr - An optional search string for filtering or additional processing.
      entityData - The Text object containing the text entity data to be updated or set.
      Returns:
      The updated or newly set Text entity data.
      Throws:
      com.priint.pubserver.exception.PubServerException - If an error occurs during the operation.
    • deleteEntityData

      @DELETE @Path("/{entityModelIdentifier}/{resultType}") public com.priint.pubserver.plugin.entitydata.Data deleteEntityData(@PathParam("entityModelIdentifier") String entityModelIdentifier, @PathParam("resultType") String resultType, com.priint.pubserver.plugin.entitydata.Data data) throws com.priint.pubserver.exception.PubServerException
      Deletes entity data for a specific entity model and result type.

      This method handles a DELETE request to remove entity data associated with the specified entity model and result type. It processes the provided data and deletes the corresponding entity data in the system.

      Parameters:
      entityModelIdentifier - The identifier of the entity model to which the entity data belongs.
      resultType - The type of result to be deleted (e.g., Bucket, ContentMetaData, etc.).
      data - The Data object containing the entity data to be deleted.
      Returns:
      The Data object after processing, containing the deleted entity data.
      Throws:
      com.priint.pubserver.exception.PubServerException - If an error occurs during the operation.