mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
- Incorporate JCR project into Repository project
- Single configuration entry point for JCR and non-JCR clients (i.e. application-context.xml) - Addition of build-war, incremental-war build targets (no deploy) - Remove build of JCR TCK war file by default git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2777 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
57
source/java/org/alfresco/jcr/test/BaseJCRTest.java
Normal file
57
source/java/org/alfresco/jcr/test/BaseJCRTest.java
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright (C) 2005 Alfresco, Inc.
|
||||
*
|
||||
* Licensed under the Mozilla Public License version 1.1
|
||||
* with a permitted attribution clause. You may obtain a
|
||||
* copy of the License at
|
||||
*
|
||||
* http://www.alfresco.org/legal/license.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
||||
* either express or implied. See the License for the specific
|
||||
* language governing permissions and limitations under the
|
||||
* License.
|
||||
*/
|
||||
package org.alfresco.jcr.test;
|
||||
|
||||
import javax.jcr.Repository;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
import org.alfresco.jcr.repository.RepositoryFactory;
|
||||
import org.alfresco.jcr.repository.RepositoryImpl;
|
||||
import org.alfresco.service.cmr.repository.StoreRef;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.context.support.ClassPathXmlApplicationContext;
|
||||
|
||||
/**
|
||||
* Base JCR Test
|
||||
*
|
||||
* @author David Caruana
|
||||
*/
|
||||
public class BaseJCRTest extends TestCase
|
||||
{
|
||||
private RepositoryImpl repositoryImpl;
|
||||
protected Repository repository;
|
||||
protected StoreRef storeRef;
|
||||
|
||||
private static ApplicationContext applicationContext = new ClassPathXmlApplicationContext("classpath:org/alfresco/jcr/test/test-context.xml");
|
||||
|
||||
protected String getWorkspace()
|
||||
{
|
||||
return storeRef.getIdentifier();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void setUp() throws Exception
|
||||
{
|
||||
storeRef = new StoreRef(StoreRef.PROTOCOL_WORKSPACE, "Test_" + System.currentTimeMillis());
|
||||
TestData.generateTestData(applicationContext, storeRef.getIdentifier());
|
||||
repositoryImpl = (RepositoryImpl)applicationContext.getBean(RepositoryFactory.REPOSITORY_BEAN);
|
||||
repositoryImpl.setDefaultWorkspace(storeRef.getIdentifier());
|
||||
repository = repositoryImpl;
|
||||
}
|
||||
|
||||
}
|
131
source/java/org/alfresco/jcr/test/TestData.java
Normal file
131
source/java/org/alfresco/jcr/test/TestData.java
Normal file
@@ -0,0 +1,131 @@
|
||||
/*
|
||||
* Copyright (C) 2005 Alfresco, Inc.
|
||||
*
|
||||
* Licensed under the Mozilla Public License version 1.1
|
||||
* with a permitted attribution clause. You may obtain a
|
||||
* copy of the License at
|
||||
*
|
||||
* http://www.alfresco.org/legal/license.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
||||
* either express or implied. See the License for the specific
|
||||
* language governing permissions and limitations under the
|
||||
* License.
|
||||
*/
|
||||
package org.alfresco.jcr.test;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Properties;
|
||||
|
||||
import org.alfresco.repo.importer.ImporterBootstrap;
|
||||
import org.alfresco.repo.security.authentication.AuthenticationComponent;
|
||||
import org.alfresco.repo.security.authentication.MutableAuthenticationDao;
|
||||
import org.alfresco.service.ServiceRegistry;
|
||||
import org.alfresco.service.cmr.repository.NodeService;
|
||||
import org.alfresco.service.cmr.repository.StoreRef;
|
||||
import org.alfresco.service.cmr.security.PermissionService;
|
||||
import org.alfresco.service.cmr.view.ImporterService;
|
||||
import org.alfresco.service.namespace.NamespaceService;
|
||||
import org.alfresco.service.transaction.TransactionService;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.context.support.ClassPathXmlApplicationContext;
|
||||
|
||||
|
||||
|
||||
public class TestData
|
||||
{
|
||||
public static final String TEST_WORKSPACE = "test";
|
||||
|
||||
/**
|
||||
* Generate Test Workspace within Repository
|
||||
*
|
||||
* @param args
|
||||
*/
|
||||
public static void main(String[] args)
|
||||
{
|
||||
ApplicationContext context = new ClassPathXmlApplicationContext("org/alfresco/jcr/test/test-context.xml");
|
||||
generateTestData(context, TEST_WORKSPACE);
|
||||
System.out.println("Generated TCK test data to workspace: " + TEST_WORKSPACE);
|
||||
System.exit(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Bootstrap Repository with JCR Test Data
|
||||
*
|
||||
* @param applicationContext
|
||||
* @param workspaceName
|
||||
*/
|
||||
public static void generateTestData(ApplicationContext applicationContext, String workspaceName)
|
||||
{
|
||||
{
|
||||
// Bootstrap Users
|
||||
MutableAuthenticationDao authDAO = (MutableAuthenticationDao) applicationContext.getBean("alfDaoImpl");
|
||||
if (authDAO.userExists("superuser") == false)
|
||||
{
|
||||
authDAO.createUser("superuser", "".toCharArray());
|
||||
}
|
||||
if (authDAO.userExists("user") == false)
|
||||
{
|
||||
authDAO.createUser("user", "".toCharArray());
|
||||
}
|
||||
if (authDAO.userExists("anonymous") == false)
|
||||
{
|
||||
authDAO.createUser("anonymous", "".toCharArray());
|
||||
}
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
AuthenticationComponent authenticationComponent = (AuthenticationComponent)applicationContext.getBean("authenticationComponent");
|
||||
authenticationComponent.setSystemUserAsCurrentUser();
|
||||
|
||||
try
|
||||
{
|
||||
// Bootstrap Workspace Test Data
|
||||
StoreRef storeRef = new StoreRef(StoreRef.PROTOCOL_WORKSPACE, workspaceName);
|
||||
|
||||
ImporterBootstrap bootstrap = new ImporterBootstrap();
|
||||
bootstrap.setAuthenticationComponent((AuthenticationComponent) applicationContext.getBean("authenticationComponent"));
|
||||
bootstrap.setImporterService((ImporterService) applicationContext.getBean(ServiceRegistry.IMPORTER_SERVICE.getLocalName()));
|
||||
bootstrap.setNodeService((NodeService) applicationContext.getBean(ServiceRegistry.NODE_SERVICE.getLocalName()));
|
||||
bootstrap.setNamespaceService((NamespaceService) applicationContext.getBean(ServiceRegistry.NAMESPACE_SERVICE.getLocalName()));
|
||||
bootstrap.setTransactionService((TransactionService) applicationContext.getBean(ServiceRegistry.TRANSACTION_SERVICE.getLocalName()));
|
||||
bootstrap.setStoreUrl(storeRef.toString());
|
||||
|
||||
List<Properties> views = new ArrayList<Properties>();
|
||||
Properties testView = new Properties();
|
||||
testView.setProperty("path", "/");
|
||||
testView.setProperty("location", "org/alfresco/jcr/test/testData.xml");
|
||||
views.add(testView);
|
||||
bootstrap.setBootstrapViews(views);
|
||||
bootstrap.bootstrap();
|
||||
|
||||
// Bootstrap clears security context
|
||||
authenticationComponent.setSystemUserAsCurrentUser();
|
||||
|
||||
PermissionService permissionService = (PermissionService)applicationContext.getBean(ServiceRegistry.PERMISSIONS_SERVICE.getLocalName());
|
||||
NodeService nodeService = (NodeService)applicationContext.getBean(ServiceRegistry.NODE_SERVICE.getLocalName());
|
||||
|
||||
// permissionService.setPermission(nodeService.getRootNode(storeRef), PermissionService.ALL_AUTHORITIES, PermissionService.ALL_PERMISSIONS, true);
|
||||
permissionService.setPermission(nodeService.getRootNode(storeRef), "superuser", PermissionService.ALL_PERMISSIONS, true);
|
||||
permissionService.setPermission(nodeService.getRootNode(storeRef), "anonymous", PermissionService.READ, true);
|
||||
permissionService.setPermission(nodeService.getRootNode(storeRef), "user", PermissionService.READ, true);
|
||||
permissionService.setPermission(nodeService.getRootNode(storeRef), "user", PermissionService.WRITE, true);
|
||||
}
|
||||
finally
|
||||
{
|
||||
authenticationComponent.clearCurrentSecurityContext();
|
||||
}
|
||||
}
|
||||
catch (RuntimeException e)
|
||||
{
|
||||
System.out.println("Exception: " + e);
|
||||
e.printStackTrace();
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
30
source/java/org/alfresco/jcr/test/docview.xml
Normal file
30
source/java/org/alfresco/jcr/test/docview.xml
Normal file
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<testdata xmlns:nt="http://www.jcp.org/jcr/nt/1.0" xmlns:alf="http://www.alfresco.org" xmlns:d="http://www.alfresco.org/model/dictionary/1.0" xmlns:view="http://www.alfresco.org/view/repository/1.0" xmlns:act="http://www.alfresco.org/model/action/1.0" xmlns:app="http://www.alfresco.org/model/application/1.0" xmlns:usr="http://www.alfresco.org/model/user/1.0" xmlns:ver="http://www.alfresco.org/model/versionstore/1.0" xmlns:cm="http://www.alfresco.org/model/content/1.0" xmlns:sv="http://www.jcp.org/jcr/sv/1.0" xmlns:mix="http://www.jcp.org/jcr/mix/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:jcrtest="http://www.alfresco.org/test/jcr/1.0" xmlns:sys="http://www.alfresco.org/model/system/1.0" xmlns:rule="http://www.alfresco.org/model/rule/1.0" xmlns:fm="http://www.alfresco.org/model/forum/1.0" xmlns="" jcr:primaryType="jcrtest:testtype" jcr:mixinTypes="sys:referenceable mix:referenceable" jcr:uuid="36110c2e-68bf-11da-98b9-375bcb5cbca6" jcrtest:booleanProp="true" jcrtest:doubleProp="3.141592653589793" sys:node-uuid="36110c2e-68bf-11da-98b9-375bcb5cbca6" jcrtest:dateProp="2005-09-16T19:20:05.034+01:00" jcrtest:longProp="90834953485278298" jcrtest:nameProp="jcrtest:test" sys:store-protocol="workspace" cm:name="36110c2e-68bf-11da-98b9-375bcb5cbca6" jcrtest:stringProp="2005-09-16T20:20:05.555+01:00" sys:store-identifier="test">
|
||||
<firstChild jcr:primaryType="jcrtest:testtype" jcr:mixinTypes="sys:referenceable mix:referenceable" jcr:uuid="36137d2f-68bf-11da-98b9-375bcb5cbca6" sys:store-protocol="workspace" sys:node-uuid="36137d2f-68bf-11da-98b9-375bcb5cbca6" cm:name="36137d2f-68bf-11da-98b9-375bcb5cbca6" sys:store-identifier="test"></firstChild>
|
||||
<sameNameTests jcr:primaryType="jcrtest:testtype" jcr:mixinTypes="sys:referenceable mix:referenceable" jcr:uuid="36137d30-68bf-11da-98b9-375bcb5cbca6" sys:store-protocol="workspace" sys:node-uuid="36137d30-68bf-11da-98b9-375bcb5cbca6" cm:name="36137d30-68bf-11da-98b9-375bcb5cbca6" sys:store-identifier="test">
|
||||
<sameNameSibling jcr:primaryType="jcrtest:testtype" jcr:mixinTypes="sys:referenceable mix:referenceable" jcr:uuid="3615c721-68bf-11da-98b9-375bcb5cbca6" sys:store-protocol="workspace" sys:node-uuid="3615c721-68bf-11da-98b9-375bcb5cbca6" cm:name="3615c721-68bf-11da-98b9-375bcb5cbca6" sys:store-identifier="test"></sameNameSibling>
|
||||
<sameNameSibling jcr:primaryType="jcrtest:testtype" jcr:mixinTypes="sys:referenceable mix:referenceable" jcr:uuid="3615c722-68bf-11da-98b9-375bcb5cbca6" sys:store-protocol="workspace" sys:node-uuid="3615c722-68bf-11da-98b9-375bcb5cbca6" cm:name="3615c722-68bf-11da-98b9-375bcb5cbca6" sys:store-identifier="test"></sameNameSibling>
|
||||
</sameNameTests>
|
||||
<multiValued jcr:primaryType="jcrtest:testtype" jcr:mixinTypes="sys:referenceable mix:referenceable" jcr:uuid="36183823-68bf-11da-98b9-375bcb5cbca6" sys:store-protocol="workspace" cm:name="36183823-68bf-11da-98b9-375bcb5cbca6" jcrtest:multiProp="value_x0020_one value_x0020_two value_x0020_three" sys:node-uuid="36183823-68bf-11da-98b9-375bcb5cbca6" sys:store-identifier="test"></multiValued>
|
||||
<contentValue jcr:primaryType="cm:content" jcr:mixinTypes="cm:auditable sys:referenceable mix:referenceable" jcr:uuid="36183824-68bf-11da-98b9-375bcb5cbca6" cm:modifier="System" cm:modified="2005-12-09T14:22:21.676Z" sys:node-uuid="36183824-68bf-11da-98b9-375bcb5cbca6" cm:creator="System" sys:store-protocol="workspace" cm:content="dHJ1ZQ==" cm:name="Test_x0020_Content" sys:store-identifier="test" cm:created="2005-12-09T14:22:21.660Z"></contentValue>
|
||||
<query jcr:primaryType="jcrtest:testtype" jcr:mixinTypes="sys:referenceable mix:referenceable" jcr:uuid="361f6416-68bf-11da-98b9-375bcb5cbca6" sys:store-protocol="workspace" sys:node-uuid="361f6416-68bf-11da-98b9-375bcb5cbca6" cm:name="361f6416-68bf-11da-98b9-375bcb5cbca6" sys:store-identifier="test">
|
||||
<one jcr:primaryType="jcrtest:testtype" jcr:mixinTypes="sys:referenceable mix:referenceable" jcr:uuid="3621ae07-68bf-11da-98b9-375bcb5cbca6" sys:store-protocol="workspace" jcrtest:prop1="a" cm:name="3621ae07-68bf-11da-98b9-375bcb5cbca6" sys:node-uuid="3621ae07-68bf-11da-98b9-375bcb5cbca6" sys:store-identifier="test"></one>
|
||||
<two jcr:primaryType="jcrtest:testtype" jcr:mixinTypes="sys:referenceable mix:referenceable" jcr:uuid="3621ae08-68bf-11da-98b9-375bcb5cbca6" sys:store-protocol="workspace" jcrtest:prop1="c" cm:name="3621ae08-68bf-11da-98b9-375bcb5cbca6" sys:node-uuid="3621ae08-68bf-11da-98b9-375bcb5cbca6" sys:store-identifier="test"></two>
|
||||
<three jcr:primaryType="jcrtest:testtype" jcr:mixinTypes="sys:referenceable mix:referenceable" jcr:uuid="3621ae09-68bf-11da-98b9-375bcb5cbca6" sys:store-protocol="workspace" jcrtest:prop1="e" cm:name="3621ae09-68bf-11da-98b9-375bcb5cbca6" sys:node-uuid="3621ae09-68bf-11da-98b9-375bcb5cbca6" sys:store-identifier="test"></three>
|
||||
<four jcr:primaryType="jcrtest:testtype" jcr:mixinTypes="sys:referenceable mix:referenceable" jcr:uuid="36241f0a-68bf-11da-98b9-375bcb5cbca6" sys:store-protocol="workspace" jcrtest:prop1="g" cm:name="36241f0a-68bf-11da-98b9-375bcb5cbca6" sys:node-uuid="36241f0a-68bf-11da-98b9-375bcb5cbca6" sys:store-identifier="test"></four>
|
||||
<node1 jcr:primaryType="jcrtest:testtype" jcr:mixinTypes="sys:referenceable mix:referenceable" jcr:uuid="36241f0b-68bf-11da-98b9-375bcb5cbca6" sys:store-protocol="workspace" jcrtest:prop1="b" cm:name="36241f0b-68bf-11da-98b9-375bcb5cbca6" sys:node-uuid="36241f0b-68bf-11da-98b9-375bcb5cbca6" sys:store-identifier="test"></node1>
|
||||
<node1 jcr:primaryType="jcrtest:testtype" jcr:mixinTypes="sys:referenceable mix:referenceable" jcr:uuid="3626900c-68bf-11da-98b9-375bcb5cbca6" sys:store-protocol="workspace" jcrtest:prop1="d" cm:name="3626900c-68bf-11da-98b9-375bcb5cbca6" sys:node-uuid="3626900c-68bf-11da-98b9-375bcb5cbca6" sys:store-identifier="test"></node1>
|
||||
<node1 jcr:primaryType="jcrtest:testtype" jcr:mixinTypes="sys:referenceable mix:referenceable" jcr:uuid="3628d9fd-68bf-11da-98b9-375bcb5cbca6" sys:store-protocol="workspace" jcrtest:prop1="f" cm:name="3628d9fd-68bf-11da-98b9-375bcb5cbca6" sys:node-uuid="3628d9fd-68bf-11da-98b9-375bcb5cbca6" sys:store-identifier="test"></node1>
|
||||
<node1 jcr:primaryType="jcrtest:testtype" jcr:mixinTypes="sys:referenceable mix:referenceable" jcr:uuid="3628d9fe-68bf-11da-98b9-375bcb5cbca6" sys:store-protocol="workspace" jcrtest:prop1="h" cm:name="3628d9fe-68bf-11da-98b9-375bcb5cbca6" sys:node-uuid="3628d9fe-68bf-11da-98b9-375bcb5cbca6" sys:store-identifier="test"></node1>
|
||||
<document jcr:primaryType="jcrtest:testdoc" jcr:mixinTypes="sys:referenceable mix:referenceable" jcr:uuid="362b4aff-68bf-11da-98b9-375bcb5cbca6" sys:store-protocol="workspace" jcrtest:title="Doc_x0020_1" cm:name="362b4aff-68bf-11da-98b9-375bcb5cbca6" sys:node-uuid="362b4aff-68bf-11da-98b9-375bcb5cbca6" sys:store-identifier="test">
|
||||
<para-1-1 jcr:primaryType="jcrtest:testpara" jcr:mixinTypes="sys:referenceable mix:referenceable" jcr:uuid="362d94f0-68bf-11da-98b9-375bcb5cbca6" jcrtest:subtitle="P_x0020_1_x0020_1" sys:store-protocol="workspace" cm:name="362d94f0-68bf-11da-98b9-375bcb5cbca6" sys:node-uuid="362d94f0-68bf-11da-98b9-375bcb5cbca6" jcrtest:content="A_x0020_bit_x0020_of_x0020_wiffle" sys:store-identifier="test"></para-1-1>
|
||||
<para-1-2 jcr:primaryType="jcrtest:testpara" jcr:mixinTypes="sys:referenceable mix:referenceable" jcr:uuid="362d94f1-68bf-11da-98b9-375bcb5cbca6" jcrtest:subtitle="P_x0020_1_x0020_2" sys:store-protocol="workspace" cm:name="362d94f1-68bf-11da-98b9-375bcb5cbca6" sys:node-uuid="362d94f1-68bf-11da-98b9-375bcb5cbca6" jcrtest:content="More_x0020_whitterings" sys:store-identifier="test"></para-1-2>
|
||||
<para-1-3 jcr:primaryType="jcrtest:testpara" jcr:mixinTypes="sys:referenceable mix:referenceable" jcr:uuid="362d94f2-68bf-11da-98b9-375bcb5cbca6" jcrtest:subtitle="P_x0020_1_x0020_3" sys:store-protocol="workspace" cm:name="362d94f2-68bf-11da-98b9-375bcb5cbca6" sys:node-uuid="362d94f2-68bf-11da-98b9-375bcb5cbca6" jcrtest:content="Carrot,_x0020_spud,_x0020_turnip_x0020_and_x0020_leek." sys:store-identifier="test"></para-1-3>
|
||||
</document>
|
||||
<document-2 jcr:primaryType="jcrtest:testdoc" jcr:mixinTypes="sys:referenceable mix:referenceable" jcr:uuid="363005f3-68bf-11da-98b9-375bcb5cbca6" sys:store-protocol="workspace" jcrtest:title="Doc_x0020_2" cm:name="363005f3-68bf-11da-98b9-375bcb5cbca6" sys:node-uuid="363005f3-68bf-11da-98b9-375bcb5cbca6" sys:store-identifier="test">
|
||||
<para-2-1 jcr:primaryType="jcrtest:testpara" jcr:mixinTypes="sys:referenceable mix:referenceable" jcr:uuid="363005f4-68bf-11da-98b9-375bcb5cbca6" jcrtest:subtitle="P_x0020_2_x0020_1" sys:store-protocol="workspace" cm:name="363005f4-68bf-11da-98b9-375bcb5cbca6" sys:node-uuid="363005f4-68bf-11da-98b9-375bcb5cbca6" jcrtest:content="tiger,_x0020_lion" sys:store-identifier="test"></para-2-1>
|
||||
<para-2-2 jcr:primaryType="jcrtest:testpara" jcr:mixinTypes="sys:referenceable mix:referenceable" jcr:uuid="363276f5-68bf-11da-98b9-375bcb5cbca6" jcrtest:subtitle="P_x0020_2_x0020_2" sys:store-protocol="workspace" cm:name="363276f5-68bf-11da-98b9-375bcb5cbca6" sys:node-uuid="363276f5-68bf-11da-98b9-375bcb5cbca6" jcrtest:content="biscuit,_x0020_bun,_x0020_cake" sys:store-identifier="test"></para-2-2>
|
||||
<para-2-3 jcr:primaryType="jcrtest:testpara" jcr:mixinTypes="sys:referenceable mix:referenceable" jcr:uuid="363276f6-68bf-11da-98b9-375bcb5cbca6" jcrtest:subtitle="P_x0020_2_x0020_3" sys:store-protocol="workspace" cm:name="363276f6-68bf-11da-98b9-375bcb5cbca6" sys:node-uuid="363276f6-68bf-11da-98b9-375bcb5cbca6" jcrtest:content="penguin,_x0020_hawk,_x0020_dove" sys:store-identifier="test"></para-2-3>
|
||||
</document-2>
|
||||
</query>
|
||||
</testdata>
|
682
source/java/org/alfresco/jcr/test/sysview.xml
Normal file
682
source/java/org/alfresco/jcr/test/sysview.xml
Normal file
@@ -0,0 +1,682 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<sv:node xmlns:nt="http://www.jcp.org/jcr/nt/1.0" xmlns:alf="http://www.alfresco.org" xmlns:d="http://www.alfresco.org/model/dictionary/1.0" xmlns:view="http://www.alfresco.org/view/repository/1.0" xmlns:act="http://www.alfresco.org/model/action/1.0" xmlns:app="http://www.alfresco.org/model/application/1.0" xmlns:usr="http://www.alfresco.org/model/user/1.0" xmlns:ver="http://www.alfresco.org/model/versionstore/1.0" xmlns:cm="http://www.alfresco.org/model/content/1.0" xmlns:sv="http://www.jcp.org/jcr/sv/1.0" xmlns:mix="http://www.jcp.org/jcr/mix/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:jcrtest="http://www.alfresco.org/test/jcr/1.0" xmlns:sys="http://www.alfresco.org/model/system/1.0" xmlns:rule="http://www.alfresco.org/model/rule/1.0" xmlns:fm="http://www.alfresco.org/model/forum/1.0" xmlns="" sv:name="testdata">
|
||||
<sv:property sv:name="jcr:primaryType" sv:type="Name">
|
||||
<sv:value>jcrtest:testtype</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcr:mixinTypes" sv:type="Name">
|
||||
<sv:value>sys:referenceable</sv:value>
|
||||
<sv:value>mix:referenceable</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcr:uuid" sv:type="String">
|
||||
<sv:value>36110c2e-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcrtest:booleanProp" sv:type="Boolean">
|
||||
<sv:value>true</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcrtest:doubleProp" sv:type="Double">
|
||||
<sv:value>3.141592653589793</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:node-uuid" sv:type="String">
|
||||
<sv:value>36110c2e-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcrtest:dateProp" sv:type="Date">
|
||||
<sv:value>2005-09-16T19:20:05.034+01:00</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcrtest:longProp" sv:type="Long">
|
||||
<sv:value>90834953485278298</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcrtest:nameProp" sv:type="Name">
|
||||
<sv:value>jcrtest:test</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:store-protocol" sv:type="String">
|
||||
<sv:value>workspace</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="cm:name" sv:type="String">
|
||||
<sv:value>36110c2e-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcrtest:stringProp" sv:type="String">
|
||||
<sv:value>2005-09-16T20:20:05.555+01:00</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:store-identifier" sv:type="String">
|
||||
<sv:value>test</sv:value>
|
||||
</sv:property>
|
||||
<sv:node sv:name="firstChild">
|
||||
<sv:property sv:name="jcr:primaryType" sv:type="Name">
|
||||
<sv:value>jcrtest:testtype</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcr:mixinTypes" sv:type="Name">
|
||||
<sv:value>sys:referenceable</sv:value>
|
||||
<sv:value>mix:referenceable</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcr:uuid" sv:type="String">
|
||||
<sv:value>36137d2f-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:store-protocol" sv:type="String">
|
||||
<sv:value>workspace</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:node-uuid" sv:type="String">
|
||||
<sv:value>36137d2f-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="cm:name" sv:type="String">
|
||||
<sv:value>36137d2f-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:store-identifier" sv:type="String">
|
||||
<sv:value>test</sv:value>
|
||||
</sv:property>
|
||||
</sv:node>
|
||||
<sv:node sv:name="sameNameTests">
|
||||
<sv:property sv:name="jcr:primaryType" sv:type="Name">
|
||||
<sv:value>jcrtest:testtype</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcr:mixinTypes" sv:type="Name">
|
||||
<sv:value>sys:referenceable</sv:value>
|
||||
<sv:value>mix:referenceable</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcr:uuid" sv:type="String">
|
||||
<sv:value>36137d30-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:store-protocol" sv:type="String">
|
||||
<sv:value>workspace</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:node-uuid" sv:type="String">
|
||||
<sv:value>36137d30-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="cm:name" sv:type="String">
|
||||
<sv:value>36137d30-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:store-identifier" sv:type="String">
|
||||
<sv:value>test</sv:value>
|
||||
</sv:property>
|
||||
<sv:node sv:name="sameNameSibling">
|
||||
<sv:property sv:name="jcr:primaryType" sv:type="Name">
|
||||
<sv:value>jcrtest:testtype</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcr:mixinTypes" sv:type="Name">
|
||||
<sv:value>sys:referenceable</sv:value>
|
||||
<sv:value>mix:referenceable</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcr:uuid" sv:type="String">
|
||||
<sv:value>3615c721-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:store-protocol" sv:type="String">
|
||||
<sv:value>workspace</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:node-uuid" sv:type="String">
|
||||
<sv:value>3615c721-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="cm:name" sv:type="String">
|
||||
<sv:value>3615c721-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:store-identifier" sv:type="String">
|
||||
<sv:value>test</sv:value>
|
||||
</sv:property>
|
||||
</sv:node>
|
||||
<sv:node sv:name="sameNameSibling">
|
||||
<sv:property sv:name="jcr:primaryType" sv:type="Name">
|
||||
<sv:value>jcrtest:testtype</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcr:mixinTypes" sv:type="Name">
|
||||
<sv:value>sys:referenceable</sv:value>
|
||||
<sv:value>mix:referenceable</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcr:uuid" sv:type="String">
|
||||
<sv:value>3615c722-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:store-protocol" sv:type="String">
|
||||
<sv:value>workspace</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:node-uuid" sv:type="String">
|
||||
<sv:value>3615c722-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="cm:name" sv:type="String">
|
||||
<sv:value>3615c722-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:store-identifier" sv:type="String">
|
||||
<sv:value>test</sv:value>
|
||||
</sv:property>
|
||||
</sv:node>
|
||||
</sv:node>
|
||||
<sv:node sv:name="multiValued">
|
||||
<sv:property sv:name="jcr:primaryType" sv:type="Name">
|
||||
<sv:value>jcrtest:testtype</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcr:mixinTypes" sv:type="Name">
|
||||
<sv:value>sys:referenceable</sv:value>
|
||||
<sv:value>mix:referenceable</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcr:uuid" sv:type="String">
|
||||
<sv:value>36183823-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:store-protocol" sv:type="String">
|
||||
<sv:value>workspace</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="cm:name" sv:type="String">
|
||||
<sv:value>36183823-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcrtest:multiProp" sv:type="String">
|
||||
<sv:value>value one</sv:value>
|
||||
<sv:value>value two</sv:value>
|
||||
<sv:value>value three</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:node-uuid" sv:type="String">
|
||||
<sv:value>36183823-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:store-identifier" sv:type="String">
|
||||
<sv:value>test</sv:value>
|
||||
</sv:property>
|
||||
</sv:node>
|
||||
<sv:node sv:name="contentValue">
|
||||
<sv:property sv:name="jcr:primaryType" sv:type="Name">
|
||||
<sv:value>cm:content</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcr:mixinTypes" sv:type="Name">
|
||||
<sv:value>cm:auditable</sv:value>
|
||||
<sv:value>sys:referenceable</sv:value>
|
||||
<sv:value>mix:referenceable</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcr:uuid" sv:type="String">
|
||||
<sv:value>36183824-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="cm:modifier" sv:type="String">
|
||||
<sv:value>System</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="cm:modified" sv:type="Date">
|
||||
<sv:value>2005-12-09T14:22:21.676Z</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:node-uuid" sv:type="String">
|
||||
<sv:value>36183824-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="cm:creator" sv:type="String">
|
||||
<sv:value>System</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:store-protocol" sv:type="String">
|
||||
<sv:value>workspace</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="cm:content" sv:type="Binary">
|
||||
<sv:value>dHJ1ZQ==</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="cm:name" sv:type="String">
|
||||
<sv:value>Test Content</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:store-identifier" sv:type="String">
|
||||
<sv:value>test</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="cm:created" sv:type="Date">
|
||||
<sv:value>2005-12-09T14:22:21.660Z</sv:value>
|
||||
</sv:property>
|
||||
</sv:node>
|
||||
<sv:node sv:name="query">
|
||||
<sv:property sv:name="jcr:primaryType" sv:type="Name">
|
||||
<sv:value>jcrtest:testtype</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcr:mixinTypes" sv:type="Name">
|
||||
<sv:value>sys:referenceable</sv:value>
|
||||
<sv:value>mix:referenceable</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcr:uuid" sv:type="String">
|
||||
<sv:value>361f6416-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:store-protocol" sv:type="String">
|
||||
<sv:value>workspace</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:node-uuid" sv:type="String">
|
||||
<sv:value>361f6416-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="cm:name" sv:type="String">
|
||||
<sv:value>361f6416-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:store-identifier" sv:type="String">
|
||||
<sv:value>test</sv:value>
|
||||
</sv:property>
|
||||
<sv:node sv:name="one">
|
||||
<sv:property sv:name="jcr:primaryType" sv:type="Name">
|
||||
<sv:value>jcrtest:testtype</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcr:mixinTypes" sv:type="Name">
|
||||
<sv:value>sys:referenceable</sv:value>
|
||||
<sv:value>mix:referenceable</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcr:uuid" sv:type="String">
|
||||
<sv:value>3621ae07-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:store-protocol" sv:type="String">
|
||||
<sv:value>workspace</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcrtest:prop1" sv:type="String">
|
||||
<sv:value>a</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="cm:name" sv:type="String">
|
||||
<sv:value>3621ae07-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:node-uuid" sv:type="String">
|
||||
<sv:value>3621ae07-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:store-identifier" sv:type="String">
|
||||
<sv:value>test</sv:value>
|
||||
</sv:property>
|
||||
</sv:node>
|
||||
<sv:node sv:name="two">
|
||||
<sv:property sv:name="jcr:primaryType" sv:type="Name">
|
||||
<sv:value>jcrtest:testtype</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcr:mixinTypes" sv:type="Name">
|
||||
<sv:value>sys:referenceable</sv:value>
|
||||
<sv:value>mix:referenceable</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcr:uuid" sv:type="String">
|
||||
<sv:value>3621ae08-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:store-protocol" sv:type="String">
|
||||
<sv:value>workspace</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcrtest:prop1" sv:type="String">
|
||||
<sv:value>c</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="cm:name" sv:type="String">
|
||||
<sv:value>3621ae08-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:node-uuid" sv:type="String">
|
||||
<sv:value>3621ae08-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:store-identifier" sv:type="String">
|
||||
<sv:value>test</sv:value>
|
||||
</sv:property>
|
||||
</sv:node>
|
||||
<sv:node sv:name="three">
|
||||
<sv:property sv:name="jcr:primaryType" sv:type="Name">
|
||||
<sv:value>jcrtest:testtype</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcr:mixinTypes" sv:type="Name">
|
||||
<sv:value>sys:referenceable</sv:value>
|
||||
<sv:value>mix:referenceable</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcr:uuid" sv:type="String">
|
||||
<sv:value>3621ae09-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:store-protocol" sv:type="String">
|
||||
<sv:value>workspace</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcrtest:prop1" sv:type="String">
|
||||
<sv:value>e</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="cm:name" sv:type="String">
|
||||
<sv:value>3621ae09-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:node-uuid" sv:type="String">
|
||||
<sv:value>3621ae09-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:store-identifier" sv:type="String">
|
||||
<sv:value>test</sv:value>
|
||||
</sv:property>
|
||||
</sv:node>
|
||||
<sv:node sv:name="four">
|
||||
<sv:property sv:name="jcr:primaryType" sv:type="Name">
|
||||
<sv:value>jcrtest:testtype</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcr:mixinTypes" sv:type="Name">
|
||||
<sv:value>sys:referenceable</sv:value>
|
||||
<sv:value>mix:referenceable</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcr:uuid" sv:type="String">
|
||||
<sv:value>36241f0a-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:store-protocol" sv:type="String">
|
||||
<sv:value>workspace</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcrtest:prop1" sv:type="String">
|
||||
<sv:value>g</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="cm:name" sv:type="String">
|
||||
<sv:value>36241f0a-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:node-uuid" sv:type="String">
|
||||
<sv:value>36241f0a-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:store-identifier" sv:type="String">
|
||||
<sv:value>test</sv:value>
|
||||
</sv:property>
|
||||
</sv:node>
|
||||
<sv:node sv:name="node1">
|
||||
<sv:property sv:name="jcr:primaryType" sv:type="Name">
|
||||
<sv:value>jcrtest:testtype</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcr:mixinTypes" sv:type="Name">
|
||||
<sv:value>sys:referenceable</sv:value>
|
||||
<sv:value>mix:referenceable</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcr:uuid" sv:type="String">
|
||||
<sv:value>36241f0b-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:store-protocol" sv:type="String">
|
||||
<sv:value>workspace</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcrtest:prop1" sv:type="String">
|
||||
<sv:value>b</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="cm:name" sv:type="String">
|
||||
<sv:value>36241f0b-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:node-uuid" sv:type="String">
|
||||
<sv:value>36241f0b-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:store-identifier" sv:type="String">
|
||||
<sv:value>test</sv:value>
|
||||
</sv:property>
|
||||
</sv:node>
|
||||
<sv:node sv:name="node1">
|
||||
<sv:property sv:name="jcr:primaryType" sv:type="Name">
|
||||
<sv:value>jcrtest:testtype</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcr:mixinTypes" sv:type="Name">
|
||||
<sv:value>sys:referenceable</sv:value>
|
||||
<sv:value>mix:referenceable</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcr:uuid" sv:type="String">
|
||||
<sv:value>3626900c-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:store-protocol" sv:type="String">
|
||||
<sv:value>workspace</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcrtest:prop1" sv:type="String">
|
||||
<sv:value>d</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="cm:name" sv:type="String">
|
||||
<sv:value>3626900c-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:node-uuid" sv:type="String">
|
||||
<sv:value>3626900c-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:store-identifier" sv:type="String">
|
||||
<sv:value>test</sv:value>
|
||||
</sv:property>
|
||||
</sv:node>
|
||||
<sv:node sv:name="node1">
|
||||
<sv:property sv:name="jcr:primaryType" sv:type="Name">
|
||||
<sv:value>jcrtest:testtype</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcr:mixinTypes" sv:type="Name">
|
||||
<sv:value>sys:referenceable</sv:value>
|
||||
<sv:value>mix:referenceable</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcr:uuid" sv:type="String">
|
||||
<sv:value>3628d9fd-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:store-protocol" sv:type="String">
|
||||
<sv:value>workspace</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcrtest:prop1" sv:type="String">
|
||||
<sv:value>f</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="cm:name" sv:type="String">
|
||||
<sv:value>3628d9fd-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:node-uuid" sv:type="String">
|
||||
<sv:value>3628d9fd-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:store-identifier" sv:type="String">
|
||||
<sv:value>test</sv:value>
|
||||
</sv:property>
|
||||
</sv:node>
|
||||
<sv:node sv:name="node1">
|
||||
<sv:property sv:name="jcr:primaryType" sv:type="Name">
|
||||
<sv:value>jcrtest:testtype</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcr:mixinTypes" sv:type="Name">
|
||||
<sv:value>sys:referenceable</sv:value>
|
||||
<sv:value>mix:referenceable</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcr:uuid" sv:type="String">
|
||||
<sv:value>3628d9fe-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:store-protocol" sv:type="String">
|
||||
<sv:value>workspace</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcrtest:prop1" sv:type="String">
|
||||
<sv:value>h</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="cm:name" sv:type="String">
|
||||
<sv:value>3628d9fe-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:node-uuid" sv:type="String">
|
||||
<sv:value>3628d9fe-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:store-identifier" sv:type="String">
|
||||
<sv:value>test</sv:value>
|
||||
</sv:property>
|
||||
</sv:node>
|
||||
<sv:node sv:name="document">
|
||||
<sv:property sv:name="jcr:primaryType" sv:type="Name">
|
||||
<sv:value>jcrtest:testdoc</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcr:mixinTypes" sv:type="Name">
|
||||
<sv:value>sys:referenceable</sv:value>
|
||||
<sv:value>mix:referenceable</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcr:uuid" sv:type="String">
|
||||
<sv:value>362b4aff-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:store-protocol" sv:type="String">
|
||||
<sv:value>workspace</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcrtest:title" sv:type="String">
|
||||
<sv:value>Doc 1</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="cm:name" sv:type="String">
|
||||
<sv:value>362b4aff-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:node-uuid" sv:type="String">
|
||||
<sv:value>362b4aff-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:store-identifier" sv:type="String">
|
||||
<sv:value>test</sv:value>
|
||||
</sv:property>
|
||||
<sv:node sv:name="para-1-1">
|
||||
<sv:property sv:name="jcr:primaryType" sv:type="Name">
|
||||
<sv:value>jcrtest:testpara</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcr:mixinTypes" sv:type="Name">
|
||||
<sv:value>sys:referenceable</sv:value>
|
||||
<sv:value>mix:referenceable</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcr:uuid" sv:type="String">
|
||||
<sv:value>362d94f0-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcrtest:subtitle" sv:type="String">
|
||||
<sv:value>P 1 1</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:store-protocol" sv:type="String">
|
||||
<sv:value>workspace</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="cm:name" sv:type="String">
|
||||
<sv:value>362d94f0-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:node-uuid" sv:type="String">
|
||||
<sv:value>362d94f0-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcrtest:content" sv:type="String">
|
||||
<sv:value>A bit of wiffle</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:store-identifier" sv:type="String">
|
||||
<sv:value>test</sv:value>
|
||||
</sv:property>
|
||||
</sv:node>
|
||||
<sv:node sv:name="para-1-2">
|
||||
<sv:property sv:name="jcr:primaryType" sv:type="Name">
|
||||
<sv:value>jcrtest:testpara</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcr:mixinTypes" sv:type="Name">
|
||||
<sv:value>sys:referenceable</sv:value>
|
||||
<sv:value>mix:referenceable</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcr:uuid" sv:type="String">
|
||||
<sv:value>362d94f1-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcrtest:subtitle" sv:type="String">
|
||||
<sv:value>P 1 2</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:store-protocol" sv:type="String">
|
||||
<sv:value>workspace</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="cm:name" sv:type="String">
|
||||
<sv:value>362d94f1-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:node-uuid" sv:type="String">
|
||||
<sv:value>362d94f1-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcrtest:content" sv:type="String">
|
||||
<sv:value>More whitterings</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:store-identifier" sv:type="String">
|
||||
<sv:value>test</sv:value>
|
||||
</sv:property>
|
||||
</sv:node>
|
||||
<sv:node sv:name="para-1-3">
|
||||
<sv:property sv:name="jcr:primaryType" sv:type="Name">
|
||||
<sv:value>jcrtest:testpara</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcr:mixinTypes" sv:type="Name">
|
||||
<sv:value>sys:referenceable</sv:value>
|
||||
<sv:value>mix:referenceable</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcr:uuid" sv:type="String">
|
||||
<sv:value>362d94f2-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcrtest:subtitle" sv:type="String">
|
||||
<sv:value>P 1 3</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:store-protocol" sv:type="String">
|
||||
<sv:value>workspace</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="cm:name" sv:type="String">
|
||||
<sv:value>362d94f2-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:node-uuid" sv:type="String">
|
||||
<sv:value>362d94f2-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcrtest:content" sv:type="String">
|
||||
<sv:value>Carrot, spud, turnip and leek.</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:store-identifier" sv:type="String">
|
||||
<sv:value>test</sv:value>
|
||||
</sv:property>
|
||||
</sv:node>
|
||||
</sv:node>
|
||||
<sv:node sv:name="document-2">
|
||||
<sv:property sv:name="jcr:primaryType" sv:type="Name">
|
||||
<sv:value>jcrtest:testdoc</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcr:mixinTypes" sv:type="Name">
|
||||
<sv:value>sys:referenceable</sv:value>
|
||||
<sv:value>mix:referenceable</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcr:uuid" sv:type="String">
|
||||
<sv:value>363005f3-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:store-protocol" sv:type="String">
|
||||
<sv:value>workspace</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcrtest:title" sv:type="String">
|
||||
<sv:value>Doc 2</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="cm:name" sv:type="String">
|
||||
<sv:value>363005f3-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:node-uuid" sv:type="String">
|
||||
<sv:value>363005f3-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:store-identifier" sv:type="String">
|
||||
<sv:value>test</sv:value>
|
||||
</sv:property>
|
||||
<sv:node sv:name="para-2-1">
|
||||
<sv:property sv:name="jcr:primaryType" sv:type="Name">
|
||||
<sv:value>jcrtest:testpara</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcr:mixinTypes" sv:type="Name">
|
||||
<sv:value>sys:referenceable</sv:value>
|
||||
<sv:value>mix:referenceable</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcr:uuid" sv:type="String">
|
||||
<sv:value>363005f4-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcrtest:subtitle" sv:type="String">
|
||||
<sv:value>P 2 1</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:store-protocol" sv:type="String">
|
||||
<sv:value>workspace</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="cm:name" sv:type="String">
|
||||
<sv:value>363005f4-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:node-uuid" sv:type="String">
|
||||
<sv:value>363005f4-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcrtest:content" sv:type="String">
|
||||
<sv:value>tiger, lion</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:store-identifier" sv:type="String">
|
||||
<sv:value>test</sv:value>
|
||||
</sv:property>
|
||||
</sv:node>
|
||||
<sv:node sv:name="para-2-2">
|
||||
<sv:property sv:name="jcr:primaryType" sv:type="Name">
|
||||
<sv:value>jcrtest:testpara</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcr:mixinTypes" sv:type="Name">
|
||||
<sv:value>sys:referenceable</sv:value>
|
||||
<sv:value>mix:referenceable</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcr:uuid" sv:type="String">
|
||||
<sv:value>363276f5-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcrtest:subtitle" sv:type="String">
|
||||
<sv:value>P 2 2</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:store-protocol" sv:type="String">
|
||||
<sv:value>workspace</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="cm:name" sv:type="String">
|
||||
<sv:value>363276f5-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:node-uuid" sv:type="String">
|
||||
<sv:value>363276f5-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcrtest:content" sv:type="String">
|
||||
<sv:value>biscuit, bun, cake</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:store-identifier" sv:type="String">
|
||||
<sv:value>test</sv:value>
|
||||
</sv:property>
|
||||
</sv:node>
|
||||
<sv:node sv:name="para-2-3">
|
||||
<sv:property sv:name="jcr:primaryType" sv:type="Name">
|
||||
<sv:value>jcrtest:testpara</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcr:mixinTypes" sv:type="Name">
|
||||
<sv:value>sys:referenceable</sv:value>
|
||||
<sv:value>mix:referenceable</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcr:uuid" sv:type="String">
|
||||
<sv:value>363276f6-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcrtest:subtitle" sv:type="String">
|
||||
<sv:value>P 2 3</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:store-protocol" sv:type="String">
|
||||
<sv:value>workspace</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="cm:name" sv:type="String">
|
||||
<sv:value>363276f6-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:node-uuid" sv:type="String">
|
||||
<sv:value>363276f6-68bf-11da-98b9-375bcb5cbca6</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="jcrtest:content" sv:type="String">
|
||||
<sv:value>penguin, hawk, dove</sv:value>
|
||||
</sv:property>
|
||||
<sv:property sv:name="sys:store-identifier" sv:type="String">
|
||||
<sv:value>test</sv:value>
|
||||
</sv:property>
|
||||
</sv:node>
|
||||
</sv:node>
|
||||
</sv:node>
|
||||
</sv:node>
|
17
source/java/org/alfresco/jcr/test/test-context.xml
Normal file
17
source/java/org/alfresco/jcr/test/test-context.xml
Normal file
@@ -0,0 +1,17 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
|
||||
|
||||
<beans>
|
||||
|
||||
<import resource="classpath:alfresco/application-context.xml" />
|
||||
|
||||
<bean id="testDictionaryBootstrap" class="org.alfresco.repo.dictionary.DictionaryBootstrap" init-method="bootstrap" depends-on="JCR.DictionaryBootstrap">
|
||||
<property name="dictionaryDAO"><ref bean="dictionaryDAO"/></property>
|
||||
<property name="models">
|
||||
<list>
|
||||
<value>org/alfresco/jcr/test/testModel.xml</value>
|
||||
</list>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
</beans>
|
1
source/java/org/alfresco/jcr/test/testContent.txt
Normal file
1
source/java/org/alfresco/jcr/test/testContent.txt
Normal file
@@ -0,0 +1 @@
|
||||
true
|
111
source/java/org/alfresco/jcr/test/testData.xml
Normal file
111
source/java/org/alfresco/jcr/test/testData.xml
Normal file
@@ -0,0 +1,111 @@
|
||||
<view:view xmlns:view="http://www.alfresco.org/view/repository/1.0"
|
||||
xmlns:jcrtest="http://www.alfresco.org/test/jcr/1.0"
|
||||
xmlns:cm="http://www.alfresco.org/model/content/1.0">
|
||||
|
||||
<jcrtest:testtype view:childName="testroot">
|
||||
</jcrtest:testtype>
|
||||
|
||||
<jcrtest:testtype view:childName="testdata">
|
||||
<!-- Properties for XXXPropertyTests -->
|
||||
<jcrtest:booleanProp>true</jcrtest:booleanProp>
|
||||
<jcrtest:dateProp>2005-09-16T18:20:05.034Z</jcrtest:dateProp>
|
||||
<jcrtest:doubleProp>3.141592653589793</jcrtest:doubleProp>
|
||||
<jcrtest:longProp>90834953485278298</jcrtest:longProp>
|
||||
<jcrtest:nameProp>{http://www.alfresco.org/test/jcr/1.0}test</jcrtest:nameProp>
|
||||
<jcrtest:stringProp>2005-09-16T20:20:05.555+01:00</jcrtest:stringProp>
|
||||
|
||||
<jcrtest:children>
|
||||
<jcrtest:testtype view:childName="firstChild"/>
|
||||
|
||||
<!-- Same name sibling tests -->
|
||||
<jcrtest:testtype view:childName="sameNameTests">
|
||||
<jcrtest:children>
|
||||
<jcrtest:testtype view:childName="sameNameSibling"/>
|
||||
<jcrtest:testtype view:childName="sameNameSibling"/>
|
||||
</jcrtest:children>
|
||||
</jcrtest:testtype>
|
||||
|
||||
<!-- Multi-valued Property -->
|
||||
<jcrtest:testtype view:childName="multiValued">
|
||||
<jcrtest:multiProp>
|
||||
<view:value>value one</view:value>
|
||||
<view:value>value two</view:value>
|
||||
<view:value>value three</view:value>
|
||||
</jcrtest:multiProp>
|
||||
</jcrtest:testtype>
|
||||
|
||||
<!-- Some Content -->
|
||||
<cm:content view:childName="contentValue">
|
||||
<cm:name>Test Content</cm:name>
|
||||
<cm:content>contentUrl=org/alfresco/jcr/test/testContent.txt|mimetype=text/plain|size=|encoding=UTF-8</cm:content>
|
||||
</cm:content>
|
||||
|
||||
<!-- Query -->
|
||||
|
||||
<jcrtest:testtype view:childName="query">
|
||||
<jcrtest:children>
|
||||
<jcrtest:testtype view:childName="one">
|
||||
<jcrtest:prop1>a</jcrtest:prop1>
|
||||
</jcrtest:testtype>
|
||||
<jcrtest:testtype view:childName="two">
|
||||
<jcrtest:prop1>c</jcrtest:prop1>
|
||||
</jcrtest:testtype>
|
||||
<jcrtest:testtype view:childName="three">
|
||||
<jcrtest:prop1>e</jcrtest:prop1>
|
||||
</jcrtest:testtype>
|
||||
<jcrtest:testtype view:childName="four">
|
||||
<jcrtest:prop1>g</jcrtest:prop1>
|
||||
</jcrtest:testtype>
|
||||
<jcrtest:testtype view:childName="node1">
|
||||
<jcrtest:prop1>b</jcrtest:prop1>
|
||||
</jcrtest:testtype>
|
||||
<jcrtest:testtype view:childName="node1">
|
||||
<jcrtest:prop1>d</jcrtest:prop1>
|
||||
</jcrtest:testtype>
|
||||
<jcrtest:testtype view:childName="node1">
|
||||
<jcrtest:prop1>f</jcrtest:prop1>
|
||||
</jcrtest:testtype>
|
||||
<jcrtest:testtype view:childName="node1">
|
||||
<jcrtest:prop1>h</jcrtest:prop1>
|
||||
</jcrtest:testtype>
|
||||
<jcrtest:testdoc view:childName="document">
|
||||
<jcrtest:title>Doc 1</jcrtest:title>
|
||||
<jcrtest:children>
|
||||
<jcrtest:testpara view:childName="para-1-1">
|
||||
<jcrtest:subtitle>P 1 1</jcrtest:subtitle>
|
||||
<jcrtest:content>A bit of wiffle</jcrtest:content>
|
||||
</jcrtest:testpara>
|
||||
<jcrtest:testpara view:childName="para-1-2">
|
||||
<jcrtest:subtitle>P 1 2</jcrtest:subtitle>
|
||||
<jcrtest:content>More whitterings</jcrtest:content>
|
||||
</jcrtest:testpara>
|
||||
<jcrtest:testpara view:childName="para-1-3">
|
||||
<jcrtest:subtitle>P 1 3</jcrtest:subtitle>
|
||||
<jcrtest:content>Carrot, spud, turnip and leek.</jcrtest:content>
|
||||
</jcrtest:testpara>
|
||||
</jcrtest:children>
|
||||
</jcrtest:testdoc>
|
||||
<jcrtest:testdoc view:childName="document-2">
|
||||
<jcrtest:title>Doc 2</jcrtest:title>
|
||||
<jcrtest:children>
|
||||
<jcrtest:testpara view:childName="para-2-1">
|
||||
<jcrtest:subtitle>P 2 1</jcrtest:subtitle>
|
||||
<jcrtest:content>tiger, lion</jcrtest:content>
|
||||
</jcrtest:testpara>
|
||||
<jcrtest:testpara view:childName="para-2-2">
|
||||
<jcrtest:subtitle>P 2 2</jcrtest:subtitle>
|
||||
<jcrtest:content>biscuit, bun, cake</jcrtest:content>
|
||||
</jcrtest:testpara>
|
||||
<jcrtest:testpara view:childName="para-2-3">
|
||||
<jcrtest:subtitle>P 2 3</jcrtest:subtitle>
|
||||
<jcrtest:content>penguin, hawk, dove</jcrtest:content>
|
||||
</jcrtest:testpara>
|
||||
</jcrtest:children>
|
||||
</jcrtest:testdoc>
|
||||
</jcrtest:children>
|
||||
</jcrtest:testtype>
|
||||
|
||||
</jcrtest:children>
|
||||
</jcrtest:testtype>
|
||||
|
||||
</view:view>
|
152
source/java/org/alfresco/jcr/test/testModel.xml
Normal file
152
source/java/org/alfresco/jcr/test/testModel.xml
Normal file
@@ -0,0 +1,152 @@
|
||||
<model name="jcrtest:jcrtestmodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
|
||||
|
||||
<description>JCR Test Model Definitions</description>
|
||||
<version>1.0</version>
|
||||
|
||||
<imports>
|
||||
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
|
||||
<import uri="http://www.alfresco.org/model/system/1.0" prefix="sys"/>
|
||||
<import uri="" prefix=""/>
|
||||
</imports>
|
||||
|
||||
<namespaces>
|
||||
<namespace uri="http://www.alfresco.org/test/jcr/1.0" prefix="jcrtest"/>
|
||||
</namespaces>
|
||||
|
||||
<types>
|
||||
<type name="jcrtest:basetesttype">
|
||||
<title>Base Test Type</title>
|
||||
<parent>sys:base</parent>
|
||||
<associations>
|
||||
<child-association name="jcrtest:children">
|
||||
<target>
|
||||
<class>sys:base</class>
|
||||
</target>
|
||||
</child-association>
|
||||
</associations>
|
||||
</type>
|
||||
|
||||
<type name="jcrtest:testtype">
|
||||
<title>Test Type</title>
|
||||
<parent>jcrtest:basetesttype</parent>
|
||||
<properties>
|
||||
<property name="jcrtest:booleanProp">
|
||||
<type>d:boolean</type>
|
||||
</property>
|
||||
<property name="jcrtest:dateProp">
|
||||
<type>d:date</type>
|
||||
</property>
|
||||
<property name="jcrtest:doubleProp">
|
||||
<type>d:double</type>
|
||||
</property>
|
||||
<property name="jcrtest:longProp">
|
||||
<type>d:long</type>
|
||||
</property>
|
||||
<property name="jcrtest:nameProp">
|
||||
<type>d:qname</type>
|
||||
</property>
|
||||
<property name="jcrtest:stringProp">
|
||||
<type>d:text</type>
|
||||
</property>
|
||||
<property name="jcrtest:multiProp">
|
||||
<type>d:text</type>
|
||||
<multiple>true</multiple>
|
||||
</property>
|
||||
<property name="jcrtest:prop1">
|
||||
<type>d:text</type>
|
||||
</property>
|
||||
</properties>
|
||||
</type>
|
||||
|
||||
<type name="jcrtest:testdoc">
|
||||
<title>Test Doc Type</title>
|
||||
<parent>jcrtest:basetesttype</parent>
|
||||
<properties>
|
||||
<property name="jcrtest:title">
|
||||
<type>d:text</type>
|
||||
</property>
|
||||
</properties>
|
||||
</type>
|
||||
|
||||
<type name="jcrtest:testpara">
|
||||
<title>Test Doc Type</title>
|
||||
<parent>sys:base</parent>
|
||||
<properties>
|
||||
<property name="jcrtest:subtitle">
|
||||
<type>d:text</type>
|
||||
</property>
|
||||
<property name="jcrtest:content">
|
||||
<type>d:text</type>
|
||||
</property>
|
||||
</properties>
|
||||
</type>
|
||||
|
||||
<type name="jcrtest:testsetprop">
|
||||
<title>Test Set Properties</title>
|
||||
<parent>jcrtest:basetesttype</parent>
|
||||
<properties>
|
||||
<property name="jcrtest:setBoolean">
|
||||
<type>d:boolean</type>
|
||||
</property>
|
||||
<property name="jcrtest:setMultiBoolean">
|
||||
<type>d:boolean</type>
|
||||
<multiple>true</multiple>
|
||||
</property>
|
||||
<property name="jcrtest:setDate">
|
||||
<type>d:date</type>
|
||||
</property>
|
||||
<property name="jcrtest:setMultiDate">
|
||||
<type>d:date</type>
|
||||
<multiple>true</multiple>
|
||||
</property>
|
||||
<property name="jcrtest:setDouble">
|
||||
<type>d:double</type>
|
||||
</property>
|
||||
<property name="jcrtest:setMultiDouble">
|
||||
<type>d:double</type>
|
||||
<multiple>true</multiple>
|
||||
</property>
|
||||
<property name="jcrtest:setLong">
|
||||
<type>d:long</type>
|
||||
</property>
|
||||
<property name="jcrtest:setMultiLong">
|
||||
<type>d:long</type>
|
||||
<multiple>true</multiple>
|
||||
</property>
|
||||
<property name="jcrtest:setName">
|
||||
<type>d:qname</type>
|
||||
</property>
|
||||
<property name="jcrtest:setMultiName">
|
||||
<type>d:qname</type>
|
||||
<multiple>true</multiple>
|
||||
</property>
|
||||
<property name="jcrtest:setString">
|
||||
<type>d:text</type>
|
||||
</property>
|
||||
<property name="jcrtest:setMultiString">
|
||||
<type>d:text</type>
|
||||
<multiple>true</multiple>
|
||||
</property>
|
||||
<property name="jcrtest:setContent">
|
||||
<type>d:content</type>
|
||||
</property>
|
||||
<property name="jcrtest:setNodeRef">
|
||||
<type>d:noderef</type>
|
||||
</property>
|
||||
<property name="jcrtest:setMultiNodeRef">
|
||||
<type>d:noderef</type>
|
||||
<multiple>true</multiple>
|
||||
</property>
|
||||
<property name="jcrtest:setAny">
|
||||
<type>d:any</type>
|
||||
</property>
|
||||
<property name="jcrtest:setMultipleAny">
|
||||
<type>d:any</type>
|
||||
<multiple>true</multiple>
|
||||
</property>
|
||||
</properties>
|
||||
</type>
|
||||
|
||||
</types>
|
||||
|
||||
</model>
|
Reference in New Issue
Block a user