Interface CometTableOfContentsRemote
-
public interface CometTableOfContentsRemoteRemote interface to access the comet table of contents bean from external JVM.This is intended for testing purposes only and maybe removed or changed without notice.
For all normal work please use
CometTableOfContentsLocalinterface instead.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classCometTableOfContentsRemote.DesignateRangeThe Enum DesignateRange.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringENTITY_IDENTIFIERThe Constant ENTITY_IDENTIFIER: "comet_toc"static java.lang.StringJNDINAMEThe Constant JNDINAME: "java:global/CometTableOfContents/CometTableOfContentsRemoteEntryPoint!com.priint.pubserver.comet.bridge.toc.CometTableOfContentsRemote"static java.lang.StringMAPPED_NAMEThe Constant MAPPED_NAME: "com.priint.pubserver.comet.bridge.toc.CometTableOfContentsRemote"
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddCometTocEntry(java.lang.String sessionId, CometTocEntry entry)Add a single table of contents entry.
Note: the database should be cleared before, e.g.voidclearAndAddCometTocEntries(java.lang.String sessionId, java.lang.String document, java.lang.String path, java.lang.String publication, java.lang.String publicationPlannerId, java.lang.String layerList, java.lang.String placeholderList, java.util.List<CometTocEntry> entries)Add a list of CometTocEntries.java.util.List<CometTocEntry>deleteCometTocEntries(java.lang.String sessionId, java.lang.String project)Delete all the toc entries of the given project.java.util.List<CometTocEntry>deleteCometTocEntries(java.lang.String sessionId, java.lang.String document, java.lang.String path, java.lang.String publication, java.lang.String publicationPlannerId, java.lang.String layerList, java.lang.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(java.lang.String sessionId, java.util.List<java.lang.String> entryIDs)Deletes toc entries refered by ID.java.util.List<CometTocEntry>getDocumentTocEntries(java.lang.String sessionId, java.lang.String document, java.lang.String path, java.lang.String publication, java.lang.String publicationPlannerId, java.lang.String layerList, java.lang.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.java.util.List<CometTocEntry>getEntityTocEntries(java.lang.String sessionId, java.lang.String document, java.lang.String path, java.lang.String publication, java.lang.String publicationPlannerId, java.lang.String entityIdentifier, java.lang.String recordIdentifier, java.lang.String recordGroupId, java.lang.String entityClass, java.lang.String parentEntityId, java.lang.String parentRecordIdentifier, java.lang.String parentRecordGroupId, java.lang.String parentEntityClass, Context context, java.lang.String layerList, java.lang.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.java.util.List<CometTocEntry>getProjectTocEntries(java.lang.String sessionId, java.lang.String project)Get all the toc entries of the given project.
-
-
-
Field Detail
-
ENTITY_IDENTIFIER
static final java.lang.String ENTITY_IDENTIFIER
The Constant ENTITY_IDENTIFIER: "comet_toc"- See Also:
- Constant Field Values
-
JNDINAME
static final java.lang.String JNDINAME
The Constant JNDINAME: "java:global/CometTableOfContents/CometTableOfContentsRemoteEntryPoint!com.priint.pubserver.comet.bridge.toc.CometTableOfContentsRemote"- See Also:
- Constant Field Values
-
MAPPED_NAME
static final java.lang.String MAPPED_NAME
The Constant MAPPED_NAME: "com.priint.pubserver.comet.bridge.toc.CometTableOfContentsRemote"- See Also:
- Constant Field Values
-
-
Method Detail
-
addCometTocEntry
void addCometTocEntry(java.lang.String sessionId, CometTocEntry entry) throws PubServerExceptionAdd a single table of contents entry.
Note: the database should be cleared before, e.g. by calling deleteCometTocEntries before.- Parameters:
sessionId- the session identry- the entry- Throws:
PubServerException- the pub server exception
-
clearAndAddCometTocEntries
void clearAndAddCometTocEntries(java.lang.String sessionId, java.lang.String document, java.lang.String path, java.lang.String publication, java.lang.String publicationPlannerId, java.lang.String layerList, java.lang.String placeholderList, java.util.List<CometTocEntry> entries) throws PubServerExceptionAdd a list of CometTocEntries. This method will clear all existing entries of this document (in the specified layers / of the specified placeholders) before.- Parameters:
sessionId- the session iddocument- 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
java.util.List<CometTocEntry> deleteCometTocEntries(java.lang.String sessionId, java.lang.String project) throws PubServerException
Delete all the toc entries of the given project.- Parameters:
sessionId- the session idproject- the project- Returns:
- the list
- Throws:
PubServerException- the pub server exception
-
deleteCometTocEntries
void deleteCometTocEntries(java.lang.String sessionId, java.util.List<java.lang.String> entryIDs) throws PubServerExceptionDeletes 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:
sessionId- the session identryIDs- list of valid toc entry IDs- Throws:
PubServerException- the pub server exception
-
deleteCometTocEntries
java.util.List<CometTocEntry> deleteCometTocEntries(java.lang.String sessionId, java.lang.String document, java.lang.String path, java.lang.String publication, java.lang.String publicationPlannerId, java.lang.String layerList, java.lang.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:
sessionId- the session iddocument- 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
java.util.List<CometTocEntry> getDocumentTocEntries(java.lang.String sessionId, java.lang.String document, java.lang.String path, java.lang.String publication, java.lang.String publicationPlannerId, java.lang.String layerList, java.lang.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:
sessionId- the session iddocument- 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
java.util.List<CometTocEntry> getEntityTocEntries(java.lang.String sessionId, java.lang.String document, java.lang.String path, java.lang.String publication, java.lang.String publicationPlannerId, java.lang.String entityIdentifier, java.lang.String recordIdentifier, java.lang.String recordGroupId, java.lang.String entityClass, java.lang.String parentEntityId, java.lang.String parentRecordIdentifier, java.lang.String parentRecordGroupId, java.lang.String parentEntityClass, Context context, java.lang.String layerList, java.lang.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:
sessionId- the session iddocument- 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
java.util.List<CometTocEntry> getProjectTocEntries(java.lang.String sessionId, java.lang.String project) throws PubServerException
Get all the toc entries of the given project.- Parameters:
sessionId- the session idproject- the project- Returns:
- the project toc entries
- Throws:
PubServerException- the pub server exception
-
-