Package se.conciliate.extensions.store
Interface MTRepository
- All Superinterfaces:
MTRepositoryHeader
Full interface for repositories. A repository is a self-contained
set of symbols, models and documents. They are used to separate
information that does not interrelate, since no information is shared
between repositories (except for users, which are not part of the data model).
- Since:
- 3.0
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a user to the repository.createAccessGroup
(MTGroup group) createPermissionGroup
(MTGroup group) Returns the currently used color scheme.Returns the number of models in the repository.getPluginData
(MTDataProvider provider) Returns the plugin data created for the repository by a given provider.boolean
isDraft()
boolean
Checks if the repository has been locked by an administrator for maintenance.void
remove()
Removes the repository completely.void
removeUser
(MTUser user) Removes a user from the repository.void
save()
Saves changes to the repository.void
setColorScheme
(MTColorSchemeHeader colorScheme) Sets the color scheme of the repository.void
setCreationDate
(Date date) Sets the creation date of the repository.void
setParentDirectory
(MTDirectory directory) Sets the parent directory for the repository.void
setPluginData
(MTDataProvider provider, Object data) Sets plugin data for a provider.void
Sets status for the repository.void
setTemplate
(boolean isTemplate) Sets whether this repository should act as a template or not.void
Sets the title of the repository.Methods inherited from interface se.conciliate.extensions.store.MTRepositoryHeader
createAttributeType, createCachedList, createCachedList, createDefaultDescriptionType, createDocument, createDocumentType, createExtensionDocument, createImage, createLanguage, createLayerType, createList, createPluginData, createPublishProfile, createTimestamp, createVariable, createVariableSubstitution, createVariableSubstitution, createVariableSubstitution, expand, findAccessGroups, findAllUsersWithAccess, findAttributeHeaders, findAttributeHeaders, findAttributes, findAttributeType, findAttributeTypeHeaders, findAttributeTypes, findAttributeTypes, findAttributeTypes, findColorScheme, findDocument, findDocument, findDocumentByPrefix, findDocumentHeaders, findDocumentIDs, findDocuments, findDocuments, findDocuments, findDocumentsByName, findDocumentsByUUID, findDocumentType, findDocumentTypeHeaders, findDocumentTypeIDs, findDocumentTypes, findImage, findImages, findImageUUIDs, findLanguageHeaders, findLanguages, findLayerTypeHeaders, findLayerTypeHeaders, findLayerTypes, findLayerTypes, findList, findLists, findListsFor, findModelCount, findPermissionGroups, findPluginData, findPublishProfiles, findRelativeLists, findStaticLists, findSymbolCount, findUsers, findVariables, findVariables, findVariables, findWorkspaceHeaders, findWorkspaces, getCreationDate, getDirectoryId, getID, getLastModifiedDate, getPluginDataBulkOperations, getStatus, getTitle, getUUID, isEnablePermissions, isTemplate, lock, unlock
-
Method Details
-
isLockedByAdmin
boolean isLockedByAdmin()Checks if the repository has been locked by an administrator for maintenance. If this is the case no other users can open the repository.- Returns:
true
if the repository has been locked,false
otherwise.- Since:
- 3.0
-
setTitle
Sets the title of the repository.- Parameters:
title
- The new title.- Since:
- 3.0
-
setCreationDate
Sets the creation date of the repository. -
setColorScheme
Sets the color scheme of the repository.- Parameters:
colorScheme
- The MTColorSchemeHeader to use.- Since:
- 3.0
-
setParentDirectory
Sets the parent directory for the repository. If the directory does not exist, an exception is thrown.- Parameters:
directory
- The MTDirectory to use.- Since:
- 3.0
-
setTemplate
void setTemplate(boolean isTemplate) Sets whether this repository should act as a template or not.- Parameters:
isTemplate
- true if this repository should be a template.- Since:
- 4.0
-
setStatus
Sets status for the repository.- Parameters:
status
- status.- Since:
- 4.0
-
save
Saves changes to the repository.- Throws:
MTAccessException
- Since:
- 3.0
-
remove
void remove()Removes the repository completely. -
getCurrentColorScheme
MTColorScheme getCurrentColorScheme()Returns the currently used color scheme.- Returns:
- The color scheme currently in use.
- Since:
- 3.2
-
getPluginData
Returns the plugin data created for the repository by a given provider.- Parameters:
provider
- The provider.- Returns:
- The plugin data created by the provider.
-
setPluginData
Sets plugin data for a provider.- Parameters:
provider
- The provider.data
- The new data to store for the provider.
-
addUser
Adds a user to the repository. -
removeUser
Removes a user from the repository. -
getModelCount
Long getModelCount()Returns the number of models in the repository. -
createAccessGroup
-
createPermissionGroup
-
isDraft
boolean isDraft()- Specified by:
isDraft
in interfaceMTRepositoryHeader
-