Interface PublicationsServiceLocal
-
public interface PublicationsServiceLocalLocal interface for the Publications service from the Planner API
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<Publication>addPublications(java.util.List<Publication> publications)Creates new publicationsjava.lang.StringdeletePublication(java.lang.String id)Deletes publication at the specified IDPublicationgetPublication(java.lang.String id)Returns the publication at the specified IDjava.util.List<Publication>getPublications(PublicationsFilter searchParameters)Returns the list of publications fulfilling the search criteria passed as parameterjava.util.List<Publication>getPublicationsByMasterDocument(java.lang.String masterDocumentID, PublicationsFilter searchParameters)Returns the list of publications for specified master document and the search criteriajava.util.List<Publication>getPublicationsByPageTemplate(java.lang.String pageTemplateID, PublicationsFilter searchParameters)Returns the list of publications for specified page template and the search criteriajava.util.List<Publication>getPublicationsByStausID(java.lang.String statusID, PublicationsFilter searchParameters)Returns the list of publications for specified status ID and the search criteriajava.util.List<Publication>getPublicationsByTemplate(java.lang.String templateID, PublicationsFilter searchParameters)Returns the list of publications for specified template and the search criteriajava.util.List<Publication>getPublicationsByTodoID(java.lang.String todoID, PublicationsFilter searchParameters)Returns the list of publications for specified todo and the search criteriajava.util.List<Publication>getPublicationsByWorkflowID(java.lang.String workflowID, PublicationsFilter searchParameters)Returns the list of publications for specified workflow and the search criteriajava.util.List<Publication>getPublicationsForPublication(java.lang.String publicationIDPath, PublicationsFilter searchParameters)Returns the list of sub publications for the specified publication and fullfilling the search criteriajava.lang.StringsetPublication(Publication publication)Modifies existing publication based on passed parameterjava.util.List<Publication>setPublications(java.util.List<Publication> publications)Modifies existing publicationsjava.util.List<Publication>setPublicationsXPageTemplate(java.lang.String pageTemplateID, java.util.List<Publication> publicationsList)Sets specific page template for publications.java.util.List<Publication>setPublicationsXTemplate(java.lang.String templateID, java.util.List<Publication> publicationsList)Sets specific template for publications.
-
-
-
Method Detail
-
getPublication
Publication getPublication(java.lang.String id) throws ServiceException, ResourceNotFoundException
Returns the publication at the specified ID- Parameters:
id- publication id- Returns:
- the publication
- Throws:
ServiceExceptionResourceNotFoundException- See Also:
Publication
-
getPublications
java.util.List<Publication> getPublications(PublicationsFilter searchParameters) throws ServiceException
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:
Publication,PublicationsFilter
-
setPublication
java.lang.String setPublication(Publication publication) throws ServiceException, ResourceNotFoundException
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:
Publication
-
setPublications
java.util.List<Publication> setPublications(java.util.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:
Publication
-
addPublications
java.util.List<Publication> addPublications(java.util.List<Publication> publications) throws ServiceException
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:
Publication
-
deletePublication
java.lang.String deletePublication(java.lang.String id) throws ServiceExceptionDeletes 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
java.util.List<Publication> getPublicationsByMasterDocument(java.lang.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:
Publication,PublicationsFilter
-
getPublicationsByTemplate
java.util.List<Publication> getPublicationsByTemplate(java.lang.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:
Publication,PublicationsFilter
-
setPublicationsXTemplate
java.util.List<Publication> setPublicationsXTemplate(java.lang.String templateID, java.util.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:
Publication
-
getPublicationsByTodoID
java.util.List<Publication> getPublicationsByTodoID(java.lang.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:
Publication,PublicationsFilter
-
getPublicationsByWorkflowID
java.util.List<Publication> getPublicationsByWorkflowID(java.lang.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:
Publication,PublicationsFilter
-
getPublicationsByStausID
java.util.List<Publication> getPublicationsByStausID(java.lang.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:
Publication,PublicationsFilter
-
getPublicationsForPublication
java.util.List<Publication> getPublicationsForPublication(java.lang.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:
Publication,PublicationsFilter
-
getPublicationsByPageTemplate
java.util.List<Publication> getPublicationsByPageTemplate(java.lang.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:
Publication,PublicationsFilter
-
setPublicationsXPageTemplate
java.util.List<Publication> setPublicationsXPageTemplate(java.lang.String pageTemplateID, java.util.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:
Publication
-
-