Package org.alfresco.service.cmr.admin
Interface RepoAdminService
- All Known Implementing Classes:
RepoAdminServiceImpl
public interface RepoAdminService
Repository Admin Service.
Client facing API for interacting with Alfresco Repository Admin services.
-
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.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.
-
Method Details
-
getModels
Get list of deployed custom model. -
deployModel
@Auditable(parameters={"modelStream","modelFileName"}, recordable={false,true}) void deployModel(InputStream modelStream, String modelFileName) Deploy custom model (to the 'Models' space). Allows creation of new models and incremental update of existing models. -
deployModel
@Auditable(parameters={"modelStream","modelFileName","activate"}, recordable={false,true,false}) NodeRef deployModel(InputStream modelStream, String modelFileName, boolean activate) Deploy custom model (to the 'Models' space). Allows creation of new models and incremental update of existing models.- 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
-
undeployModel
Undeploy custom model (from the 'Models' space). Allows delete of existing models, if not used. Permanently removes the model definition from the repository (all versions). -
activateModel
Activate custom model. -
deactivateModel
Deactivate custom model. -
getMessageBundles
Get deployed custom messages resource bundles. -
deployMessageBundle
Deploy custom message resource bundle (to the 'Messages' space). -
undeployMessageBundle
Undeploy custom message resource bundle (from the 'Messages' space). -
reloadMessageBundle
Reload custom message resource bundle. -
getRestrictions
Get the currently-active restrictions to the repository usage- Since:
- 3.5
-
getUsage
RepoUsage getUsage()Get the repository usage, where known- Returns:
- the currently-known repository usage
- Since:
- 3.5
-
updateUsage
Force 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.- 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
RepoUsageStatus getUsageStatus()Get full information on the state of the usage limits, including errors and warnings about limits in play.- Returns:
- the object containing all the information
-