public class RepoAdminServiceImpl extends Object implements RepoAdminService
interface
Modifier and Type | Field and Description |
---|---|
static String |
CRITERIA_ALL |
static String |
defaultSubtypeOfContent |
static String |
defaultSubtypeOfDictionaryModel |
Constructor and Description |
---|
RepoAdminServiceImpl() |
Modifier and Type | Method and Description |
---|---|
org.alfresco.service.namespace.QName |
activateModel(String modelFileName)
Activate custom model.
|
org.alfresco.service.namespace.QName |
deactivateModel(String modelFileName)
Deactivate custom model.
|
String |
deployMessageBundle(String resourceClasspath)
Deploy custom message resource bundle (to the 'Messages' space).
|
void |
deployModel(InputStream modelStream,
String modelFileName)
Deploy custom model (to the 'Models' space).
|
org.alfresco.service.cmr.repository.NodeRef |
deployModel(InputStream modelStream,
String modelFileName,
boolean activate)
Deploy custom model (to the 'Models' space).
|
List<String> |
getMessageBundles()
Get deployed custom messages resource bundles.
|
List<RepoModelDefinition> |
getModels()
Get list of deployed custom model.
|
RepoUsage |
getRestrictions()
Get the currently-active restrictions to the repository usage
|
RepoUsage |
getUsage()
Get the repository usage, where known
|
RepoUsageStatus |
getUsageStatus()
Get full information on the state of the usage limits, including errors and warnings
about limits in play.
|
void |
reloadMessageBundle(String bundleBaseName)
Reload custom message resource bundle.
|
void |
setContentService(ContentService contentService) |
void |
setDictionaryDAO(org.alfresco.repo.dictionary.DictionaryDAO dictionaryDAO) |
void |
setMessageService(MessageService messageService) |
void |
setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService) |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
void |
setRepositoryMessagesLocation(RepositoryLocation repoMessagesLocation) |
void |
setRepositoryModelsLocation(RepositoryLocation repoModelsLocation) |
void |
setRepoUsageComponent(RepoUsageComponent repoUsageComponent) |
void |
setSearchService(org.alfresco.service.cmr.search.SearchService searchService) |
void |
undeployMessageBundle(String bundleBaseName)
Undeploy custom message resource bundle (from the 'Messages' space).
|
org.alfresco.service.namespace.QName |
undeployModel(String modelFileName)
Undeploy custom model (from the 'Models' space).
|
boolean |
updateUsage(RepoUsage.UsageType usageType)
Force an update of the usages, providing a hint on the specific updates required.
|
public static final String CRITERIA_ALL
public static final String defaultSubtypeOfDictionaryModel
public static final String defaultSubtypeOfContent
public void setDictionaryDAO(org.alfresco.repo.dictionary.DictionaryDAO dictionaryDAO)
public void setSearchService(org.alfresco.service.cmr.search.SearchService searchService)
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
public void setContentService(ContentService contentService)
public void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
public void setMessageService(MessageService messageService)
public void setRepoUsageComponent(RepoUsageComponent repoUsageComponent)
public void setRepositoryModelsLocation(RepositoryLocation repoModelsLocation)
public void setRepositoryMessagesLocation(RepositoryLocation repoMessagesLocation)
public List<RepoModelDefinition> getModels()
RepoAdminService
getModels
in interface RepoAdminService
public org.alfresco.service.cmr.repository.NodeRef deployModel(InputStream modelStream, String modelFileName, boolean activate)
RepoAdminService
deployModel
in interface RepoAdminService
modelStream
- the model input streammodelFileName
- modelFileName the model file nameactivate
- whether the model should be activated or notpublic void deployModel(InputStream modelStream, String modelFileName)
RepoAdminService
deployModel
in interface RepoAdminService
public org.alfresco.service.namespace.QName activateModel(String modelFileName)
RepoAdminService
activateModel
in interface RepoAdminService
public org.alfresco.service.namespace.QName deactivateModel(String modelFileName)
RepoAdminService
deactivateModel
in interface RepoAdminService
public org.alfresco.service.namespace.QName undeployModel(String modelFileName)
RepoAdminService
undeployModel
in interface RepoAdminService
public List<String> getMessageBundles()
RepoAdminService
getMessageBundles
in interface RepoAdminService
public String deployMessageBundle(String resourceClasspath)
RepoAdminService
deployMessageBundle
in interface RepoAdminService
public void undeployMessageBundle(String bundleBaseName)
RepoAdminService
undeployMessageBundle
in interface RepoAdminService
public void reloadMessageBundle(String bundleBaseName)
RepoAdminService
reloadMessageBundle
in interface RepoAdminService
public RepoUsage getRestrictions()
RepoAdminService
getRestrictions
in interface RepoAdminService
public RepoUsage getUsage()
RepoAdminService
getUsage
in interface RepoAdminService
public boolean updateUsage(RepoUsage.UsageType usageType)
RepoAdminService
updateUsage
in interface RepoAdminService
usageType
- the type of usage update to performpublic RepoUsageStatus getUsageStatus()
RepoAdminService
getUsageStatus
in interface RepoAdminService
Copyright © 2005–2017 Alfresco Software. All rights reserved.