Web Scripts: Dump & Load

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6111 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
David Caruana
2007-06-26 20:05:05 +00:00
parent 0b9a3e774e
commit 0dd05fe40f
21 changed files with 848 additions and 18 deletions

View File

@@ -59,16 +59,43 @@ public interface WebScriptStore
public String[] getDescriptionDocumentPaths();
/**
* Gets a description document
* Gets the paths of all implementation files for a given Web Script
*
* @param documentPath description document path
* @return input stream onto description document
* @param script web script
* @return array of implementation document paths
*/
public String[] getScriptDocumentPaths(WebScript script);
/**
* Determines if the document exists
*
* @param documentPath document path
* @return true => exists, false => does not exist
*/
public boolean hasDocument(String documentPath);
/**
* Gets a document
*
* @param documentPath document path
* @return input stream onto document
*
* @throws IOException
*/
public InputStream getDescriptionDocument(String documentPath)
public InputStream getDocument(String documentPath)
throws IOException;
/**
* Creates a document
*
* @param documentPath
* @param content
*
* @throws IOException
*/
public void createDocument(String documentPath, String content)
throws IOException;
/**
* Gets the template loader for this store
*