Package com.priint.pubserver.comet4utils
Class PublicationUtils
java.lang.Object
com.priint.pubserver.plugin.PluginControlDefault
com.priint.pubserver.comet4utils.PublicationUtils
- All Implemented Interfaces:
PluginControl
Utilities for Publication
It is recommended to use PlannerRESTService for similar functionality. PlannerRESTService can be called via RESTful interface but also locally using pubserver ParameterInterpreter.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetActiveDocumentsForPublication(String publicationId, boolean withSubPublications) Deprecated.It is recommended to use DocumentsService EJB and PublicationsService EJB (within PlannerRESTService) for similar functionality.getDocumentParameters(String documentId) Deprecated.It is recommended to use ParametersService EJB (within PlannerRESTService) for similar functionality.getDocumentsForPublication(String publicationId, boolean withSubPublications) Deprecated.It is recommended to use DocumentsService EJB and PublicationsService EJB (within PlannerRESTService) for similar functionality.getPublicationParameters(String publicationId) Deprecated.It is recommended to use ParametersService EJB (within PlannerRESTService) for similar functionality.static StringgetRootPublication(String documentId) Deprecated.It is recommended to use DocumentsService EJB and PublicationsService EJB (within PlannerRESTService) for similar functionality.static StringgetRootPublication(String documentId, String publicationType) Deprecated.It is recommended to use DocumentsService EJB and PublicationsService EJB (within PlannerRESTService) for similar functionality.getSelectedProductsForDocument(String documentId) Get the selected products for a document from publication:plannerstatic voidupdateSelectedProductStringId(String productSelectionId, String recordStringId) Update the record string ID of a product selection.Methods 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
-
Constructor Details
-
PublicationUtils
public PublicationUtils()
-
-
Method Details
-
getPublicationParameters
Deprecated.It is recommended to use ParametersService EJB (within PlannerRESTService) for similar functionality.Get the parameters of a publication from publication:planner- Parameters:
publicationId- id of the publication- Returns:
- Parameters as a list of KeyValues
-
getDocumentParameters
Deprecated.It is recommended to use ParametersService EJB (within PlannerRESTService) for similar functionality.Get the parameters of a document from publication:planner- Parameters:
documentId- id of document- Returns:
- Parameters as a list of KeyValues
-
getSelectedProductsForDocument
Get the selected products for a document from publication:planner- Parameters:
documentId- id of document- Returns:
- Map of selections. Entry key is ProductSelectionId, entry value is RecordStringId.
-
getRootPublication
Deprecated.It is recommended to use DocumentsService EJB and PublicationsService EJB (within PlannerRESTService) for similar functionality.Get the ID of the root publication for a document from publication:planner.- Parameters:
documentId- id of document- Returns:
- ID of the root publication
-
getRootPublication
Deprecated.It is recommended to use DocumentsService EJB and PublicationsService EJB (within PlannerRESTService) for similar functionality.Get the ID of the root publication for a document from publication:planner.- Parameters:
documentId- id of documentpublicationType-- Returns:
- ID of the root publication
-
getDocumentsForPublication
public static List<String> getDocumentsForPublication(String publicationId, boolean withSubPublications) Deprecated.It is recommended to use DocumentsService EJB and PublicationsService EJB (within PlannerRESTService) for similar functionality.Retrieves IDs for all documents of a publication. This will also return inactive or deleted documents.Important Note:
This function does not support pubserver installation with more than one comet_data database, i.e. the function only supports "resource1".- Parameters:
publicationId-withSubPublications- Scan all sub-publications recursively.- Returns:
-
getActiveDocumentsForPublication
public static List<String> getActiveDocumentsForPublication(String publicationId, boolean withSubPublications) Deprecated.It is recommended to use DocumentsService EJB and PublicationsService EJB (within PlannerRESTService) for similar functionality.Retrieves IDs for all active (and not deleted) documents of a publication.Important Note:
This function does not support pubserver installation with more than one comet_data database, i.e. the function only supports "resource1".- Parameters:
publicationId-withSubPublications- Scan all active and not deleted sub-publications recursively.- Returns:
-
updateSelectedProductStringId
Update the record string ID of a product selection.Important Note:
This function does not support pubserver installation with more than one comet_data database, i.e. the function only supports "resource1".- Parameters:
productSelectionId-recordStringId-
-