WebScript Remote Store client class impl (for web-tier)

PageRenderer config for Remote AVM Store client:
 - requires an AVM store in your repo called 'sitestore' with folder structure sitestore:/alfresco/site-data/* with the same site-data contents as usually present in the web-tier
 - can be configured on the repo store via the data webscript bean id "webscript.org.alfresco.repository.store.remoteavm.get"
 - NOTE: this is turned OFF by default so will use classpath stores as usual - no changes required to your dev setup.
ScriptRemote support for POST of content to endpoint url (to allow 'create' and 'update' remote store methods via ScriptRemote)
HTMLID value supplied to all component args even if they are not wrapped in DIV chrome.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@8938 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2008-04-28 15:34:03 +00:00
parent d1b9417dfc
commit 150cc7703b
4 changed files with 9 additions and 10 deletions

View File

@@ -2,6 +2,6 @@
<shortname>Remote AVM Store</shortname> <shortname>Remote AVM Store</shortname>
<description>Remote service mirroring the Store interface - to an AVM store</description> <description>Remote service mirroring the Store interface - to an AVM store</description>
<url>/remotestore/{method}/{path}</url> <url>/remotestore/{method}/{path}</url>
<authentication>guest</authentication> <authentication>none</authentication>
<format default="">argument</format> <format default="">argument</format>
</webscript> </webscript>

View File

@@ -2,6 +2,6 @@
<shortname>Remote AVM Store</shortname> <shortname>Remote AVM Store</shortname>
<description>Remote service mirroring the Store interface - to an AVM store</description> <description>Remote service mirroring the Store interface - to an AVM store</description>
<url>/remotestore/{method}/{path}</url> <url>/remotestore/{method}/{path}</url>
<authentication>guest</authentication> <authentication>none</authentication>
<format default="">argument</format> <format default="">argument</format>
</webscript> </webscript>

View File

@@ -217,14 +217,14 @@
<bean id="webscript.org.alfresco.repository.store.remoteavm.get" class="org.alfresco.repo.web.scripts.bean.AVMRemoteStore" parent="webscript"> <bean id="webscript.org.alfresco.repository.store.remoteavm.get" class="org.alfresco.repo.web.scripts.bean.AVMRemoteStore" parent="webscript">
<property name="mimetypeService" ref="MimetypeService" /> <property name="mimetypeService" ref="MimetypeService" />
<property name="avmService" ref="AVMService" /> <property name="avmService" ref="AVMService" />
<property name="rootPath"><value>site-data</value></property> <property name="rootPath"><value>alfresco</value></property>
<property name="store"><value>sitestore</value></property> <property name="store"><value>sitestore</value></property>
</bean> </bean>
<bean id="webscript.org.alfresco.repository.store.remoteavm.post" class="org.alfresco.repo.web.scripts.bean.AVMRemoteStore" parent="webscript"> <bean id="webscript.org.alfresco.repository.store.remoteavm.post" class="org.alfresco.repo.web.scripts.bean.AVMRemoteStore" parent="webscript">
<property name="mimetypeService" ref="MimetypeService" /> <property name="mimetypeService" ref="MimetypeService" />
<property name="avmService" ref="AVMService" /> <property name="avmService" ref="AVMService" />
<property name="rootPath"><value>site-data</value></property> <property name="rootPath"><value>alfresco</value></property>
<property name="store"><value>sitestore</value></property> <property name="store"><value>sitestore</value></property>
</bean> </bean>

View File

@@ -49,16 +49,15 @@ import org.apache.commons.logging.LogFactory;
* from a web-tier application to remotely mirror a WebScript Store instance. * from a web-tier application to remotely mirror a WebScript Store instance.
* *
* Request format: * Request format:
*
* <servicepath>/<method>/<path> * <servicepath>/<method>/<path>
* *
* Example: * Example:
* /service/remotestore/lastmodified/sites/xyz/pages/page.xml
* *
* /service/store/lastmodified/sites/xyz/pages/page.xml * where:
* * /service/remotestore -> service path
* where: /service/store -> service path * /lastmodified -> method name
* /lastmodified -> method name * /sites/../page.xml -> document path
* /sites/../page.xml -> document path
* *
* Note: path is relative to the root path as configured for this webscript bean * Note: path is relative to the root path as configured for this webscript bean
* *