Interface PublicationsServiceLocal
-
Method Summary
Modifier and TypeMethodDescriptionaddPublications(List<Publication> publications) Creates new publicationsDeletes publication at the specified IDgetPublication(String id) Returns the publication at the specified IDgetPublications(PublicationsFilter searchParameters) Returns the list of publications fulfilling the search criteria passed as parametergetPublicationsByMasterDocument(String masterDocumentID, PublicationsFilter searchParameters) Returns the list of publications for specified master document and the search criteriagetPublicationsByPageTemplate(String pageTemplateID, PublicationsFilter searchParameters) Returns the list of publications for specified page template and the search criteriagetPublicationsByStausID(String statusID, PublicationsFilter searchParameters) Returns the list of publications for specified status ID and the search criteriagetPublicationsByTemplate(String templateID, PublicationsFilter searchParameters) Returns the list of publications for specified template and the search criteriagetPublicationsByTodoID(String todoID, PublicationsFilter searchParameters) Returns the list of publications for specified todo and the search criteriagetPublicationsByWorkflowID(String workflowID, PublicationsFilter searchParameters) Returns the list of publications for specified workflow and the search criteriagetPublicationsForPublication(String publicationIDPath, PublicationsFilter searchParameters) Returns the list of sub publications for the specified publication and fullfilling the search criteriasetPublication(Publication publication) Modifies existing publication based on passed parametersetPublications(List<Publication> publications) Modifies existing publicationssetPublicationsXPageTemplate(String pageTemplateID, List<Publication> publicationsList) Sets specific page template for publications.setPublicationsXTemplate(String templateID, List<Publication> publicationsList) Sets specific template for publications.
-
Method Details
-
getPublication
Returns the publication at the specified ID- Parameters:
id- publication id- Returns:
- the publication
- Throws:
ServiceExceptionResourceNotFoundException- See Also:
-
getPublications
Returns the list of publications fulfilling the search criteria passed as parameter- Parameters:
searchParameters- search criteria in PublicationsFilter object- Returns:
- the list of publications
- Throws:
ServiceException- See Also:
-
setPublication
Modifies existing publication based on passed parameterPublication ID from passed parameter is used to find existing publication.
If field 'deleted' is changed from false to true it will be applied for publication and all sub publications and documents.- Parameters:
publication- the publication object- Returns:
- publication ID
- Throws:
ServiceExceptionResourceNotFoundException- See Also:
-
setPublications
List<Publication> setPublications(List<Publication> publications) throws ServiceException, ResourceNotFoundException Modifies existing publicationsFor each publication object from the list the existing publication found by publication ID is updated.
If field 'deleted' is changed from false to true it will be applied for the publication and all sub publications and documents.- Parameters:
publications- the list of publications to update- Returns:
- List of processed publications. Each Publication object from the list contains status code of the operation
- Throws:
ServiceExceptionResourceNotFoundException- See Also:
-
addPublications
Creates new publicationsFor each publication object from the list the new publication is created.
Parameters are created by PublicationType (Parameters are assigned to publication types).
If it is not a root publication it inherits Master Documents, Templates, PageTemplates, SearchNReplace and ImpProfileCB from parent publication. Publication rights are set for user who creates publications.- Parameters:
publications- the list of publications to create- Returns:
- the list of processed publications. Each Publication object from the list contains status code of the operation and new publication ID
- Throws:
ServiceException- See Also:
-
deletePublication
Deletes publication at the specified IDDeletes publication and all sub publications of it and all documents from them.
- Parameters:
id- publication id- Returns:
- id of deleted publication
- Throws:
ServiceException
-
getPublicationsByMasterDocument
List<Publication> getPublicationsByMasterDocument(String masterDocumentID, PublicationsFilter searchParameters) throws ServiceException Returns the list of publications for specified master document and the search criteria- Parameters:
masterDocumentID- master document IDsearchParameters- search criteria in the PublicationsFilter object- Returns:
- the list of publications
- Throws:
ServiceException- See Also:
-
getPublicationsByTemplate
List<Publication> getPublicationsByTemplate(String templateID, PublicationsFilter searchParameters) throws ServiceException Returns the list of publications for specified template and the search criteria- Parameters:
templateID- template IDsearchParameters- search criteria in the PublicationsFilter object- Returns:
- the list of publications
- Throws:
ServiceException- See Also:
-
setPublicationsXTemplate
List<Publication> setPublicationsXTemplate(String templateID, List<Publication> publicationsList) throws ServiceException Sets specific template for publications.For each publication object from the list the template of given ID is set.
- Parameters:
templateID- template IDpublicationsList- the list of publication- Returns:
- the list of processed publications. Each Publication object from the list contains status code of the operation
- Throws:
ServiceException- See Also:
-
getPublicationsByTodoID
List<Publication> getPublicationsByTodoID(String todoID, PublicationsFilter searchParameters) throws ServiceException Returns the list of publications for specified todo and the search criteria- Parameters:
todoID- todo IDsearchParameters- search criteria in the PublicationsFilter object- Returns:
- the list of publications
- Throws:
ServiceException- See Also:
-
getPublicationsByWorkflowID
List<Publication> getPublicationsByWorkflowID(String workflowID, PublicationsFilter searchParameters) throws ServiceException Returns the list of publications for specified workflow and the search criteria- Parameters:
workflowID- workflow IDsearchParameters- search criteria in the PublicationsFilter object- Returns:
- the list of publications
- Throws:
ServiceException- See Also:
-
getPublicationsByStausID
List<Publication> getPublicationsByStausID(String statusID, PublicationsFilter searchParameters) throws ServiceException Returns the list of publications for specified status ID and the search criteria- Parameters:
searchParameters- publicationsFilter object- Returns:
- the list of publications
- Throws:
ServiceException- See Also:
-
getPublicationsForPublication
List<Publication> getPublicationsForPublication(String publicationIDPath, PublicationsFilter searchParameters) throws ServiceException Returns the list of sub publications for the specified publication and fullfilling the search criteria- Parameters:
publicationIDPath- publication ID pathsearchParameters- the search criteria in the PublicationsFilter object- Returns:
- the list of publications
- Throws:
ServiceException- See Also:
-
getPublicationsByPageTemplate
List<Publication> getPublicationsByPageTemplate(String pageTemplateID, PublicationsFilter searchParameters) throws ServiceException Returns the list of publications for specified page template and the search criteria- Parameters:
pageTemplateID- page template IDsearchParameters- search criteria in the PublicationsFilter object- Returns:
- the list of publications
- Throws:
ServiceException- See Also:
-
setPublicationsXPageTemplate
List<Publication> setPublicationsXPageTemplate(String pageTemplateID, List<Publication> publicationsList) throws ServiceException Sets specific page template for publications.For each Publication object from the list the page template of given ID is set.
- Parameters:
pageTemplateID- page template IDpublicationsList- the list of publication- Returns:
- the list of processed publications. Each Publication object from the list contains status code of the operation
- Throws:
ServiceException- See Also:
-