public interface RepoAdminService
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 |
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.
|
@Auditable List<RepoModelDefinition> getModels()
@Auditable(parameters={"modelStream","modelFileName"}, recordable={false,true}) void deployModel(InputStream modelStream, String modelFileName)
@Auditable(parameters={"modelStream","modelFileName","activate"}, recordable={false,true,false}) org.alfresco.service.cmr.repository.NodeRef deployModel(InputStream modelStream, String modelFileName, boolean activate)
modelStream
- the model input streammodelFileName
- modelFileName the model file nameactivate
- whether the model should be activated or not@Auditable(parameters="modelFileName") org.alfresco.service.namespace.QName undeployModel(String modelFileName)
@Auditable(parameters="modelFileName") org.alfresco.service.namespace.QName activateModel(String modelFileName)
@Auditable(parameters="modelFileName") org.alfresco.service.namespace.QName deactivateModel(String modelFileName)
@Auditable List<String> getMessageBundles()
@Auditable(parameters="resourceClasspath") String deployMessageBundle(String resourceClasspath)
@Auditable(parameters="bundleBaseName") void undeployMessageBundle(String bundleBaseName)
@Auditable(parameters="bundleBaseName") void reloadMessageBundle(String bundleBaseName)
@Auditable RepoUsage getRestrictions()
RepoUsage getUsage()
boolean updateUsage(RepoUsage.UsageType usageType)
usageType
- the type of usage update to performRepoUsageStatus getUsageStatus()
Copyright © 2005–2017 Alfresco Software. All rights reserved.