Interface MTRepositoryConnection
- All Superinterfaces:
MTConnection
- All Known Subinterfaces:
MTLocalRepositoryConnection
,MTServerRepositoryConnection
Connection to a MT repository.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addPropertyChangeListener
(String property, PropertyChangeListener l) boolean
delete()
Deletes the repository.boolean
getBooleanProperty
(String key, boolean defaultValue) Returns the creation time of the repository.int
getIntegerProperty
(String key, int defaultValue) Returns the time the repository was last modified.int
Returns 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.boolean
Returns true if the repository is updated to the current version.boolean
Returns true if the repository is a template.removeProperty
(String key) void
void
removePropertyChangeListener
(String property, PropertyChangeListener l) boolean
Renames the repository.void
setBooleanProperty
(String key, boolean value) void
setIntegerProperty
(String key, int value) void
setProgress
(Double progress) void
void
setStringProperty
(String key, String value) void
setTemplate
(boolean template) Set templatevoid
setWorkspaceID
(Long workspaceID) Sets the workspace to connect to, or null if not connected to a workspace.void
Stores properties that should be set for a newly created repository.void
Updates the repository to the current version if possible.void
Checks 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
-