org.alfresco.repo.web.scripts.replication
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
Nested classes/interfaces inherited from class org.springframework.extensions.webscripts.AbstractWebScript |
org.springframework.extensions.webscripts.AbstractWebScript.ScriptDetails |
Field Summary |
protected org.alfresco.service.cmr.action.ActionTrackingService |
actionTrackingService
|
protected org.alfresco.service.cmr.repository.NodeService |
nodeService
|
protected org.alfresco.service.cmr.replication.ReplicationService |
replicationService
|
Method Summary |
protected abstract java.util.Map |
buildModel(ReplicationModelBuilder modelBuilder,
org.springframework.extensions.webscripts.WebScriptRequest req,
org.springframework.extensions.webscripts.Status status,
org.springframework.extensions.webscripts.Cache cache)
|
protected java.util.Map |
executeImpl(org.springframework.extensions.webscripts.WebScriptRequest req,
org.springframework.extensions.webscripts.Status status,
org.springframework.extensions.webscripts.Cache cache)
|
void |
setActionTrackingService(org.alfresco.service.cmr.action.ActionTrackingService actionTrackingService)
|
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
|
void |
setReplicationService(org.alfresco.service.cmr.replication.ReplicationService replicationService)
|
protected void |
updateDefinitionProperties(org.alfresco.service.cmr.replication.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 |
createArgs, createArgsM, createHeaders, createHeadersM, createScriptParameters, createStatusException, createTemplateParameters, executeScript, getContainer, getDescription, getExecuteScript, getResources, getStatusTemplate, init, renderString, renderString, renderTemplate, sendStatus, setURLModelFactory, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
nodeService
protected org.alfresco.service.cmr.repository.NodeService nodeService
replicationService
protected org.alfresco.service.cmr.replication.ReplicationService replicationService
actionTrackingService
protected org.alfresco.service.cmr.action.ActionTrackingService actionTrackingService
AbstractReplicationWebscript
public AbstractReplicationWebscript()
setReplicationService
public void setReplicationService(org.alfresco.service.cmr.replication.ReplicationService replicationService)
setNodeService
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
setActionTrackingService
public void setActionTrackingService(org.alfresco.service.cmr.action.ActionTrackingService actionTrackingService)
executeImpl
protected java.util.Map executeImpl(org.springframework.extensions.webscripts.WebScriptRequest req,
org.springframework.extensions.webscripts.Status status,
org.springframework.extensions.webscripts.Cache cache)
- Overrides:
executeImpl
in class org.springframework.extensions.webscripts.DeclarativeWebScript
updateDefinitionProperties
protected void updateDefinitionProperties(org.alfresco.service.cmr.replication.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 java.util.Map buildModel(ReplicationModelBuilder modelBuilder,
org.springframework.extensions.webscripts.WebScriptRequest req,
org.springframework.extensions.webscripts.Status status,
org.springframework.extensions.webscripts.Cache cache)
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.