mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -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
|
||||
*
|
||||
|
Reference in New Issue
Block a user