Interface MTRepositoryConnection
- All Superinterfaces:
MTConnection
- All Known Subinterfaces:
MTLocalRepositoryConnection,MTServerRepositoryConnection
Connection to a MT repository.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddPropertyChangeListener(String property, PropertyChangeListener l) booleandelete()Deletes the repository.booleangetBooleanProperty(String key, boolean defaultValue) Returns the creation time of the repository.intgetIntegerProperty(String key, int defaultValue) Returns the time the repository was last modified.intReturns the number of models in the repository.getName()Returns the name of the repository.Returns the repository ID.Returns the repository UUID.Returns the directory where settings for the repository should be stored.Returns the status of the repository.getStringProperty(String key) Gets the current workspace ID.booleanReturns true if the repository is updated to the current version.booleanReturns true if the repository is a template.removeProperty(String key) voidvoidremovePropertyChangeListener(String property, PropertyChangeListener l) booleanRenames the repository.voidsetBooleanProperty(String key, boolean value) voidsetIntegerProperty(String key, int value) voidsetProgress(Double progress) voidvoidsetStringProperty(String key, String value) voidsetTemplate(boolean template) Set templatevoidsetWorkspaceID(Long workspaceID) Sets the workspace to connect to, or null if not connected to a workspace.voidStores properties that should be set for a newly created repository.voidUpdates the repository to the current version if possible.voidChecks the current workspace in the store against the one set on the connection and updates the store if necessary.Methods inherited from interface se.conciliate.extensions.store.connection.MTConnection
close, getDataSource, isOpen, isServerConnection, open
-
Field Details
-
KEY_PUBLISH_PREVIOUS_PATH_EXCEL
- See Also:
-
KEY_PUBLISH_PREVIOUS_PATH_RTF
- See Also:
-
KEY_PUBLISH_START_MODEL
- See Also:
-
KEY_PUBLISH_TYPE
- See Also:
-
KEY_PUBLISH_EXCEL_SUMMARY_ONLY
- See Also:
-
KEY_PUBLISH_EXCEL_EXTENDED_SUMMARY
- See Also:
-
KEY_OPENED_MODELS
- See Also:
-
KEY_CREATED
- See Also:
-
KEY_LAST_MODIFIED
- See Also:
-
KEY_MODEL_COUNT
- See Also:
-
KEY_PUBLISH_RTF_FLOW_SORT
- See Also:
-
KEY_PUBLISH_RTF_INCLUDE_ROLES
- See Also:
-
KEY_PUBLISH_RTF_FLOW_SORT_TYPE
- See Also:
-
KEY_DEFAULT_LANGUAGE
- See Also:
-
KEY_HAS_CHECKED_DEFAULT_PROFILES
- See Also:
-
KEY_DATABASE_VERSION
- See Also:
-
KEY_RECENT_MODELS
- See Also:
-
KEY_DEFAULT_COLOR_PROFILE
- See Also:
-
VALUE_PUBLISH_TYPE_EXCEL
- See Also:
-
VALUE_PUBLISH_TYPE_RTF
- See Also:
-
VALUE_PUBLISH_RTF_MODELS_AND_OBJECTS
- See Also:
-
VALUE_PUBLISH_RTF_MODELS_ONLY
- See Also:
-
VALUE_PUBLISH_RTF_OBJECTS_ONLY
- See Also:
-
-
Method Details
-
addPropertyChangeListener
-
addPropertyChangeListener
-
removePropertyChangeListener
-
removePropertyChangeListener
-
getSettingsDirectory
File getSettingsDirectory()Returns the directory where settings for the repository should be stored. -
getRepositoryID
Long getRepositoryID()Returns the repository ID. -
getRepositoryUUID
String getRepositoryUUID()Returns the repository UUID. -
getName
String getName()Returns the name of the repository. -
getStatus
String getStatus()Returns the status of the repository. -
getProgress
-
getModelCount
int getModelCount()Returns the number of models in the repository. -
getCreated
Date getCreated()Returns the creation time of the repository. -
getLastModified
Date getLastModified()Returns the time the repository was last modified. -
isCurrentVersion
boolean isCurrentVersion()Returns true if the repository is updated to the current version. -
isTemplate
boolean isTemplate()Returns true if the repository is a template. -
setTemplate
void setTemplate(boolean template) Set template -
setStatus
-
setProgress
-
getWorkspaceID
Long getWorkspaceID()Gets the current workspace ID. -
setWorkspaceID
Sets the workspace to connect to, or null if not connected to a workspace. -
delete
boolean delete()Deletes the repository. -
updateToCurrentVersion
void updateToCurrentVersion()Updates the repository to the current version if possible. -
updateWorkspace
void updateWorkspace()Checks the current workspace in the store against the one set on the connection and updates the store if necessary. -
renameTo
Renames the repository. -
storePropertiesForNewRepository
Stores properties that should be set for a newly created repository. -
getStringProperty
-
getIntegerProperty
-
getBooleanProperty
-
setStringProperty
-
setIntegerProperty
-
setBooleanProperty
-
removeProperty
-