Package org.alfresco.repo.admin
Class RepoAdminServiceImpl
java.lang.Object
org.alfresco.repo.admin.RepoAdminServiceImpl
- All Implemented Interfaces:
RepoAdminService
Repository Admin Service Implementation.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactivateModel(String modelFileName) Activate custom model.deactivateModel(String modelFileName) Deactivate custom model.deployMessageBundle(String resourceClasspath) Deploy custom message resource bundle (to the 'Messages' space).voiddeployModel(InputStream modelStream, String modelFileName) Deploy custom model (to the 'Models' space).deployModel(InputStream modelStream, String modelFileName, boolean activate) Deploy custom model (to the 'Models' space).Get deployed custom messages resource bundles.Get list of deployed custom model.Get the currently-active restrictions to the repository usagegetUsage()Get the repository usage, where knownGet full information on the state of the usage limits, including errors and warnings about limits in play.voidreloadMessageBundle(String bundleBaseName) Reload custom message resource bundle.voidsetContentService(ContentService contentService) voidsetDictionaryDAO(DictionaryDAO dictionaryDAO) voidsetMessageService(MessageService messageService) voidsetNamespaceService(NamespaceService namespaceService) voidsetNodeService(NodeService nodeService) voidsetRepositoryMessagesLocation(RepositoryLocation repoMessagesLocation) voidsetRepositoryModelsLocation(RepositoryLocation repoModelsLocation) voidsetRepoUsageComponent(RepoUsageComponent repoUsageComponent) voidsetSearchService(SearchService searchService) voidundeployMessageBundle(String bundleBaseName) Undeploy custom message resource bundle (from the 'Messages' space).undeployModel(String modelFileName) Undeploy custom model (from the 'Models' space).booleanupdateUsage(RepoUsage.UsageType usageType) Force an update of the usages, providing a hint on the specific updates required.
-
Field Details
-
CRITERIA_ALL
- See Also:
-
defaultSubtypeOfDictionaryModel
- See Also:
-
defaultSubtypeOfContent
- See Also:
-
-
Constructor Details
-
RepoAdminServiceImpl
public RepoAdminServiceImpl()
-
-
Method Details
-
setDictionaryDAO
-
setSearchService
-
setNodeService
-
setContentService
-
setNamespaceService
-
setMessageService
-
setRepoUsageComponent
-
setRepositoryModelsLocation
-
setRepositoryMessagesLocation
-
getModels
Description copied from interface:RepoAdminServiceGet list of deployed custom model.- Specified by:
getModelsin interfaceRepoAdminService
-
deployModel
Description copied from interface:RepoAdminServiceDeploy custom model (to the 'Models' space). Allows creation of new models and incremental update of existing models.- Specified by:
deployModelin interfaceRepoAdminService- Parameters:
modelStream- the model input streammodelFileName- modelFileName the model file nameactivate- whether the model should be activated or not- Returns:
- the nodeRef of the created model
-
deployModel
Description copied from interface:RepoAdminServiceDeploy custom model (to the 'Models' space). Allows creation of new models and incremental update of existing models.- Specified by:
deployModelin interfaceRepoAdminService
-
activateModel
Description copied from interface:RepoAdminServiceActivate custom model.- Specified by:
activateModelin interfaceRepoAdminService
-
deactivateModel
Description copied from interface:RepoAdminServiceDeactivate custom model.- Specified by:
deactivateModelin interfaceRepoAdminService
-
undeployModel
Description copied from interface:RepoAdminServiceUndeploy custom model (from the 'Models' space). Allows delete of existing models, if not used. Permanently removes the model definition from the repository (all versions).- Specified by:
undeployModelin interfaceRepoAdminService
-
getMessageBundles
Description copied from interface:RepoAdminServiceGet deployed custom messages resource bundles.- Specified by:
getMessageBundlesin interfaceRepoAdminService
-
deployMessageBundle
Description copied from interface:RepoAdminServiceDeploy custom message resource bundle (to the 'Messages' space).- Specified by:
deployMessageBundlein interfaceRepoAdminService
-
undeployMessageBundle
Description copied from interface:RepoAdminServiceUndeploy custom message resource bundle (from the 'Messages' space).- Specified by:
undeployMessageBundlein interfaceRepoAdminService
-
reloadMessageBundle
Description copied from interface:RepoAdminServiceReload custom message resource bundle.- Specified by:
reloadMessageBundlein interfaceRepoAdminService
-
getRestrictions
Description copied from interface:RepoAdminServiceGet the currently-active restrictions to the repository usage- Specified by:
getRestrictionsin interfaceRepoAdminService
-
getUsage
Description copied from interface:RepoAdminServiceGet the repository usage, where known- Specified by:
getUsagein interfaceRepoAdminService- Returns:
- the currently-known repository usage
-
updateUsage
Description copied from interface:RepoAdminServiceForce an update of the usages, providing a hint on the specific updates required. If another client is already performing the update, then the calling code will need to determine the severity i.e. is an updated value really needed. Generally clients should accept that the data might be slightly stale, especially since there is no way to guarantee visibility of data being put into the database by other transactions.- Specified by:
updateUsagein interfaceRepoAdminService- Parameters:
usageType- the type of usage update to perform- Returns:
- true if the update succeeded or false if some other client was already performing the same update
-
getUsageStatus
Description copied from interface:RepoAdminServiceGet full information on the state of the usage limits, including errors and warnings about limits in play.- Specified by:
getUsageStatusin interfaceRepoAdminService- Returns:
- the object containing all the information
-