mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Web Script unit test base class added, helpers for JSON support in web scripts added (JSON reader, JSON error template), update to test webscript server to support easy submit of content, first cut of site service API (JS and HTTP) - create site and listSites available
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@8950 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
49
config/alfresco/model/siteModel.xml
Normal file
49
config/alfresco/model/siteModel.xml
Normal file
@@ -0,0 +1,49 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!-- Definition of Site Model -->
|
||||
|
||||
<model name="st:siteModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
|
||||
|
||||
<!-- Meta-data about the model -->
|
||||
<description>Site Model</description>
|
||||
<author>Roy Wetherall</author>
|
||||
<version>1.0</version>
|
||||
|
||||
<!-- Imports are required to allow references to definitions in other models -->
|
||||
<imports>
|
||||
<!-- Import Alfresco Dictionary Definitions -->
|
||||
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
|
||||
<!-- Import Alfresco Content Domain Model Definitions -->
|
||||
<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
|
||||
<!-- Import Alfresco Content Domain Model Definitions -->
|
||||
<import uri="http://www.alfresco.org/model/system/1.0" prefix="sys" />
|
||||
</imports>
|
||||
|
||||
<!-- Records Management Namespace -->
|
||||
<namespaces>
|
||||
<namespace uri="http://www.alfresco.org/model/site/1.0" prefix="st"/>
|
||||
</namespaces>
|
||||
|
||||
<types>
|
||||
|
||||
<!-- Site Definition: -->
|
||||
<!-- - The cm:name property is used to contain the 'short' name of the site -->
|
||||
<!-- - The titled aspect is used to contain the title and description of the site -->
|
||||
<!-- - Memberships are managed using the standard permissions mechanism -->
|
||||
<type name="st:site">
|
||||
<title>Site</title>
|
||||
<parent>cm:folder</parent>
|
||||
<properties>
|
||||
<property name="st:sitePreset">
|
||||
<title>Site Preset</title>
|
||||
<type>d:text</type>
|
||||
</property>
|
||||
</properties>
|
||||
<mandatory-aspects>
|
||||
<aspect>cm:titled</aspect>
|
||||
</mandatory-aspects>
|
||||
</type>
|
||||
|
||||
</types>
|
||||
|
||||
</model>
|
32
config/alfresco/model/sitePermissionDefinitions.xml
Normal file
32
config/alfresco/model/sitePermissionDefinitions.xml
Normal file
@@ -0,0 +1,32 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<!DOCTYPE permissions >
|
||||
|
||||
<permissions>
|
||||
|
||||
<!-- Namespaces used in type references -->
|
||||
|
||||
<namespaces>
|
||||
<namespace uri="http://www.alfresco.org/model/system/1.0" prefix="sys"/>
|
||||
<namespace uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
|
||||
<namespace uri="http://www.alfresco.org/model/site/1.0" prefix="st"/>
|
||||
</namespaces>
|
||||
|
||||
<!-- ============================================ -->
|
||||
<!-- Permissions specific to the wiki integration -->
|
||||
<!-- ============================================ -->
|
||||
|
||||
<permissionSet type="st:site" expose="selected">
|
||||
|
||||
<permissionGroup name="SiteManager" allowFullControl="true" expose="true" />
|
||||
|
||||
<permissionGroup name="SiteCollaborator" allowFullControl="false" expose="true">
|
||||
<includePermissionGroup permissionGroup="Collaborator" type="cm:cmobject" />
|
||||
</permissionGroup>
|
||||
|
||||
<permissionGroup name="SiteConsumer" allowFullControl="false" expose="true">
|
||||
<includePermissionGroup permissionGroup="Consumer" type="cm:cmobject" />
|
||||
</permissionGroup>
|
||||
|
||||
</permissionSet>
|
||||
|
||||
</permissions>
|
Reference in New Issue
Block a user