Interface CometTableOfContentsLocal
public interface CometTableOfContentsLocal
The Interface CometTableOfContentsLocal.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCometTocEntry(CometTocEntry entry) Add a single table of contents entry.
Note: the database should be cleared before, e.g.voidclearAndAddCometTocEntries(String document, String path, String publication, String publicationPlannerId, String layerList, String placeholderList, List<CometTocEntry> entries) Add a list of CometTocEntries.deleteCometTocEntries(String project) Delete all the toc entries of the given project.deleteCometTocEntries(String document, String path, String publication, String publicationPlannerId, String layerList, String placeholderList) Delete table of contents entries of a certain document.
If a (comma separated) list of layers is provided: delete only entries of these layers.
If a (comma separated) list of placeholders is provided: delete only entries of these placeholders.voiddeleteCometTocEntries(List<String> entryIDs) Deletes toc entries refered by ID.getDocumentTocEntries(String document, String path, String publication, String publicationPlannerId, String layerList, String placeholderList) Get the table of contents entries of a certain document.
If a (comma separated) list of layers is provided: query only entries of these layers.
If a (comma separated) list of placeholders is provided: query only entries of these placeholders.getEntityTocEntries(String document, String path, String publication, String publicationPlannerId, String entityIdentifier, String recordIdentifier, String recordGroupId, String entityClass, String parentEntityId, String parentRecordIdentifier, String parentRecordGroupId, String parentEntityClass, Context context, String layerList, String placeholderList) Get toc entries for a specific document and product.
To find these entries, all the values required to identify a document AND the product must be provided, so this method has a couple of parameters.
Some values may be implied by others: e.g.getProjectTocEntries(String project) Get all the toc entries of the given project.
-
Field Details
-
JNDINAME
The Constant JNDINAME.- See Also:
-
ENTITY_IDENTIFIER
The Constant ENTITY_IDENTIFIER.- See Also:
-
MAPPED_NAME
The Constant MAPPED_NAME.- See Also:
-
-
Method Details
-
addCometTocEntry
Add a single table of contents entry.
Note: the database should be cleared before, e.g. by calling deleteCometTocEntries before.- Parameters:
entry- the entry- Throws:
PubServerException- the pub server exception
-
clearAndAddCometTocEntries
void clearAndAddCometTocEntries(String document, String path, String publication, String publicationPlannerId, String layerList, String placeholderList, List<CometTocEntry> entries) throws PubServerException Add a list of CometTocEntries. This method will clear all existing entries of this document (in the specified layers / of the specified placeholders) before.- Parameters:
document- the documentpath- the pathpublication- the publicationpublicationPlannerId- the publication planner idlayerList- the layer listplaceholderList- the placeholder listentries- the entries- Throws:
PubServerException- the pub server exception
-
deleteCometTocEntries
Delete all the toc entries of the given project.- Parameters:
project- the project- Returns:
- the list
- Throws:
PubServerException- the pub server exception
-
deleteCometTocEntries
Deletes toc entries refered by ID.
Deletes all toc entries by ID passed as argument.
If a toc entry with one ID specified in the list cannot be found or is ambiguous, an Exception is thrown.- Parameters:
entryIDs- list of valid toc entry IDs- Throws:
PubServerException- the pub server exception
-
deleteCometTocEntries
List<CometTocEntry> deleteCometTocEntries(String document, String path, String publication, String publicationPlannerId, String layerList, String placeholderList) throws PubServerException Delete table of contents entries of a certain document.
If a (comma separated) list of layers is provided: delete only entries of these layers.
If a (comma separated) list of placeholders is provided: delete only entries of these placeholders.- Parameters:
document- the documentpath- the pathpublication- the publicationpublicationPlannerId- the publication planner idlayerList- the layer listplaceholderList- the placeholder list- Returns:
- the list
- Throws:
PubServerException- the pub server exception
-
getDocumentTocEntries
List<CometTocEntry> getDocumentTocEntries(String document, String path, String publication, String publicationPlannerId, String layerList, String placeholderList) throws PubServerException Get the table of contents entries of a certain document.
If a (comma separated) list of layers is provided: query only entries of these layers.
If a (comma separated) list of placeholders is provided: query only entries of these placeholders.- Parameters:
document- the documentpath- the pathpublication- the publicationpublicationPlannerId- the publication planner idlayerList- the layer listplaceholderList- the placeholder list- Returns:
- the document toc entries
- Throws:
PubServerException- the pub server exception
-
getEntityTocEntries
List<CometTocEntry> getEntityTocEntries(String document, String path, String publication, String publicationPlannerId, String entityIdentifier, String recordIdentifier, String recordGroupId, String entityClass, String parentEntityId, String parentRecordIdentifier, String parentRecordGroupId, String parentEntityClass, Context context, String layerList, String placeholderList) throws PubServerException Get toc entries for a specific document and product.
To find these entries, all the values required to identify a document AND the product must be provided, so this method has a couple of parameters.
Some values may be implied by others: e.g. the context language may be encoded in the layer name, so you don't have to provide both.- Parameters:
document- the documentpath- the pathpublication- the publicationpublicationPlannerId- the publication planner identityIdentifier- the entity identifierrecordIdentifier- the record identifierrecordGroupId- the record group identityClass- the entity classparentEntityId- the parent entity idparentRecordIdentifier- the parent record identifierparentRecordGroupId- the parent record group idparentEntityClass- the parent entity classcontext- the contextlayerList- the layer listplaceholderList- the placeholder list- Returns:
- the entity toc entries
- Throws:
PubServerException- the pub server exception
-
getProjectTocEntries
Get all the toc entries of the given project.- Parameters:
project- the project- Returns:
- the project toc entries
- Throws:
PubServerException- the pub server exception
-