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()
RepoAdminServicegetModels in interface RepoAdminServicepublic org.alfresco.service.cmr.repository.NodeRef deployModel(InputStream modelStream, String modelFileName, boolean activate)
RepoAdminServicedeployModel in interface RepoAdminServicemodelStream - the model input streammodelFileName - modelFileName the model file nameactivate - whether the model should be activated or notpublic void deployModel(InputStream modelStream, String modelFileName)
RepoAdminServicedeployModel in interface RepoAdminServicepublic org.alfresco.service.namespace.QName activateModel(String modelFileName)
RepoAdminServiceactivateModel in interface RepoAdminServicepublic org.alfresco.service.namespace.QName deactivateModel(String modelFileName)
RepoAdminServicedeactivateModel in interface RepoAdminServicepublic org.alfresco.service.namespace.QName undeployModel(String modelFileName)
RepoAdminServiceundeployModel in interface RepoAdminServicepublic List<String> getMessageBundles()
RepoAdminServicegetMessageBundles in interface RepoAdminServicepublic String deployMessageBundle(String resourceClasspath)
RepoAdminServicedeployMessageBundle in interface RepoAdminServicepublic void undeployMessageBundle(String bundleBaseName)
RepoAdminServiceundeployMessageBundle in interface RepoAdminServicepublic void reloadMessageBundle(String bundleBaseName)
RepoAdminServicereloadMessageBundle in interface RepoAdminServicepublic RepoUsage getRestrictions()
RepoAdminServicegetRestrictions in interface RepoAdminServicepublic RepoUsage getUsage()
RepoAdminServicegetUsage in interface RepoAdminServicepublic boolean updateUsage(RepoUsage.UsageType usageType)
RepoAdminServiceupdateUsage in interface RepoAdminServiceusageType - the type of usage update to performpublic RepoUsageStatus getUsageStatus()
RepoAdminServicegetUsageStatus in interface RepoAdminServiceCopyright © 2005–2018 Alfresco Software. All rights reserved.