官术网_书友最值得收藏!

Types of web scripts

There are two types of web script in Alfresco: Data web scripts and Presentation web scripts.

Data web script

Data web scripts provide an interface to the repository for the client applications to create, retrieve, update, and delete content/data in the repository. These web scripts typically send the response in formats such as XML and JSON, and client applications will have to parse it in order to use it further.

Data web scripts encapsulate access and modification of content/data residing in the repository. These web scripts are provided and exposed by the Alfresco repository server only.

Presentation web script

Presentation web scripts can be used to build user interfaces such as dashlets for Alfresco explorer, dashlets for Alfresco share, portlets for a JSR-168 portal, a UI component within Alfresco SURF, or a custom application.

These kinds of web scripts generally render HTML responses.

It is possible to host these web scripts on a separate presentation server or they can also be exposed by the Alfresco repository server.

Presentation web scripts generally make a call to Data web scripts in order to get the required data from the repository.

Note

Out-of-the-box web scripts available in an Alfresco installation can be found at ALFRESCO_HOME\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\templates\webscripts\org\alfresco, where ALFRESCO_HOME is the base directory where Alfresco is installed.

If you are using Alfresco Community 5, you can find out-of-the-box web scripts under the alfresco package inside alfresco-remote-api-*.jar, which is available at ALFRESCO_HOME\tomcat\webapps\alfresco\WEB-INF\lib.

主站蜘蛛池模板: 英德市| 宜春市| 弥勒县| 客服| 瑞丽市| 大新县| 连平县| 常熟市| 沙雅县| 京山县| 郯城县| 怀仁县| 荆门市| 绵竹市| 清河县| 永新县| 壤塘县| 九江县| 清镇市| 东阳市| 渝中区| 嘉鱼县| 安康市| 四子王旗| 安龙县| 肇州县| 苍山县| 平度市| 桐柏县| 郧西县| 周口市| 革吉县| 大英县| 大化| 克什克腾旗| 株洲市| 克什克腾旗| 抚顺县| 东乡| 新竹市| 安顺市|