Class AbstractReplicationWebscript
java.lang.Object
org.springframework.extensions.webscripts.AbstractWebScript
org.springframework.extensions.webscripts.DeclarativeWebScript
org.alfresco.repo.web.scripts.replication.AbstractReplicationWebscript
- All Implemented Interfaces:
org.springframework.extensions.webscripts.WebScript
- Direct Known Subclasses:
ReplicationDefinitionDelete
,ReplicationDefinitionGet
,ReplicationDefinitionPut
,ReplicationDefinitionsGet
,ReplicationDefinitionsPost
public abstract class AbstractReplicationWebscript
extends org.springframework.extensions.webscripts.DeclarativeWebScript
- Since:
- 3.4
- Author:
- Nick Burch
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.extensions.webscripts.AbstractWebScript
org.springframework.extensions.webscripts.AbstractWebScript.ScriptDetails
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ActionTrackingService
protected NodeService
protected ReplicationService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildModel
(ReplicationModelBuilder modelBuilder, org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.Status status, org.springframework.extensions.webscripts.Cache cache) executeImpl
(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.Status status, org.springframework.extensions.webscripts.Cache cache) void
setActionTrackingService
(ActionTrackingService actionTrackingService) void
setNodeService
(NodeService nodeService) void
setReplicationService
(ReplicationService replicationService) protected void
updateDefinitionProperties
(ReplicationDefinition replicationDefinition, org.json.JSONObject json) Updates properties on the definition, based on the JSON.Methods inherited from class org.springframework.extensions.webscripts.DeclarativeWebScript
execute, executeFinallyImpl, executeImpl, executeImpl, getTemplateModel, renderFormatTemplate
Methods inherited from class org.springframework.extensions.webscripts.AbstractWebScript
addModuleBundleToCache, checkModuleBundleCache, createArgs, createArgsM, createHeaders, createHeadersM, createScriptParameters, createStatusException, createTemplateParameters, executeScript, getContainer, getDescription, getExecuteScript, getResources, getStatusTemplate, init, renderString, renderString, renderTemplate, sendStatus, setURLModelFactory, toString
-
Field Details
-
nodeService
-
replicationService
-
actionTrackingService
-
-
Constructor Details
-
AbstractReplicationWebscript
public AbstractReplicationWebscript()
-
-
Method Details
-
setReplicationService
-
setNodeService
-
setActionTrackingService
-
executeImpl
protected Map<String,Object> executeImpl(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.Status status, org.springframework.extensions.webscripts.Cache cache) - Overrides:
executeImpl
in classorg.springframework.extensions.webscripts.DeclarativeWebScript
-
updateDefinitionProperties
protected void updateDefinitionProperties(ReplicationDefinition replicationDefinition, org.json.JSONObject json) throws org.json.JSONException Updates properties on the definition, based on the JSON. Doesn't save the definition Doesn't change the name- Throws:
org.json.JSONException
-
buildModel
protected abstract Map<String,Object> buildModel(ReplicationModelBuilder modelBuilder, org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.Status status, org.springframework.extensions.webscripts.Cache cache)
-