org.springframework.extensions.webscripts
Class ScriptImporter

java.lang.Object
  extended by org.springframework.extensions.webscripts.ScriptBase
      extended by org.springframework.extensions.webscripts.ScriptImporter
All Implemented Interfaces:
Serializable

public final class ScriptImporter
extends ScriptBase

Utility for importing Surf assets from a remote location into the Surf environment

Author:
muzquiano
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.springframework.extensions.webscripts.ScriptBase
context, properties
 
Constructor Summary
ScriptImporter(RequestContext context)
          Constructs a new ScriptImporter object.
 
Method Summary
protected  ScriptableMap buildProperties()
           
 Task getTask(String taskId)
          Returns a task with the given task id
 String importArchive(String store, String webappId, String url)
          Imports a Surf archive into the given store from a URL location A task id is returned so that the task can be monitored asynchrously
 
Methods inherited from class org.springframework.extensions.webscripts.ScriptBase
getConfig, getModel, getObject, getProperties, getRequestContext, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ScriptImporter

public ScriptImporter(RequestContext context)
Constructs a new ScriptImporter object.

Parameters:
context - The RequestContext instance for the current request
Method Detail

buildProperties

protected ScriptableMap buildProperties()
Specified by:
buildProperties in class ScriptBase

importArchive

public String importArchive(String store,
                            String webappId,
                            String url)
Imports a Surf archive into the given store from a URL location A task id is returned so that the task can be monitored asynchrously

Parameters:
store -
webappId - empty or webapp id
url -
Returns:
task id

getTask

public Task getTask(String taskId)
Returns a task with the given task id

Parameters:
taskId -
Returns:
task


Copyright © 2009 SpringSource, Inc. All Rights Reserved.