Documentation on how to develop a Web Script may be found here.
Web Scripts allow you to bind new Alfresco-based functionality to a HTTP method and custom URL. A library of URLs may be built up to provide a complete API accessible via HTTP. They are ideal for building data access & update APIs and simple UI components such as Portlets. Development of Web Scripts may be performed within Alfresco. Knowledge of Java is not required.
For example, you could create the following API for your particular application...
GET http://<host>:<port>/alfresco/service/blog/category?c=Web20
GET http://<host>:<port>/alfresco/service/blog/2007/03/04/new-release
POST http://<host>:<port>/alfresco/service/blog/2007/03/04/new-release?status=Draft
DELETE http://<host>:<port>/alfresco/service/blog/2007/03/04/new-release
\ No newline at end of file ++Documentation on how to develop a Web Script may be found here.
Web Scripts allow you to bind new Alfresco-based functionality to a HTTP method and custom URL. A library of URLs may be built up to provide a complete API accessible via HTTP. They are ideal for building data access & update APIs and simple UI components such as Portlets. Development of Web Scripts may be performed within Alfresco. Knowledge of Java is not required.
+
+For example, you could create the following API for your particular application... +
++GET http://<host>:<port>/alfresco/service/blog/category/{category} +
++GET http://<host>:<port>/alfresco/service/blog/2007/03/04/new-release +
++POST http://<host>:<port>/alfresco/service/blog/2007/03/04/new-release?status=Draft +
++DELETE http://<host>:<port>/alfresco/service/blog/2007/03/04/new-release +
\ No newline at end of file diff --git a/config/alfresco/cache-context.xml b/config/alfresco/cache-context.xml index 85beadddb6..5cca3d25be 100644 --- a/config/alfresco/cache-context.xml +++ b/config/alfresco/cache-context.xml @@ -280,6 +280,42 @@path
must already exist.
+ *
+ * @param path The path of the directory containing the created file.
+ * @param name The name of the new file
+ * @param in An input stream with data for the file.
+ * @param aspect A list of aspects to give the file.
+ * @param properties A map of properties to give the file.
+ * @throws AVMNotFound
+ * @throws AVMExists
+ * @throws AVMWrongType
+ */
+ public void createFile(String path, String name, InputStream in, Listpath
is within a layer, the new directory will be a layered directory;
@@ -355,6 +370,20 @@ public interface AVMService
*/
public void createDirectory(String path, String name);
+ /**
+ * Create a new directory.
+ * If path
is within a layer, the new directory will be a layered directory;
+ * otherwise, the new directory will be a plain directory.
+ *
+ * @param path The simple absolute path to the parent.
+ * @param name The name to give the directory.
+ * @param aspects A list of aspects to add.
+ * @param properties A Map of properties to add.
+ * @throws AVMNotFound
+ * @throws AVMExists
+ * @throws AVMWrongType
+ */
+ public void createDirectory(String path, String name, List