Interface CometConfigurationLocal
-
public interface CometConfigurationLocalThe Interface CometConfigurationLocal.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringENV_PLACEHOLDER_PROPERTYThe Constant ENV_PLACEHOLDER_PROPERTY SESSION_PREFIX + "placeholder"static java.lang.StringENV_SUBJECT_PROPERTYThe Constant ENV_SUBJECT_PROPERTY SESSION_PREFIX + "subject"static java.lang.StringINDEX_FILENAMEThe Constant INDEX_FILENAME "index.xml"static java.lang.StringJNDINAMEThe Constant JNDINAME "java:global/CometConfiguration/CometConfiguration!com.priint.pubserver.comet.config.CometConfigurationLocal".static java.lang.StringMAPPED_NAMEThe mapped name of the CometConfiguration Pluginstatic java.lang.StringNAME_SEPARATORThe Constant NAME_SEPARATOR "-"static java.lang.StringPROJECT_FILENAMEThe Constant PROJECT_FILENAME "cometproject.xml"static java.lang.StringSESSION_CLIENT_PROPERTYThe Constant SESSION_CLIENT_PROPERTY SESSION_PREFIX + "client"static java.lang.StringSESSION_LANGUAGE_PROPERTYThe Constant SESSION_LANGUAGE_PROPERTY SESSION_PREFIX + "language"static java.lang.StringSESSION_PREFIXThe Constant SESSION_PREFIX "cometConfiguration::".static java.lang.StringSESSION_PROJECT_PROPERTYThe Constant SESSION_PROJECT_PROPERTY SESSION_PREFIX + "project"static java.lang.StringSESSION_REGION_PROPERTYThe Constant SESSION_REGION_PROPERTY SESSION_PREFIX + "region"static java.lang.StringSESSION_UI_LANGUAGE_PROPERTYThe Constant SESSION_UI_LANGUAGE_PROPERTY SESSION_PREFIX + "ui_language"
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidaddDependency(PluginConfigDataHandler container, PluginConfigDataHandler dependentItem, PluginConfigDependencyRestriction restriction)Add a dependency to a configuration item.CheckResultcheckCScriptSyntax(java.lang.String projectIdentifier)Check CScript syntax This is a PluginMethod.MethodType.CONFIGURATION_COMET_PROJECT_CHECK method intended to be run e.g.CheckResultcheckForBrokenDependencies(java.lang.String projectIdentifier)Check for broken dependencies in a comet project repository.
This is a PluginMethod.MethodType.CONFIGURATION_CHECK method intended to be run e.g.CheckResultcheckForDuplicateIDs(java.lang.String projectIdentifier)Check for duplicate IDs in a comet project repository.
This is a PluginMethod.MethodType.CONFIGURATION_CHECK method intended to be run e.g.CheckResultcheckForNotConnectorCheckCometProject(java.lang.String projectIdentifier)Check for not connector check comet project.CheckResultcheckForNotcScriptExampleCometProject(java.lang.String projectIdentifier)Check for notc script example comet project.CheckResultcheckForNotDataProviderCometProject(java.lang.String projectIdentifier)Check for not data provider comet project.CheckResultcheckForNotExistingEntityModelForCometProject(java.lang.String projectIdentifier)Check for not existing entity model for comet project.CheckResultcheckForNotExistingPanelActionLabelCometProject(java.lang.String projectIdentifier)Check for not existing panel action label comet project.CheckResultcheckForNotExistingPanelActionStatementCometProject(java.lang.String projectIdentifier)Check for not existing panel action statement comet project.CheckResultcheckForNotExistingPlaceholderDataProviderSelectionCheckCometProject(java.lang.String projectIdentifier)Check for not existing placeholder data provider selection check comet project.CheckResultcheckForNotPlaceholderDataMappingMethodCometProject(java.lang.String projectIdentifier)Check for not placeholder data mapping method comet project.CheckResultcheckForNotPlaceholderDataQueryMethodCometProject(java.lang.String projectIdentifier)Check for not placeholder data query method comet project.CheckResultcheckForNotPlaceholderEntityCometProject(java.lang.String projectIdentifier)Check for not placeholder entity comet project.CheckResultcheckTypeIntegrity(java.lang.String projectIdentifier)Check for type integrity, i.e., if all required dependent files for certain types exist, if all type or field constraints are fulfilled etc.
This is a PluginMethod.MethodType.CONFIGURATION_CHECK method intended to be run e.g.java.lang.StringcreateAnonymousSession(java.lang.String name, long maxIdleTimeInMillis)Create a new and anonymous session.PluginConfigDataHandlercreateOrUpdateConfig(PluginConfigDataHandler container)Creates or updates a configurationvoidcreateOrUpdateConfigList(java.util.List<PluginConfigDataHandler> items)Creates the or update config list.voiddeleteCometConfiguration(java.lang.String projectIdentifier)Delete comet configuration.java.lang.StringduplicateCometConfiguration(java.lang.String values)Deprecated.java.lang.StringduplicateCometConfiguration(java.lang.String sourceProject, java.lang.String newIdentifier, java.lang.String newLabel, java.lang.String newClient, java.lang.String newDescription)Duplicate comet configuration.voidendTransaction()End transaction mode and persist all modifications.booleanexistsInRepository(PluginConfigDataHandler container)Check, if an item already exists in the repository.
This will return false for items only existing in current transactions and not persisted yet.<T extends CometEntity>
PluginConfigDataHandlerfindByIdAndClass(int id, java.lang.Class<T> containerClass)Finds a particular configurationjava.lang.StringgetAbsoluteContainerPath(PluginConfigDataHandler item)Get the repository path for a particular item.
Returns the absolute path respecting all client and project hierarchy.java.lang.StringgetAbsolutePath(java.lang.String relativePath)Gets the absolute path.java.lang.StringgetConfigPath(java.lang.String relativePath)Calculates the absolute configuration path for a given session and relative path.
This is the root directory of the current Comet configuration.<T extends CometEntity>
java.util.List<PluginConfigDataHandler>getDependentItems(PluginConfigDataHandler container, java.lang.Class<T> clazz)Get dependent configuration items of a specific class.<T extends CometEntity>
PluginConfigDataHandlergetItem(java.lang.String uri, java.lang.Class<T> clazz)Gets a single item of a specific class and URI<T extends CometEntity>
java.util.List<PluginConfigDataHandler>getItems(java.lang.Class<T> clazz)Gets items of a specific classintgetNewId(int externId, java.lang.Class<?> clazz)Gets a new unique ID.CometProjectgetProject(java.lang.String projectName)Get a CometProject identified by the given name.java.util.Set<java.lang.String>getRegisteredCometProjects()Get the list of comet project registered on startup or created / imported on runtime.java.lang.StringgetSessionLanguage()Get the language (if set) for the current session.CometProjectgetSessionProject()Get the CometProject for the current session.java.lang.StringgetSessionRegion()Get the region resp.booleanisTransactionActive()Tell, whether a transaction is currently active or not.java.lang.Stringlogin(java.lang.String user, java.lang.String password)Start a CometConfiguration session.voidloginPreCheck()Login pre check.voidlogout()Stop a CometConfiguration session.voidremoveConfig(PluginConfigDataHandler container)Delete a configuration item.voidrepairAddBackwardDependency(java.lang.String path, java.lang.String dependencyName)Repair add backward dependency.voidrepairAddConfigToIndex(java.lang.String path)Repair add config to index.voidrepairAddIndexToProject(java.lang.String path)Repair add index to project.voidrepairChangeDependencyRestriction(java.lang.String path, java.lang.String dependencyName, java.lang.String restriction)Repair change dependency restriction.voidrepairChangeFieldIdValue(java.lang.String configPath, java.lang.String fieldName, java.lang.String oldValue)Repair change field id value.voidrepairDeleteDependency(java.lang.String path, java.lang.String dependencyName)Repair delete dependency.voidrepairDeleteOrphanedChildOrTwin(java.lang.String path)Repair delete orphaned child or twin.voidrepairRecreateWithNewId(java.lang.String configPath, java.lang.String fieldName)Repair recreate with new id.voidresetApplication()Reset the applicationvoidsetSessionContext(java.lang.String client, java.lang.String project, java.lang.String language, java.lang.String region)Set the context of this session.voidsetSessionContext4LoginLocal(java.lang.String sessionId, java.lang.String client, java.lang.String project, java.lang.String language, java.lang.String region)Sets the session context 4 login local.voidstartTransaction()Start transaction mode.
-
-
-
Field Detail
-
JNDINAME
static final java.lang.String JNDINAME
The Constant JNDINAME "java:global/CometConfiguration/CometConfiguration!com.priint.pubserver.comet.config.CometConfigurationLocal".- See Also:
- Constant Field Values
-
MAPPED_NAME
static final java.lang.String MAPPED_NAME
The mapped name of the CometConfiguration Plugin
Use this name when requesting a Plugin instance from the PluginManager
.- See Also:
- Constant Field Values
-
SESSION_PREFIX
static final java.lang.String SESSION_PREFIX
The Constant SESSION_PREFIX "cometConfiguration::".- See Also:
- Constant Field Values
-
SESSION_CLIENT_PROPERTY
static final java.lang.String SESSION_CLIENT_PROPERTY
The Constant SESSION_CLIENT_PROPERTY SESSION_PREFIX + "client"- See Also:
- Constant Field Values
-
SESSION_PROJECT_PROPERTY
static final java.lang.String SESSION_PROJECT_PROPERTY
The Constant SESSION_PROJECT_PROPERTY SESSION_PREFIX + "project"- See Also:
- Constant Field Values
-
SESSION_LANGUAGE_PROPERTY
static final java.lang.String SESSION_LANGUAGE_PROPERTY
The Constant SESSION_LANGUAGE_PROPERTY SESSION_PREFIX + "language"- See Also:
- Constant Field Values
-
SESSION_UI_LANGUAGE_PROPERTY
static final java.lang.String SESSION_UI_LANGUAGE_PROPERTY
The Constant SESSION_UI_LANGUAGE_PROPERTY SESSION_PREFIX + "ui_language"- See Also:
- Constant Field Values
-
SESSION_REGION_PROPERTY
static final java.lang.String SESSION_REGION_PROPERTY
The Constant SESSION_REGION_PROPERTY SESSION_PREFIX + "region"- See Also:
- Constant Field Values
-
ENV_PLACEHOLDER_PROPERTY
static final java.lang.String ENV_PLACEHOLDER_PROPERTY
The Constant ENV_PLACEHOLDER_PROPERTY SESSION_PREFIX + "placeholder"- See Also:
- Constant Field Values
-
ENV_SUBJECT_PROPERTY
static final java.lang.String ENV_SUBJECT_PROPERTY
The Constant ENV_SUBJECT_PROPERTY SESSION_PREFIX + "subject"- See Also:
- Constant Field Values
-
PROJECT_FILENAME
static final java.lang.String PROJECT_FILENAME
The Constant PROJECT_FILENAME "cometproject.xml"- See Also:
- Constant Field Values
-
INDEX_FILENAME
static final java.lang.String INDEX_FILENAME
The Constant INDEX_FILENAME "index.xml"- See Also:
- Constant Field Values
-
NAME_SEPARATOR
static final java.lang.String NAME_SEPARATOR
The Constant NAME_SEPARATOR "-"- 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
-
addDependency
void addDependency(PluginConfigDataHandler container, PluginConfigDataHandler dependentItem, PluginConfigDependencyRestriction restriction) throws CometException, InvalidSessionException
Add a dependency to a configuration item.
If this particular dependency already exists, nothing will happen. If this dependency does not yet exist, it will be added and persisted (i.e. saved to the repository)
- Parameters:
container- the containerdependentItem- the dependent itemrestriction- the restriction- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
checkForBrokenDependencies
CheckResult checkForBrokenDependencies(java.lang.String projectIdentifier) throws CometException, InvalidSessionException
Check for broken dependencies in a comet project repository.
This is a PluginMethod.MethodType.CONFIGURATION_CHECK method intended to be run e.g. from the Ison client "Check rules" view.
- Parameters:
projectIdentifier- the project identifier- Returns:
- CheckResult
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
checkForDuplicateIDs
CheckResult checkForDuplicateIDs(java.lang.String projectIdentifier) throws CometException, InvalidSessionException
Check for duplicate IDs in a comet project repository.
This is a PluginMethod.MethodType.CONFIGURATION_CHECK method intended to be run e.g. from the Ison client "Check rules" view.- Parameters:
projectIdentifier- the project identifier- Returns:
- CheckResult
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
checkTypeIntegrity
CheckResult checkTypeIntegrity(java.lang.String projectIdentifier) throws CometException, InvalidSessionException
Check for type integrity, i.e., if all required dependent files for certain types exist, if all type or field constraints are fulfilled etc.
This is a PluginMethod.MethodType.CONFIGURATION_CHECK method intended to be run e.g. from the Ison client "Check rules" view.
- Parameters:
projectIdentifier- the project identifier- Returns:
- CheckResult
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
checkCScriptSyntax
CheckResult checkCScriptSyntax(java.lang.String projectIdentifier) throws CometException, InvalidSessionException
Check CScript syntax This is a PluginMethod.MethodType.CONFIGURATION_COMET_PROJECT_CHECK method intended to be run e.g. from the PRIINT Suite Validation Panel
- Parameters:
projectIdentifier- the project identifier- Returns:
- CheckResult
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
createOrUpdateConfig
PluginConfigDataHandler createOrUpdateConfig(PluginConfigDataHandler container) throws CometException, InvalidSessionException
Creates or updates a configuration
.- Parameters:
container- the container- Returns:
- the updated configuration
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
endTransaction
void endTransaction() throws CometException, InvalidSessionExceptionEnd transaction mode and persist all modifications. If currently no transaction is active, an Exception will be raised.
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
existsInRepository
boolean existsInRepository(PluginConfigDataHandler container) throws CometException, InvalidSessionException
Check, if an item already exists in the repository.
This will return false for items only existing in current transactions and not persisted yet. The method also returns false for items, that have been deleted.- Parameters:
container- the container- Returns:
- true, if item exists AND is alive
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
findByIdAndClass
<T extends CometEntity> PluginConfigDataHandler findByIdAndClass(int id, java.lang.Class<T> containerClass) throws CometException, InvalidSessionException
Finds a particular configuration
.- Type Parameters:
T- the generic type- Parameters:
id- the idcontainerClass- the container class- Returns:
- the configuration item or null, if not found
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getAbsoluteContainerPath
java.lang.String getAbsoluteContainerPath(PluginConfigDataHandler item) throws CometException, InvalidSessionException
Get the repository path for a particular item.
Returns the absolute path respecting all client and project hierarchy.Usually there is no need to call this method, because the following code should give the same result:
PluginConfigDataHandler handler; String path = handler.getProperties().getPath();However, if the configuration properties are incomplete or not existing (e.g. if you just created a new configuration), the path for this item can be calculated - provided that this is a valid configuration item within the Comet repository.- Parameters:
item- the item- Returns:
- absolute path of this configuration item
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getConfigPath
java.lang.String getConfigPath(java.lang.String relativePath) throws CometException, InvalidSessionExceptionCalculates the absolute configuration path for a given session and relative path.
This is the root directory of the current Comet configuration. The path depends on the client and Comet project choosen for this session.- Parameters:
relativePath- the relative path- Returns:
- configuration root for this session
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getDependentItems
<T extends CometEntity> java.util.List<PluginConfigDataHandler> getDependentItems(PluginConfigDataHandler container, java.lang.Class<T> clazz) throws CometException, InvalidSessionException
Get dependent configuration items of a specific class.
- Type Parameters:
T- the generic type- Parameters:
container- the containerclazz- the clazz- Returns:
- dependent items of a specific class
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getItem
<T extends CometEntity> PluginConfigDataHandler getItem(java.lang.String uri, java.lang.Class<T> clazz) throws CometException, InvalidSessionException
Gets a single item of a specific class and URI
.- Type Parameters:
T- the generic type- Parameters:
uri- the uriclazz-- Returns:
- the configuration of this class stored at the given URI.
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getItems
<T extends CometEntity> java.util.List<PluginConfigDataHandler> getItems(java.lang.Class<T> clazz) throws CometException, InvalidSessionException
Gets items of a specific class
.- Type Parameters:
T- the generic type- Parameters:
clazz- the clazz- Returns:
- configuration items of the given class
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getNewId
int getNewId(int externId, java.lang.Class<?> clazz) throws CometException, InvalidSessionExceptionGets a new unique ID.
- Parameters:
externId- the extern idclazz- the clazz- Returns:
- a new, unique ID
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getProject
CometProject getProject(java.lang.String projectName) throws CometException, InvalidSessionException
Get a CometProject identified by the given name. If this project does not exist, an Exception is thrown.
The CometProject provides information such as client name, entity model etc.- Parameters:
projectName- the project name- Returns:
- the comet project
- Throws:
CometException- if no such project existsInvalidSessionException- the invalid session exception
-
getRegisteredCometProjects
java.util.Set<java.lang.String> getRegisteredCometProjects() throws CometException, InvalidSessionExceptionGet the list of comet project registered on startup or created / imported on runtime.
- Returns:
- list (set) of comet projects
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getSessionLanguage
java.lang.String getSessionLanguage() throws CometException, InvalidSessionExceptionGet the language (if set) for the current session.
- Returns:
- language for this session
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getSessionProject
CometProject getSessionProject() throws CometException, InvalidSessionException
Get the CometProject for the current session.
- Returns:
- CometProject for the current session
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getSessionRegion
java.lang.String getSessionRegion() throws CometException, InvalidSessionExceptionGet the region resp. country for the current session
- Returns:
- region / country for this session
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
isTransactionActive
boolean isTransactionActive() throws CometException, InvalidSessionExceptionTell, whether a transaction is currently active or not.
- Returns:
- true, if a transaction is active, false if not.
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
login
java.lang.String login(java.lang.String user, java.lang.String password) throws CometExceptionStart a CometConfiguration session. This is just a shortcut for the SessionManagerRemote.login() method in the PubServerKernel, in case you write applications on top of the CometConfiguration EJB and you don't want to setup another EJB client just to call the login method from SessionManager
- Parameters:
user- the userpassword- the password- Returns:
- sessionId, if login succeeds
- Throws:
CometException- if login fails
-
logout
void logout() throws CometException, InvalidSessionExceptionStop a CometConfiguration session. This is just a shortcut for the SessionManagerRemote.logout() method in the PubServerKernel, in case you write applications on top of the CometConfiguration EJB and you don't want to setup another EJB client just to call the logout method from SessionManager
- Throws:
CometException- if logout fails (e.g. no such session)InvalidSessionException- the invalid session exception
-
removeConfig
void removeConfig(PluginConfigDataHandler container) throws CometException, InvalidSessionException
Delete a configuration item.
- Parameters:
container- the container- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
repairAddBackwardDependency
void repairAddBackwardDependency(java.lang.String path, java.lang.String dependencyName) throws CometException, InvalidSessionExceptionRepair add backward dependency.- Parameters:
path- the pathdependencyName- the dependency name- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
repairAddConfigToIndex
void repairAddConfigToIndex(java.lang.String path) throws CometException, InvalidSessionExceptionRepair add config to index.- Parameters:
path- the path- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
repairAddIndexToProject
void repairAddIndexToProject(java.lang.String path) throws CometException, InvalidSessionExceptionRepair add index to project.- Parameters:
path- the path- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
repairChangeDependencyRestriction
void repairChangeDependencyRestriction(java.lang.String path, java.lang.String dependencyName, java.lang.String restriction) throws CometException, InvalidSessionExceptionRepair change dependency restriction.- Parameters:
path- the pathdependencyName- the dependency namerestriction- the restriction- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
repairChangeFieldIdValue
void repairChangeFieldIdValue(java.lang.String configPath, java.lang.String fieldName, java.lang.String oldValue) throws CometException, InvalidSessionExceptionRepair change field id value.- Parameters:
configPath- the config pathfieldName- the field nameoldValue- the old value- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
repairDeleteDependency
void repairDeleteDependency(java.lang.String path, java.lang.String dependencyName) throws CometException, InvalidSessionExceptionRepair delete dependency.- Parameters:
path- the pathdependencyName- the dependency name- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
repairDeleteOrphanedChildOrTwin
void repairDeleteOrphanedChildOrTwin(java.lang.String path) throws CometException, InvalidSessionExceptionRepair delete orphaned child or twin.- Parameters:
path- the path- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
repairRecreateWithNewId
void repairRecreateWithNewId(java.lang.String configPath, java.lang.String fieldName) throws CometException, InvalidSessionExceptionRepair recreate with new id.- Parameters:
configPath- the config pathfieldName- the field name- 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
-
setSessionContext
void setSessionContext(java.lang.String client, java.lang.String project, java.lang.String language, java.lang.String region) throws CometException, InvalidSessionExceptionSet the context of this session.- client defaults to "Default"
- project is an arbitrary string
- Parameters:
client- the clientproject- the projectlanguage- the languageregion- the region- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
startTransaction
void startTransaction() throws CometException, InvalidSessionExceptionStart transaction mode. In transaction mode all modifications will be cached (rather than persisted in the repository).
Only one transaction can be active per session at the time, if transaction mode is already active, an Exception will be raised.- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
duplicateCometConfiguration
@Deprecated java.lang.String duplicateCometConfiguration(java.lang.String values) throws CometException, InvalidSessionExceptionDeprecated.Duplicate comet configuration.- Parameters:
values- the values- Returns:
- the string
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
duplicateCometConfiguration
java.lang.String duplicateCometConfiguration(java.lang.String sourceProject, java.lang.String newIdentifier, java.lang.String newLabel, java.lang.String newClient, java.lang.String newDescription) throws CometException, InvalidSessionExceptionDuplicate comet configuration.- Parameters:
sourceProject- the source projectnewIdentifier- the new identifiernewLabel- the new labelnewClient- the new clientnewDescription- the new description- Returns:
- the string
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
deleteCometConfiguration
void deleteCometConfiguration(java.lang.String projectIdentifier) throws CometException, InvalidSessionExceptionDelete comet configuration.- Parameters:
projectIdentifier- the project identifier- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
checkForNotExistingEntityModelForCometProject
CheckResult checkForNotExistingEntityModelForCometProject(java.lang.String projectIdentifier) throws CometException, InvalidSessionException
Check for not existing entity model for comet project.- Parameters:
projectIdentifier- the project identifier- Returns:
- the check result
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
checkForNotExistingPanelActionLabelCometProject
CheckResult checkForNotExistingPanelActionLabelCometProject(java.lang.String projectIdentifier) throws CometException, InvalidSessionException
Check for not existing panel action label comet project.- Parameters:
projectIdentifier- the project identifier- Returns:
- the check result
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
checkForNotExistingPanelActionStatementCometProject
CheckResult checkForNotExistingPanelActionStatementCometProject(java.lang.String projectIdentifier) throws CometException, InvalidSessionException
Check for not existing panel action statement comet project.- Parameters:
projectIdentifier- the project identifier- Returns:
- the check result
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
checkForNotExistingPlaceholderDataProviderSelectionCheckCometProject
CheckResult checkForNotExistingPlaceholderDataProviderSelectionCheckCometProject(java.lang.String projectIdentifier) throws CometException, InvalidSessionException
Check for not existing placeholder data provider selection check comet project.- Parameters:
projectIdentifier- the project identifier- Returns:
- the check result
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
checkForNotPlaceholderEntityCometProject
CheckResult checkForNotPlaceholderEntityCometProject(java.lang.String projectIdentifier) throws CometException, InvalidSessionException
Check for not placeholder entity comet project.- Parameters:
projectIdentifier- the project identifier- Returns:
- the check result
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
checkForNotPlaceholderDataQueryMethodCometProject
CheckResult checkForNotPlaceholderDataQueryMethodCometProject(java.lang.String projectIdentifier) throws CometException, InvalidSessionException
Check for not placeholder data query method comet project.- Parameters:
projectIdentifier- the project identifier- Returns:
- the check result
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
checkForNotPlaceholderDataMappingMethodCometProject
CheckResult checkForNotPlaceholderDataMappingMethodCometProject(java.lang.String projectIdentifier) throws CometException, InvalidSessionException
Check for not placeholder data mapping method comet project.- Parameters:
projectIdentifier- the project identifier- Returns:
- the check result
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
checkForNotcScriptExampleCometProject
CheckResult checkForNotcScriptExampleCometProject(java.lang.String projectIdentifier) throws CometException, InvalidSessionException
Check for notc script example comet project.- Parameters:
projectIdentifier- the project identifier- Returns:
- the check result
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
checkForNotConnectorCheckCometProject
CheckResult checkForNotConnectorCheckCometProject(java.lang.String projectIdentifier) throws CometException, InvalidSessionException
Check for not connector check comet project.- Parameters:
projectIdentifier- the project identifier- Returns:
- the check result
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
checkForNotDataProviderCometProject
CheckResult checkForNotDataProviderCometProject(java.lang.String projectIdentifier) throws CometException, InvalidSessionException
Check for not data provider comet project.- Parameters:
projectIdentifier- the project identifier- Returns:
- the check result
- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
loginPreCheck
void loginPreCheck()
Login pre check.
-
createOrUpdateConfigList
void createOrUpdateConfigList(java.util.List<PluginConfigDataHandler> items) throws CometException, InvalidSessionException
Creates the or update config list.- Parameters:
items- the items- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
setSessionContext4LoginLocal
void setSessionContext4LoginLocal(java.lang.String sessionId, java.lang.String client, java.lang.String project, java.lang.String language, java.lang.String region) throws CometException, InvalidSessionExceptionSets the session context 4 login local.- Parameters:
sessionId- the session idclient- the clientproject- the projectlanguage- the languageregion- the region- Throws:
CometException- the comet exceptionInvalidSessionException- the invalid session exception
-
getAbsolutePath
java.lang.String getAbsolutePath(java.lang.String relativePath) throws InvalidSessionExceptionGets the absolute path.- Parameters:
relativePath- the relative path- Returns:
- the absolute path
- Throws:
InvalidSessionException- the invalid session exception
-
-