Interface CometBridgeLocal
-
public interface CometBridgeLocalThe interface Comet bridge local.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringgetIncludeThe constant getInclude.static java.lang.StringgetJavaPluginHeadersThe constant getJavaPluginHeaders.static java.lang.StringgetJavaPluginIncludesThe constant getJavaPluginIncludes.static java.lang.StringgetLibraryIncludesThe constant getLibraryIncludes.static java.lang.StringincludeExistsThe constant includeExists.static java.lang.StringJNDINAMEJNDI name of the local interfacestatic java.lang.StringMAPPED_NAMEThe mapped name of the CometBridge Pluginstatic java.lang.StringsetSessionClientThe constant setSessionClient.static java.lang.StringsetSessionProjectThe constant setSessionProject.
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description java.util.List<java.lang.String>call(java.lang.String method, java.lang.String arguments)Call a method on the server and retrieve a list of string values in return.java.lang.StringcreateAnonymousSession(java.lang.String name, long maxIdleTimeInMillis)Create a new and anonymous sessionvoiddeletePageTemplate(int pageTemplateId)Delete a page templatejava.util.List<Product>findProducts(int statementId, java.lang.String searchValue1, java.lang.String searchValue2, java.lang.String searchValue3, java.lang.String searchValue4)Deprecated.java.util.List<Product>findProducts(int statementId, java.lang.String searchValue1, java.lang.String searchValue2, java.lang.String searchValue3, java.lang.String searchValue4, java.lang.String documentID)Find products using a find statements and 1 ..ActionsgetActions()Gets actions.byte[]getAllCScriptHeaders()Get all c script headers byte [ ].byte[]getAllCScriptIncludes()Get all c script includes byte [ ].java.util.List<CometSearchMethod>getAvailableSearchMethods(java.lang.String client, java.lang.String projectIdentifier)Gets available search methods.byte[]getBinaryData(ConfigurationData.FileID fileId, int id)Get binary data byte [ ].java.util.List<Product>getChildBuckets(java.lang.String productStringId, java.lang.String searchString)Get children of a bucket.
productStringId is the compound ID used in the Comet3 context, in other words: just the value you get from the parent product by callingproduct.getStringId();ColorsgetColors()Gets colors.ConditionMenuesgetConditionMenues()Gets condition menues.ConditionsgetConditions()Gets conditions.DataFilesgetDataFiles()Gets data files.DomainsgetDomains()Gets domains.byte[]getEntityIcon(java.lang.String fileId)Get entity icon byte [ ].EntityResultFiltergetEntityResultFilter()Gets entity result filter.FindStatementsgetFindStatements()Gets find statements.FontDataBasegetFontDataBase()Gets font data base.FrameRulesgetFrameRules()Gets frame rules.GridsgetGrids()Gets grids.GridTypesgetGridTypes()Gets grid types.byte[]getInclude(java.lang.String includePath)Get include byte [ ].java.util.List<java.lang.String>getJavaPluginHeaders()Gets java plugin headers.java.util.List<java.lang.String>getJavaPluginIncludes()Gets java plugin includes.java.util.List<java.lang.String>getLibraryIncludes()Gets library includes.intgetLinkScriptId(java.lang.String scriptName)Gets the ID of a CometPreviewLinkScript by it's name.java.util.List<Row>getList(java.lang.String method, java.lang.String arguments)Call a method on the server an retrieve a list of string-lists in return (e.g.ManifestgetManifest()Gets general information for this comet project.MessagesgetMessages(java.lang.String locale)Get messages / translations for this comet project.
Currently there is no support for user defined tranlations, so this method just returns an empty (beside of the root element) XML document.java.util.List<ContentMetaData>getMetadataOfPageTemplate(int pageTemplateId)Get metadata for page template that are stored in /pagetemplate/metadata in repository.java.util.List<ContentMetaData>getMetadataOfPageTemplateElement(int uid, int pageTemplateId)Get metadata for page template element that are stored in /pagetemplate/metadata in repository.byte[]getPageItemData(int pageItemId)Get binary (i.e.byte[]getPageItemDocumentMetadata(int pageItemId)Get document metadata (i.e.byte[]getPageItemIDML(int pageItemId)Get IDML data of a page item (aka "Template").
Calling this method is equivalent toCometBridgeRemote.getBinaryData(ConfigurationData.FileID.PAGEITEM_IDML, pageItemId);byte[]getPageItemMarkup(int pageItemId)Get markup (i.e.byte[]getPageItemPreview(int pageItemId)Get preview (i.e.PageItemsgetPageItems()Gets page items.byte[]getPageItemShapes(int pageItemId)Get shapes of a page item (aka "Template").
Calling this method is equivalent toCometBridgeRemote.getBinaryData(ConfigurationData.FileID.PAGEITEM_SHAPES, pageItemId);PageItemStatesgetPageItemStates()Gets page item states.PageItemTypesgetPageItemTypes()Gets page item types.byte[]getPageTemplateData(int pageTemplateId)Get binary (i.e.byte[]getPageTemplateDocumentMetadata(int pageTemplateId)Get document metadata (i.e.byte[]getPageTemplatePreview(int pageTemplateId)Get preview (i.e.PageTemplatesgetPageTemplates()Gets page templates.PanelStatementsgetPanelStatements()Gets panel statements.PlaceholderGroupsgetPlaceholderGroups()Gets placeholder groups.PlaceholdersgetPlaceholders()Gets placeholders.PlaceholderVariantsgetPlaceholderVariants()Gets the placeholder variants configurationbyte[]getPluginCScriptHeader(java.lang.String pluginName)Get plugin c script header byte [ ].byte[]getPluginCScriptLibrary(java.lang.String pluginName)Get plugin cscript client stub.byte[]getPluginCScriptLibrary(java.lang.String pluginName, ConfigurationData.FileID fileID)Get plugin cscript or python client stub.PreviewStatementsgetPreviewStatements()Gets preview statements.ProductDataMappinggetProductDataMapping()Gets product data mapping.CometProductPanelConfiggetProductPanelConfig()Get the configuration for the product paneljava.lang.StringgetProjectClientName(java.lang.String sessionID, java.lang.String projectIdentifier)Gets project client name.java.lang.StringgetProjectModelIdentifier(java.lang.String sessionID, java.lang.String projectIdentifier)Gets project model identifier.RelatedTosgetRelatedTos()Gets related tos.java.util.List<Product>getRootBuckets(java.lang.String searchString)Get the root buckets from the data source of the current comet project.
Calling this method requires a valid Comet Bridge session, i.e.: you must login using CometBridgeRemote.login or CometBridgeRemote.loginWithSession before.intgetScriptIdByName(java.lang.String scriptName, java.lang.Class<? extends CometScript> scriptClass)Gets the ID of a script by it's class and name (label).byte[]getScriptLibrary(java.lang.String libraryName)Get the cscript library with the given name.
These are "actions" (speaking in Comet3 terms), which can be included in other scripts using this scheme:#include "[pubserver]/libraryName.h"java.lang.ObjectgetSessionAttribute(java.lang.String key)Get the session attributeCometBridgeRemote.SessionModegetSessionMode()Get the mode for this session.org.apache.shiro.subject.SubjectgetShiroSubject(java.lang.String sessionId)Returns shiro subjectTranslationsUnitgetTranslations()Gets translations for the current sessionjava.lang.StringgetUiFallbackLanguage()Gets ui fallback language.XEntitiesgetXEntities()Gets x entities.XIndexesgetXIndexes()Gets x indexes.booleanincludeExists(java.lang.String includePath)Include exists boolean.java.lang.Stringlogin(java.lang.String login, java.lang.String passwd, java.lang.String configurationName, java.lang.String language)login (i.e.java.lang.StringloginFromPriintSuite(java.lang.String login, java.lang.String passwd, java.lang.String configurationName, java.lang.String language)login (i.e.java.lang.StringloginFromRemote(java.lang.String login, java.lang.String passwd, java.lang.String projectIdentifier, java.lang.String language)Login from remote string.java.lang.StringloginLocalFromPriintSuite(java.lang.String login, java.lang.String token, java.lang.String projectIdentifier, java.lang.String language)Login local from priint suite string.java.util.Map<java.lang.String,java.lang.String>loginWithSession(java.lang.String sessionId)Login using a session IDvoidlogout()logout (i.e.voidprocessTocUpdate(CometTocUpdate toc)Process a "table of contents" update.
All data required to process this update is encapsulated in the toc object, such as document name, path, publication ID, the actual toc entries, scope of this command etc.
SeeCometTocUpdatefor more information.
Usually this method is only called from rendering clients (such as InDesign / Comet or the pdf renderer) while generating or analyzing documentsbyte[]readSnippetData(java.lang.String fileId)Read snippet data byte [ ].byte[]readSnippetPreview(java.lang.String fileId)Read snippet preview byte [ ].byte[]readSnippetPreviewById(int snippetId)Read snippet preview by id byte [ ].voidresetApplication()Reset the applicationvoidsavePageItemPreview(int pageTemplateId, byte[] data)Save preview (i.e.intsavePageTemplate(PageTemplate pageTemplate)Save a PageTemplate.
Depending on the pageTemplate data, this method either updates an existing page template, if the ID of this template is defined and denote an existing / valid page template creates a new page template, if the ID is 0 or does not denote a page template In the latter case, the ID of the newly created page template is returned.voidsavePageTemplateData(int pageTemplateId, byte[] data)Save binary (i.e.voidsavePageTemplatePreview(int pageTemplateId, byte[] data)Save preview (i.e.voidsetActions(Actions actions)Sets actions.voidsetBinaryData(ConfigurationData.FileID fileId, int id, byte[] data)Sets binary data.voidsetColors(Colors colors)Sets colors.voidsetConditionMenues(ConditionMenues menues)Sets condition menues.voidsetConditions(Conditions conditions)Sets conditions.voidsetDataFiles(DataFiles datafiles)Sets data files.voidsetDomains(Domains domains)Sets domains.voidsetFindStatements(FindStatements findStatements)Sets find statements.voidsetFrameRules(FrameRules frameRules)Sets frame rules.voidsetGrids(Grids grids)Sets grids.voidsetGridTypes(GridTypes gridTypes)Sets grid types.voidsetPageItems(PageItems pageItems)Sets page items.voidsetPageItemStates(PageItemStates pageItemStates)Sets page item states.voidsetPageItemTypes(PageItemTypes pageItemTypes)Sets page item types.voidsetPageTemplates(PageTemplates pageTemplates)Sets page templates.voidsetPanelStatements(PanelStatements panelstatements)Sets panel statements.voidsetPlaceholderGroups(PlaceholderGroups groups)Sets placeholder groups.voidsetPlaceholders(Placeholders placeholders)Sets placeholders.voidsetPlaceholderVariants(PlaceholderVariants variants)Sets (persists) the placeholder variants configurationvoidsetPreviewStatements(PreviewStatements previewStatements)Sets preview statements.voidsetRelatedTos(RelatedTos relatedTos)Sets related tos.voidsetSessionAttribute(java.lang.String key, java.lang.Object object)Set the session attributevoidsetSessionClient(java.lang.String client)Sets session client.voidsetSessionMode(CometBridgeRemote.SessionMode mode)Set the mode for this session.voidsetSessionMode(java.lang.String sessionId, CometBridgeRemote.SessionMode mode)Sets session mode.voidsetSessionProject(java.lang.String projectIdentifier)Sets session project.voidsetSessionProperties(java.lang.String sessionId, java.lang.String login, java.lang.String passwd, java.lang.String projectIdentifier, java.lang.String language, boolean initSessionInfo)Sets session properties.voidsetXEntities(XEntities xentities)Sets x entities.voidsetXIndexes(XIndexes xindexes)Sets x indexes.voidvalidateUser(java.lang.String sessionId, java.lang.String login, java.lang.String projectIdentifier)Checks whether the user is assigned to the project.
-
-
-
Field Detail
-
JNDINAME
static final java.lang.String JNDINAME
JNDI name of the local interface
Usually you acquire an instance of the local bean via the Plugin manager.
If for any reason you want to access the CometBridge via JNDI lookup, use this name for the InitialContext.lookup call.- See Also:
- Constant Field Values
-
MAPPED_NAME
static final java.lang.String MAPPED_NAME
The mapped name of the CometBridge Plugin
Use this name when requesting a Plugin instance from the PluginManager
- See Also:
- Constant Field Values
-
getInclude
static final java.lang.String getInclude
The constant getInclude.- See Also:
- Constant Field Values
-
getJavaPluginIncludes
static final java.lang.String getJavaPluginIncludes
The constant getJavaPluginIncludes.- See Also:
- Constant Field Values
-
getLibraryIncludes
static final java.lang.String getLibraryIncludes
The constant getLibraryIncludes.- See Also:
- Constant Field Values
-
getJavaPluginHeaders
static final java.lang.String getJavaPluginHeaders
The constant getJavaPluginHeaders.- See Also:
- Constant Field Values
-
setSessionProject
static final java.lang.String setSessionProject
The constant setSessionProject.- See Also:
- Constant Field Values
-
setSessionClient
static final java.lang.String setSessionClient
The constant setSessionClient.- See Also:
- Constant Field Values
-
includeExists
static final java.lang.String includeExists
The constant includeExists.- See Also:
- Constant Field Values
-
-
Method Detail
-
createAnonymousSession
java.lang.String createAnonymousSession(java.lang.String name, long maxIdleTimeInMillis) throws CometExceptionCreate a new and anonymous session- Parameters:
name- - login namemaxIdleTimeInMillis- new session will expire after this time- Returns:
- session id of anonymous session
- Throws:
CometException- the comet exception
-
loginFromPriintSuite
java.lang.String loginFromPriintSuite(java.lang.String login, java.lang.String passwd, java.lang.String configurationName, java.lang.String language) throws CometExceptionlogin (i.e. start a session).- Parameters:
login- the loginpasswd- the passwdconfigurationName- name of the configuration, such as "demo"language- language, TODO: specify language codes- Returns:
- new session id
- Throws:
CometException- the comet exception
-
loginWithSession
java.util.Map<java.lang.String,java.lang.String> loginWithSession(java.lang.String sessionId) throws CometExceptionLogin using a session ID
The method returns a Map containing all relevant properties defined for this sessions, i.e.
- login name
- which comet project is this session connected to
- ... etc.
- Parameters:
sessionId- the session id- Returns:
- Map containing all relevant session properties
- Throws:
CometException- the comet exception
-
call
java.util.List<java.lang.String> call(java.lang.String method, java.lang.String arguments) throws CometException, InvalidSessionExceptionCall a method on the server and retrieve a list of string values in return. Typically this method is called for simple placeholder operations (such as load, sync, store...)- Parameters:
method- the methodarguments- the arguments- Returns:
- list of strings processed by this command
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
deletePageTemplate
void deletePageTemplate(int pageTemplateId) throws CometException, InvalidSessionExceptionDelete a page template- Parameters:
pageTemplateId- the page template id- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
findProducts
@Deprecated java.util.List<Product> findProducts(int statementId, java.lang.String searchValue1, java.lang.String searchValue2, java.lang.String searchValue3, java.lang.String searchValue4) throws CometException, InvalidSessionException
Deprecated.Find products using a find statements and 1 .. 4 search values.
Find statements must have been fetched from CometBridge using the
getFindStatements()method before.
Clients are not supposed to cache or store find statements across several sessions, because they are generated dynamically on Runtime and the statementId may change after reconnecting.- Parameters:
statementId- the statement idsearchValue1- the search value 1searchValue2- the search value 2searchValue3- the search value 3searchValue4- the search value 4- Returns:
- list of products matching the given search criteria
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
findProducts
java.util.List<Product> findProducts(int statementId, java.lang.String searchValue1, java.lang.String searchValue2, java.lang.String searchValue3, java.lang.String searchValue4, java.lang.String documentID) throws CometException, InvalidSessionException
Find products using a find statements and 1 .. 4 search values.
Find statements must have been fetched from CometBridge using the
getFindStatements()method before.
Clients are not supposed to cache or store find statements across several sessions, because they are generated dynamically on Runtime and the statementId may change after reconnecting.- Parameters:
statementId- the statement idsearchValue1- the search value 1searchValue2- the search value 2searchValue3- the search value 3searchValue4- the search value 4documentID- the document id- Returns:
- list of products matching the given search criteria
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getActions
Actions getActions() throws CometException, InvalidSessionException
Gets actions.- Returns:
- list of actions configured on this server in the current project context
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getBinaryData
byte[] getBinaryData(ConfigurationData.FileID fileId, int id) throws CometException, InvalidSessionException
Get binary data byte [ ].- Parameters:
fileId- the file idid- the id- Returns:
- binary data with the given fileId (i.e. file type) and item id
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getChildBuckets
java.util.List<Product> getChildBuckets(java.lang.String productStringId, java.lang.String searchString) throws CometException, InvalidSessionException
Get children of a bucket.
productStringId is the compound ID used in the Comet3 context, in other words: just the value you get from the parent product by callingproduct.getStringId();- Parameters:
productStringId- the product string idsearchString- the search string- Returns:
- child buckets of a bucket referred by productStringId
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getColors
Colors getColors() throws CometException, InvalidSessionException
Gets colors.- Returns:
- colors configured on this server in the current project context
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getConditionMenues
ConditionMenues getConditionMenues() throws CometException, InvalidSessionException
Gets condition menues.- Returns:
- list of condition menues conofigured on this server
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getConditions
Conditions getConditions() throws CometException, InvalidSessionException
Gets conditions.- Returns:
- list of conditions configured on this server in the current project context
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getDataFiles
DataFiles getDataFiles() throws CometException, InvalidSessionException
Gets data files.- Returns:
- list of data files (i.e. file aliases)
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getDomains
Domains getDomains() throws CometException, InvalidSessionException
Gets domains.- Returns:
- domains configured on this server in the current project context
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getEntityIcon
byte[] getEntityIcon(java.lang.String fileId) throws InvalidSessionException, CometExceptionGet entity icon byte [ ].- Parameters:
fileId- the file id- Returns:
- icon data
- Throws:
InvalidSessionException- the invalid session exceptionCometException- the comet exception
-
getFindStatements
FindStatements getFindStatements() throws CometException, InvalidSessionException
Gets find statements.- Returns:
- list of find statements configured on this server in the current project context
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getFontDataBase
FontDataBase getFontDataBase() throws CometException, InvalidSessionException
Gets font data base.- Returns:
- the font database configured on this server in the current project context
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getFrameRules
FrameRules getFrameRules() throws CometException, InvalidSessionException
Gets frame rules.- Returns:
- list of frame rules configured on this server in the current project context
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getGrids
Grids getGrids() throws CometException, InvalidSessionException
Gets grids.- Returns:
- list of grids configured on this server in the current project context
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getGridTypes
GridTypes getGridTypes() throws CometException, InvalidSessionException
Gets grid types.- Returns:
- list of grid types configured on this server in the current project context
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getList
java.util.List<Row> getList(java.lang.String method, java.lang.String arguments) throws CometException, InvalidSessionException
Call a method on the server an retrieve a list of string-lists in return (e.g. tabular data). This method is used for complex operations (product or publication hierarchy) or to get structured data of any kind in one go.- Parameters:
method- qualified Java class and method name, e.g. com.priint.arguments- the arguments- Returns:
- list of rows processed by this command
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getManifest
Manifest getManifest() throws CometException, InvalidSessionException
Gets general information for this comet project.
The manifest document contains general information for the current session's comet project, such as name, identifier and last configuration change.
- Returns:
- project Manifest document
- Throws:
CometExceptionInvalidSessionException
-
getMessages
Messages getMessages(java.lang.String locale) throws CometException, InvalidSessionException
Get messages / translations for this comet project.
Currently there is no support for user defined tranlations, so this method just returns an empty (beside of the root element) XML document.- Parameters:
locale- the locale- Returns:
- list of messages / translations available on this server
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getPageItemData
byte[] getPageItemData(int pageItemId) throws CometException, InvalidSessionExceptionGet binary (i.e. INDD) data of a page item (aka "Template").
Calling this method is equivalent toCometBridgeRemote.getBinaryData(ConfigurationData.FileID.PAGEITEM_DATA, pageItemId);- Parameters:
pageItemId- the page item id- Returns:
- INDD document of this pageitem (i.e. template) or null, if no document exists for this template
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getPageItemIDML
byte[] getPageItemIDML(int pageItemId) throws CometException, InvalidSessionExceptionGet IDML data of a page item (aka "Template").
Calling this method is equivalent toCometBridgeRemote.getBinaryData(ConfigurationData.FileID.PAGEITEM_IDML, pageItemId);- Parameters:
pageItemId- the page item id- Returns:
- IDML document of this pageitem (i.e. template) or null, if no IDML exists for this template
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getPageItemMarkup
byte[] getPageItemMarkup(int pageItemId) throws CometException, InvalidSessionExceptionGet markup (i.e. Werk II XML) of a page item (aka "Template").
Calling this method is equivalent toCometBridgeRemote.getBinaryData(ConfigurationData.FileID.PAGEITEM_MARKUP, pageItemId);- Parameters:
pageItemId- the page item id- Returns:
- w2ml document of this page item (i.e. template) or null, if no w2ml document exists for this template
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getPageItemPreview
byte[] getPageItemPreview(int pageItemId) throws CometException, InvalidSessionExceptionGet preview (i.e. JPEG image) of a page item (aka "Template").
Calling this method is equivalent toCometBridgeRemote.getBinaryData(ConfigurationData.FileID.PAGEITEM_PREVIEW, pageItemId);- Parameters:
pageItemId- the page item id- Returns:
- preview of this pageitem (i.e. template) or null, if no preview exists for this template
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getPageItemDocumentMetadata
byte[] getPageItemDocumentMetadata(int pageItemId) throws CometException, InvalidSessionExceptionGet document metadata (i.e. zipped folder) of a page item (aka "Template").
Calling this method is equivalent toCometBridgeRemote.getBinaryData(ConfigurationData.FileID.PAGEITEM_METADATA, pageItemId);- Parameters:
pageItemId- the page item id- Returns:
- document metadata of this pageitem (i.e. template) as zipped folder or null, if no document metadata exists for this template
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getPageItems
PageItems getPageItems() throws CometException, InvalidSessionException
Gets page items.- Returns:
- list of page items (i.e. templates) configured on this server in the current project context
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getPageItemShapes
byte[] getPageItemShapes(int pageItemId) throws CometException, InvalidSessionExceptionGet shapes of a page item (aka "Template").
Calling this method is equivalent toCometBridgeRemote.getBinaryData(ConfigurationData.FileID.PAGEITEM_SHAPES, pageItemId);- Parameters:
pageItemId- the page item id- Returns:
- shapes of this pageitem (i.e. template) or null, if no shapes exist for this template
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getPageItemStates
PageItemStates getPageItemStates() throws CometException, InvalidSessionException
Gets page item states.- Returns:
- list of page item states configured on this server in the current project context
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getPageItemTypes
PageItemTypes getPageItemTypes() throws CometException, InvalidSessionException
Gets page item types.- Returns:
- list of page item types configured on this server in the current project context
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getPageTemplateData
byte[] getPageTemplateData(int pageTemplateId) throws CometException, InvalidSessionExceptionGet binary (i.e. INDD) data of a page template.
Calling this method is equivalent toCometBridgeRemote.getBinaryData(ConfigurationData.FileID.PAGETEMPLATE_DATA, pageTemplateId);- Parameters:
pageTemplateId- the page template id- Returns:
- pagetemplate document data or null, if no document data exists for this pagetemplate
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getPageTemplatePreview
byte[] getPageTemplatePreview(int pageTemplateId) throws CometException, InvalidSessionExceptionGet preview (i.e. JPEG image) of a page template.
Calling this method is equivalent toCometBridgeRemote.getBinaryData(ConfigurationData.FileID.PAGETEMPLATE_PREVIEW, pageTemplateId);- Parameters:
pageTemplateId- the page template id- Returns:
- pagetemplate preview or null, if no preview exists for this pagetemplate
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getPageTemplateDocumentMetadata
byte[] getPageTemplateDocumentMetadata(int pageTemplateId) throws CometException, InvalidSessionExceptionGet document metadata (i.e. zipped folder) of a page template.
Calling this method is equivalent toCometBridgeRemote.getBinaryData(ConfigurationData.FileID.PAGETEMPLATE_METADATA, pageTemplateId);- Parameters:
pageTemplateId- the page template id- Returns:
- pagetemplate document metadata as zipped folder or null, if no document metadata exists for this pagetemplate
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getPageTemplates
PageTemplates getPageTemplates() throws CometException, InvalidSessionException
Gets page templates.- Returns:
- page templates
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getMetadataOfPageTemplate
java.util.List<ContentMetaData> getMetadataOfPageTemplate(int pageTemplateId) throws CometException
Get metadata for page template that are stored in /pagetemplate/metadata in repository.- Parameters:
pageTemplateId- ID of the page template- Returns:
- list of ContentMetaData
- Throws:
CometException- the comet exception
-
getMetadataOfPageTemplateElement
java.util.List<ContentMetaData> getMetadataOfPageTemplateElement(int uid, int pageTemplateId) throws CometException
Get metadata for page template element that are stored in /pagetemplate/metadata in repository.- Parameters:
uid- uid of elementpageTemplateId- ID of the page template- Returns:
- list of ContentMetaData
- Throws:
CometException- the comet exception
-
getPanelStatements
PanelStatements getPanelStatements() throws CometException, InvalidSessionException
Gets panel statements.- Returns:
- panel statements
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getPlaceholderGroups
PlaceholderGroups getPlaceholderGroups() throws CometException, InvalidSessionException
Gets placeholder groups.- Returns:
- placeholder groups
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getPlaceholderVariants
PlaceholderVariants getPlaceholderVariants() throws CometException, InvalidSessionException
Gets the placeholder variants configuration
- Returns:
- list of placeholder variants
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getPlaceholders
Placeholders getPlaceholders() throws CometException, InvalidSessionException
Gets placeholders.- Returns:
- placeholders
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getPreviewStatements
PreviewStatements getPreviewStatements() throws CometException, InvalidSessionException
Gets preview statements.- Returns:
- preview statements
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getProductPanelConfig
CometProductPanelConfig getProductPanelConfig() throws CometException, InvalidSessionException
Get the configuration for the product panel- Returns:
- product panel config
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getRelatedTos
RelatedTos getRelatedTos() throws CometException, InvalidSessionException
Gets related tos.- Returns:
- related tos
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getRootBuckets
java.util.List<Product> getRootBuckets(java.lang.String searchString) throws CometException, InvalidSessionException
Get the root buckets from the data source of the current comet project.
Calling this method requires a valid Comet Bridge session, i.e.: you must login using CometBridgeRemote.login or CometBridgeRemote.loginWithSession before.- Parameters:
searchString- the search string- Returns:
- root buckets
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getScriptLibrary
byte[] getScriptLibrary(java.lang.String libraryName) throws CometException, InvalidSessionExceptionGet the cscript library with the given name.
These are "actions" (speaking in Comet3 terms), which can be included in other scripts using this scheme:#include "[pubserver]/libraryName.h"- Parameters:
libraryName- the library name- Returns:
- byte [ ]
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getSessionAttribute
java.lang.Object getSessionAttribute(java.lang.String key) throws CometException, InvalidSessionExceptionGet the session attribute- Parameters:
key- the key- Returns:
- session attribute
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getSessionMode
CometBridgeRemote.SessionMode getSessionMode() throws CometException, InvalidSessionException
Get the mode for this session.- Returns:
- session mode
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getShiroSubject
org.apache.shiro.subject.Subject getShiroSubject(java.lang.String sessionId) throws CometException, InvalidSessionExceptionReturns shiro subject- Parameters:
sessionId- the session id- Returns:
- shiro subject
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getXEntities
XEntities getXEntities() throws CometException, InvalidSessionException
Gets x entities.- Returns:
- x entities
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getXIndexes
XIndexes getXIndexes() throws CometException, InvalidSessionException
Gets x indexes.- Returns:
- x indexes
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
login
java.lang.String login(java.lang.String login, java.lang.String passwd, java.lang.String configurationName, java.lang.String language) throws CometExceptionlogin (i.e. start a session).- Parameters:
login- the loginpasswd- the passwdconfigurationName- name of the configuration, such as "demo"language- language,: specify language codes- Returns:
- string
- Throws:
CometException- the comet exception
-
logout
void logout() throws CometException, InvalidSessionExceptionlogout (i.e. close a session)- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
processTocUpdate
void processTocUpdate(CometTocUpdate toc) throws CometException, InvalidSessionException
Process a "table of contents" update.
All data required to process this update is encapsulated in the toc object, such as document name, path, publication ID, the actual toc entries, scope of this command etc.
SeeCometTocUpdatefor more information.
Usually this method is only called from rendering clients (such as InDesign / Comet or the pdf renderer) while generating or analyzing documents- Parameters:
toc- the toc- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
resetApplication
void resetApplication() throws CometException, InvalidSessionExceptionReset the application
This method is mainly intended for testing purposes. In regular operation there should be no need to reset the application. All caches are cleared and startup procedures are executed.
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
savePageItemPreview
void savePageItemPreview(int pageTemplateId, byte[] data) throws CometException, InvalidSessionExceptionSave preview (i.e. JPEG image) of a page item (aka. "Template").
Calling this method is equivalent toCometBridgeRemote.setBinaryData(ConfigurationData.FileID.PAGEITEM_PREVIEW, pageTemplateId, data);- Parameters:
pageTemplateId- the page template iddata- the data- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
savePageTemplate
int savePageTemplate(PageTemplate pageTemplate) throws CometException, InvalidSessionException
Save a PageTemplate.
Depending on the pageTemplate data, this method either- updates an existing page template, if the ID of this template is defined and denote an existing / valid page template
- creates a new page template, if the ID is 0 or does not denote a page template
- Parameters:
pageTemplate- the page template- Returns:
- ID of the newly created or updated page template
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
savePageTemplateData
void savePageTemplateData(int pageTemplateId, byte[] data) throws CometException, InvalidSessionExceptionSave binary (i.e. INDD) data of a page template.
Calling this method is equivalent toCometBridgeRemote.setBinaryData(ConfigurationData.FileID.PAGETEMPLATE_DATA, pageTemplateId, data);- Parameters:
pageTemplateId- the page template iddata- the data- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
savePageTemplatePreview
void savePageTemplatePreview(int pageTemplateId, byte[] data) throws CometException, InvalidSessionExceptionSave preview (i.e. JPEG image) of a page template.
Calling this method is equivalent toCometBridgeRemote.setBinaryData(ConfigurationData.FileID.PAGETEMPLATE_PREVIEW, pageTemplateId, data);- Parameters:
pageTemplateId- the page template iddata- the data- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
setActions
void setActions(Actions actions) throws CometException, InvalidSessionException
Sets actions.- Parameters:
actions- the actions- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
setBinaryData
void setBinaryData(ConfigurationData.FileID fileId, int id, byte[] data) throws CometException, InvalidSessionException
Sets binary data.- Parameters:
fileId- the file idid- the iddata- the data- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
setColors
void setColors(Colors colors) throws CometException, InvalidSessionException
Sets colors.- Parameters:
colors- the colors- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
setConditionMenues
void setConditionMenues(ConditionMenues menues) throws CometException, InvalidSessionException
Sets condition menues.- Parameters:
menues- the menues- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
setConditions
void setConditions(Conditions conditions) throws CometException, InvalidSessionException
Sets conditions.- Parameters:
conditions- the conditions- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
setDataFiles
void setDataFiles(DataFiles datafiles) throws CometException, InvalidSessionException
Sets data files.- Parameters:
datafiles- the datafiles- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
setDomains
void setDomains(Domains domains) throws CometException, InvalidSessionException
Sets domains.- Parameters:
domains- the domains- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
setFindStatements
void setFindStatements(FindStatements findStatements) throws CometException, InvalidSessionException
Sets find statements.- Parameters:
findStatements- the find statements- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
setFrameRules
void setFrameRules(FrameRules frameRules) throws CometException, InvalidSessionException
Sets frame rules.- Parameters:
frameRules- the frame rules- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
setGrids
void setGrids(Grids grids) throws CometException, InvalidSessionException
Sets grids.- Parameters:
grids- the grids- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
setGridTypes
void setGridTypes(GridTypes gridTypes) throws CometException, InvalidSessionException
Sets grid types.- Parameters:
gridTypes- the grid types- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
setPageItems
void setPageItems(PageItems pageItems) throws CometException, InvalidSessionException
Sets page items.- Parameters:
pageItems- the page items- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
setPageItemStates
void setPageItemStates(PageItemStates pageItemStates) throws CometException, InvalidSessionException
Sets page item states.- Parameters:
pageItemStates- the page item states- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
setPageItemTypes
void setPageItemTypes(PageItemTypes pageItemTypes) throws CometException, InvalidSessionException
Sets page item types.- Parameters:
pageItemTypes- the page item types- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
setPageTemplates
void setPageTemplates(PageTemplates pageTemplates) throws CometException, InvalidSessionException
Sets page templates.- Parameters:
pageTemplates- the page templates- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
setPanelStatements
void setPanelStatements(PanelStatements panelstatements) throws CometException, InvalidSessionException
Sets panel statements.- Parameters:
panelstatements- the panelstatements- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
setPlaceholderGroups
void setPlaceholderGroups(PlaceholderGroups groups) throws CometException, InvalidSessionException
Sets placeholder groups.- Parameters:
groups- the groups- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
setPlaceholderVariants
void setPlaceholderVariants(PlaceholderVariants variants) throws CometException, InvalidSessionException
Sets (persists) the placeholder variants configuration
- Parameters:
variants- the variants to set- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
setPlaceholders
void setPlaceholders(Placeholders placeholders) throws CometException, InvalidSessionException
Sets placeholders.- Parameters:
placeholders- the placeholders- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
setPreviewStatements
void setPreviewStatements(PreviewStatements previewStatements) throws CometException, InvalidSessionException
Sets preview statements.- Parameters:
previewStatements- the preview statements- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
setRelatedTos
void setRelatedTos(RelatedTos relatedTos) throws CometException, InvalidSessionException
Sets related tos.- Parameters:
relatedTos- the related tos- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
setSessionAttribute
void setSessionAttribute(java.lang.String key, java.lang.Object object) throws CometException, InvalidSessionExceptionSet the session attribute- Parameters:
key- the keyobject- the object- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
setSessionMode
void setSessionMode(CometBridgeRemote.SessionMode mode) throws CometException, InvalidSessionException
Set the mode for this session. See description above for the different session modes.- Parameters:
mode- the mode- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
setXEntities
void setXEntities(XEntities xentities) throws CometException, InvalidSessionException
Sets x entities.- Parameters:
xentities- the xentities- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
setXIndexes
void setXIndexes(XIndexes xindexes) throws CometException, InvalidSessionException
Sets x indexes.- Parameters:
xindexes- the xindexes- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
loginFromRemote
java.lang.String loginFromRemote(java.lang.String login, java.lang.String passwd, java.lang.String projectIdentifier, java.lang.String language) throws CometExceptionLogin from remote string.- Parameters:
login- the loginpasswd- the passwdprojectIdentifier- the project identifierlanguage- the language- Returns:
- the string
- Throws:
CometException- the comet exception
-
validateUser
void validateUser(java.lang.String sessionId, java.lang.String login, java.lang.String projectIdentifier) throws CometExceptionChecks whether the user is assigned to the project. If not throws CometException
- Parameters:
sessionId- the session idlogin- the loginprojectIdentifier- name of the configuration, such as "demo"- Throws:
CometException- the comet exception
-
setSessionProperties
void setSessionProperties(java.lang.String sessionId, java.lang.String login, java.lang.String passwd, java.lang.String projectIdentifier, java.lang.String language, boolean initSessionInfo) throws CometException, InvalidSessionExceptionSets session properties.- Parameters:
sessionId- the session idlogin- the loginpasswd- the passwdprojectIdentifier- the project identifierlanguage- the languageinitSessionInfo- the init session info- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getScriptIdByName
int getScriptIdByName(java.lang.String scriptName, java.lang.Class<? extends CometScript> scriptClass) throws CometException, InvalidSessionExceptionGets the ID of a script by it's class and name (label).
Gets the ID of a script by it's class and name (label).
If such a script cannot be found, 0 is returned.- Parameters:
scriptName- the script namescriptClass- the script class- Returns:
- the script ID or 0, if such a script cannot be found.
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getLinkScriptId
int getLinkScriptId(java.lang.String scriptName) throws CometException, InvalidSessionExceptionGets the ID of a CometPreviewLinkScript by it's name.
Gets the ID of a CometPreviewLinkScript by it's name.
This is equivalent forgetScriptByName (scriptName, CometLinkScript.class);- Parameters:
scriptName- the script name- Returns:
- the ID of this CometPreviewLinkScript or 0, if it cannot be found.
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getPluginCScriptLibrary
byte[] getPluginCScriptLibrary(java.lang.String pluginName) throws CometException, InvalidSessionExceptionGet plugin cscript client stub.- Parameters:
pluginName- the plugin name- Returns:
- byte []
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getPluginCScriptLibrary
byte[] getPluginCScriptLibrary(java.lang.String pluginName, ConfigurationData.FileID fileID) throws CometException, InvalidSessionExceptionGet plugin cscript or python client stub. The generation style is determined from the fileID, e.g. for PLUGIN_LIBRARY, cscript stub code is generated, for PLUGIN_PYTHON_LIBRARY Python code is generated.- Parameters:
pluginName- the plugin namefileID- the ID of the file, such as PLUGIN_LIBRARY, PLUGIN_PYTHON_LIBRARY- Returns:
- byte []
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getPluginCScriptHeader
byte[] getPluginCScriptHeader(java.lang.String pluginName) throws CometException, InvalidSessionExceptionGet plugin c script header byte [ ].- Parameters:
pluginName- the plugin name- Returns:
- byte [ ]
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getAllCScriptIncludes
byte[] getAllCScriptIncludes() throws CometException, InvalidSessionExceptionGet all c script includes byte [ ].- Returns:
- byte [ ]
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getAllCScriptHeaders
byte[] getAllCScriptHeaders() throws CometException, InvalidSessionExceptionGet all c script headers byte [ ].- Returns:
- byte [ ]
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getProjectClientName
java.lang.String getProjectClientName(java.lang.String sessionID, java.lang.String projectIdentifier) throws CometExceptionGets project client name.- Parameters:
sessionID- the session idprojectIdentifier- the project identifier- Returns:
- the project client name
- Throws:
CometException- the comet exception
-
getProjectModelIdentifier
java.lang.String getProjectModelIdentifier(java.lang.String sessionID, java.lang.String projectIdentifier) throws CometExceptionGets project model identifier.- Parameters:
sessionID- the session idprojectIdentifier- the project identifier- Returns:
- the project model identifier
- Throws:
CometException- the comet exception
-
loginLocalFromPriintSuite
java.lang.String loginLocalFromPriintSuite(java.lang.String login, java.lang.String token, java.lang.String projectIdentifier, java.lang.String language) throws CometExceptionLogin local from priint suite string.- Parameters:
login- the logintoken- the tokenprojectIdentifier- the project identifierlanguage- the language- Returns:
- the string
- Throws:
CometException- the comet exception
-
setSessionMode
void setSessionMode(java.lang.String sessionId, CometBridgeRemote.SessionMode mode) throws CometException, InvalidSessionExceptionSets session mode.- Parameters:
sessionId- the session idmode- the mode- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getInclude
byte[] getInclude(java.lang.String includePath) throws CometException, InvalidSessionExceptionGet include byte [ ].- Parameters:
includePath- the include path- Returns:
- the byte [ ]
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getJavaPluginIncludes
java.util.List<java.lang.String> getJavaPluginIncludes() throws CometException, InvalidSessionExceptionGets java plugin includes.- Returns:
- the java plugin includes
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getLibraryIncludes
java.util.List<java.lang.String> getLibraryIncludes() throws CometException, InvalidSessionExceptionGets library includes.- Returns:
- the library includes
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getJavaPluginHeaders
java.util.List<java.lang.String> getJavaPluginHeaders() throws CometException, InvalidSessionExceptionGets java plugin headers.- Returns:
- the java plugin headers
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
setSessionProject
void setSessionProject(java.lang.String projectIdentifier) throws InvalidSessionExceptionSets session project.- Parameters:
projectIdentifier- the project identifier- Throws:
InvalidSessionException- the invalid session exception
-
setSessionClient
void setSessionClient(java.lang.String client) throws InvalidSessionExceptionSets session client.- Parameters:
client- the client- Throws:
InvalidSessionException- the invalid session exception
-
includeExists
boolean includeExists(java.lang.String includePath) throws CometException, InvalidSessionExceptionInclude exists boolean.- Parameters:
includePath- the include path- Returns:
- the boolean
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getProductDataMapping
ProductDataMapping getProductDataMapping() throws CometException, InvalidSessionException
Gets product data mapping.- Returns:
- the product data mapping
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getEntityResultFilter
EntityResultFilter getEntityResultFilter() throws CometException, InvalidSessionException
Gets entity result filter.- Returns:
- the entity result filter
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getAvailableSearchMethods
java.util.List<CometSearchMethod> getAvailableSearchMethods(java.lang.String client, java.lang.String projectIdentifier) throws CometException, InvalidSessionException
Gets available search methods.- Parameters:
client- the clientprojectIdentifier- the project identifier- Returns:
- the available search methods
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getUiFallbackLanguage
java.lang.String getUiFallbackLanguage()
Gets ui fallback language.- Returns:
- the ui fallback language
-
readSnippetData
byte[] readSnippetData(java.lang.String fileId) throws CometExceptionRead snippet data byte [ ].- Parameters:
fileId- the file id- Returns:
- the byte [ ]
- Throws:
CometException- the comet exception
-
readSnippetPreview
byte[] readSnippetPreview(java.lang.String fileId) throws CometExceptionRead snippet preview byte [ ].- Parameters:
fileId- the file id- Returns:
- the byte [ ]
- Throws:
CometException- the comet exception
-
readSnippetPreviewById
byte[] readSnippetPreviewById(int snippetId) throws CometExceptionRead snippet preview by id byte [ ].- Parameters:
snippetId- the snippet id- Returns:
- the byte [ ]
- Throws:
CometException- the comet exception
-
getTranslations
TranslationsUnit getTranslations() throws CometException
Gets translations for the current session- Returns:
- translations for this session / UI language
- Throws:
CometException
-
-