org.springframework.extensions.webscripts
Class ScriptImporter
java.lang.Object
org.springframework.extensions.webscripts.ScriptBase
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
ScriptImporter
public ScriptImporter(RequestContext context)
- Constructs a new ScriptImporter object.
- Parameters:
context
- The RequestContext instance for the current
request
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 idurl
-
- 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.