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 TypeMethodDescriptionvoidAdds 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.booleanisDraft()booleanChecks if the repository has been locked by an administrator for maintenance.voidremove()Removes the repository completely.voidremoveUser(MTUser user) Removes a user from the repository.voidsave()Saves changes to the repository.voidsetColorScheme(MTColorSchemeHeader colorScheme) Sets the color scheme of the repository.voidsetCreationDate(Date date) Sets the creation date of the repository.voidsetParentDirectory(MTDirectory directory) Sets the parent directory for the repository.voidsetPluginData(MTDataProvider provider, Object data) Sets plugin data for a provider.voidSets status for the repository.voidsetTemplate(boolean isTemplate) Sets whether this repository should act as a template or not.voidSets 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:
trueif the repository has been locked,falseotherwise.- 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:
isDraftin interfaceMTRepositoryHeader
-