Merged CMIS063 to HEAD

15929: Incorporate Chemistry TCK into Alfresco

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@17237 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
David Caruana
2009-10-29 17:23:46 +00:00
parent 0e526dc4d1
commit d37d203c73
52 changed files with 64 additions and 10540 deletions

View File

@@ -5,8 +5,8 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Alfresco CMIS</title>
<link rel="stylesheet" href="/css-boilerplate/screen.css" type="text/css" media="screen" charset="utf-8">
<!--[if lte IE 6]><link rel="stylesheet" href="/css-boilerplate/lib/ie.css" type="text/css" media="screen" charset="utf-8"><![endif]-->
<link rel="stylesheet" href="${url.context}/css-boilerplate/screen.css" type="text/css" media="screen" charset="utf-8">
<!--[if lte IE 6]><link rel="stylesheet" href="${url.context}/css-boilerplate/lib/ie.css" type="text/css" media="screen" charset="utf-8"><![endif]-->
<script type="text/javascript">
function toggleDisplay(toggle)
{
@@ -30,7 +30,7 @@
<div id="page">
<div id="header">
<a href="http://www.alfresco.com"><img id="alflogo" src="/images/logo/AlfrescoLogo200.png"/></a><a href="http://www.oasis-open.org/committees/cmis"><img id="alflogo" height="55px" src="/images/logo/cmis_logo_100.png"/></a>
<a href="http://www.alfresco.com"><img id="alflogo" src="${url.context}/images/logo/AlfrescoLogo200.png"/></a><a href="http://www.oasis-open.org/committees/cmis"><img id="alflogo" height="55px" src="${url.context}/images/logo/cmis_logo_100.png"/></a>
</div>
<div id="body" class="wrapper">
@@ -83,22 +83,24 @@
<h3>CMIS AtomPub TCK</h3>
<p>Point the TCK (Test Compatibility Kit) at your CMIS Repository AtomPub Service Document. Provide credentials (or leave blank, if authentication not required) and adjust options as necessary. Hit the '<strong>Start TCK</strong>' button for a test report.</p>
<p><em>Tip: Enable the 'Trace Reqs/Responses' option for examples of conversations with a CMIS Repository via AtomPub.</em></p>
<p><em>Note: We have re-packaged and contributed this TCK to <a href="http://incubator.apache.org/chemistry/">Apache Chemistry</a>. We'll very soon replace this TCK with the Apache Chemistry version.</em></p>
<p><em>Note: This TCK is now contributed to <a href="http://incubator.apache.org/chemistry/">Apache Chemistry</a>.</em></p>
<form action="${url.serviceContext}/api/cmis/test" method="post" class="hform">
<fieldset>
<legend>CMIS Repository</legend>
<p><label>Service Document</label><input type="text" name="url" size="50" value="${absurl(url.serviceContext)}/api/cmis"></p>
<p><label>Username/Password</label><input type="text" name="user" value="admin/admin"></p>
<p><label>Service Document</label><input type="text" name="chemistry.tck.serviceUrl" size="50" value="${absurl(url.serviceContext)}/api/cmis"></p>
<p><label>Username</label><input type="text" name="chemistry.tck.user" value="admin"></p>
<p><label>Password</label><input type="text" name="chemistry.tck.password" value="admin"></p>
</fieldset>
<fieldset>
<legend>Options</legend>
<p class="checkbox"><label>Validate Responses</label><input type="checkbox" name="validate" value="true" checked="checked"></p>
<p class="checkbox"><label>Trace Reqs/Responses</label><input type="checkbox" name="trace" value="true"><p>
<p><label>Tests (use * for wildcard)</label><input name="tests" value="*"></p>
<p><label><span id="availtests" class="toggle" onclick="return toggleDisplay(this)">+</span> Available Tests</label>
<p class="checkbox"><label>Validate Responses</label><input type="checkbox" name="chemistry.tck.validate" value="true"[#if tckOptions.validate] checked="checked"[/#if]></p>
<p class="checkbox"><label>Fail on Validation Error</label><input type="checkbox" name="chemistry.tck.failOnValidationError" value="true"[#if tckOptions.failOnValidationError] checked="checked"[/#if]></p>
<p class="checkbox"><label>Trace Reqs/Responses</label><input type="checkbox" name="chemistry.tck.traceRequests" value="true"[#if tckOptions.traceRequests] checked="checked"[/#if]><p>
<p><label>Tests</label><input name="chemistry.tck.tests" value="RepositoryServiceTest.testRepository"></p>
<p><label><span id="availtests" class="toggle" onclick="return toggleDisplay(this)">[+]</span> Available Tests</label>
<table id="availtests_body" style="display: none;">
[#list tests as test]<tr><td>${test}</td></tr>[/#list]
[#list tckTests as test]<tr><td>${test}</td></tr>[/#list]
</table></p>
</fieldset>
<p><input type="submit" name="submit" value="Start TCK" class="button"></p>
@@ -116,8 +118,13 @@
<ul>
<li><a href="http://wiki.alfresco.com/wiki/CMIS">CMIS Wiki</a></li>
<li><a href="http://blogs.alfresco.com/cmis/">CMIS Blog</a></li>
<li><a href="http://wiki.alfresco.com/wiki/Download_Community_Edition">Download</a> Repository and TCK</a></li>
<li><a href="http://wiki.alfresco.com/wiki/Alfresco_SVN_Development_Environment">Source Code</a> for Repository and TCK</li>
<li><a href="http://wiki.alfresco.com/wiki/Download_Community_Edition">Download</a> Repository</a></li>
<li><a href="http://wiki.alfresco.com/wiki/Alfresco_SVN_Development_Environment">Source Code</a> for Repository</li>
</ul>
<h3>Apache Chemistry</h3>
<ul>
<li><a href="http://incubator.apache.org/chemistry/">Home Page</a></li>
<li><a href="http://svn.apache.org/viewvc/incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/">Source Code</a> for TCK</li>
</ul>
<h3>Provide Feedback</h3>
<ul>

View File

@@ -1,5 +1,6 @@
var testRunner = Packages.org.alfresco.repo.cmis.rest.test.CMISTestRunner();
model.tests = testRunner.getTestNames("*");
var tckRunner = Packages.org.apache.chemistry.tck.atompub.tools.TCKRunner();
model.tckTests = tckRunner.getTestNames();
model.tckOptions = tckRunner.getOptions();
model.cmisVersion = cmis.version;
model.querySupport = cmis.querySupport.label;
model.joinSupport = cmis.joinSupport.label;

View File

@@ -1,675 +0,0 @@
/*
* Copyright (C) 2005-2007 Alfresco Software Limited.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* As a special exception to the terms and conditions of version 2.0 of
* the GPL, you may redistribute this Program in connection with Free/Libre
* and Open Source Software ("FLOSS") applications as described in Alfresco's
* FLOSS exception. You should have recieved a copy of the text describing
* the FLOSS exception, and it is also available here:
* http://www.alfresco.com/legal/licensing"
*/
package org.alfresco.repo.cmis.rest.test;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintStream;
import java.io.StringReader;
import java.io.StringWriter;
import java.util.List;
import java.util.Map;
import javax.activation.MimeType;
import javax.activation.MimeTypeParseException;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.transform.dom.DOMSource;
import javax.xml.validation.Validator;
import junit.framework.Test;
import org.alfresco.abdera.ext.cmis.CMISCapabilities;
import org.alfresco.abdera.ext.cmis.CMISConstants;
import org.alfresco.abdera.ext.cmis.CMISExtensionFactory;
import org.alfresco.abdera.ext.cmis.CMISObject;
import org.alfresco.abdera.ext.cmis.CMISRepositoryInfo;
import org.alfresco.error.AlfrescoRuntimeException;
import org.alfresco.repo.cmis.rest.xsd.CMISValidator;
import org.alfresco.repo.web.scripts.BaseWebScriptTest;
import org.alfresco.service.cmr.repository.NodeRef;
import org.alfresco.util.Base64;
import org.alfresco.web.scripts.Format;
import org.alfresco.web.scripts.TestWebScriptServer.GetRequest;
import org.alfresco.web.scripts.TestWebScriptServer.PostRequest;
import org.alfresco.web.scripts.TestWebScriptServer.Request;
import org.alfresco.web.scripts.TestWebScriptServer.Response;
import org.alfresco.web.scripts.atom.AbderaService;
import org.alfresco.web.scripts.atom.AbderaServiceImpl;
import org.apache.abdera.i18n.iri.IRI;
import org.apache.abdera.model.Collection;
import org.apache.abdera.model.Entry;
import org.apache.abdera.model.Feed;
import org.apache.abdera.model.Link;
import org.apache.abdera.model.Service;
import org.apache.abdera.model.Workspace;
import org.w3c.dom.Document;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
/**
* Base CMIS Web Script Test
*
* @author davidc
*/
public class BaseCMISWebScriptTest extends BaseWebScriptTest
{
// Repository Access
private String serviceUrl = "http://localhost:8080/alfresco/service/api/repository";
// validation support
private CMISValidator cmisValidator = new CMISValidator();
private boolean validateResponse = true;
// cached responses
private AbderaService abdera;
private Service service = null;
private String queryCapability = null;
private Entry testRootFolder = null;
private Entry testRunFolder = null;
/**
* Sets the Repository Service URL
*
* @param serviceUrl serviceURL
*/
public void setServiceUrl(String serviceUrl)
{
this.serviceUrl = serviceUrl;
}
/**
* Validate Response
*
* @param validateResponse
*/
protected void setValidateResponse(boolean validateResponse)
{
this.validateResponse = validateResponse;
}
@Override
protected void setUp()
throws Exception
{
// setup client atom support
AbderaServiceImpl abderaImpl = new AbderaServiceImpl();
abderaImpl.afterPropertiesSet();
abderaImpl.registerExtensionFactory(new CMISExtensionFactory());
abdera = abderaImpl;
super.setUp();
}
/**
* Gets the Abdera Service
*
* @return abdera service
*/
protected AbderaService getAbdera()
{
return abdera;
}
/**
* Gets CMIS Validator
*
* @return CMIS Validator
*/
protected CMISValidator getCMISValidator()
{
return cmisValidator;
}
/**
* Gets CMIS App Validator
*
* @return CMIS App Validator
*
* @throws SAXException
* @throws IOException
*/
protected Validator getAppValidator()
throws IOException, SAXException
{
return getCMISValidator().getAppValidator();
}
/**
* Gets CMIS Atom Validator
*
* @return CMIS App Validator
*
* @throws SAXException
* @throws IOException
*/
protected Validator getAtomValidator()
throws IOException, SAXException
{
return getCMISValidator().getCMISAtomValidator();
}
/**
* Asserts XML complies with specified Validator
*
* @param xml xml to assert
* @param validator validator to assert with
* @throws IOException
* @throws ParserConfigurationException
*/
protected void assertValidXML(String xml, Validator validator)
throws IOException, ParserConfigurationException
{
if (validateResponse)
{
try
{
Document document = cmisValidator.getDocumentBuilder().parse(new InputSource(new StringReader(xml)));
validator.validate(new DOMSource(document));
}
catch (SAXException e)
{
fail(cmisValidator.toString(e, xml));
}
}
}
/**
* Load text from file specified by class path
*
* @param classPath XML file
* @return XML
* @throws IOException
*/
protected String loadString(String classPath)
throws IOException
{
InputStream input = getClass().getResourceAsStream(classPath);
if (input == null)
{
throw new IOException(classPath + " not found.");
}
InputStreamReader reader = new InputStreamReader(input, "UTF-8");
StringWriter writer = new StringWriter();
try
{
char[] buffer = new char[4096];
int bytesRead = -1;
while ((bytesRead = reader.read(buffer)) != -1)
{
writer.write(buffer, 0, bytesRead);
}
writer.flush();
}
finally
{
reader.close();
writer.close();
}
return writer.toString();
}
/**
* Send Request to Test Web Script Server (as admin)
*
* @param req
* @param expectedStatus
* @return response
* @throws IOException
*/
protected Response sendRequest(Request req, int expectedStatus, Validator responseValidator)
throws IOException
{
return sendRequest(req, expectedStatus, responseValidator, null);
}
/**
* Send Request
*
* @param req
* @param expectedStatus
* @param asUser
* @return response
* @throws IOException
*/
protected Response sendRequest(Request req, int expectedStatus, Validator responseValidator, String asUser)
throws IOException
{
Response res = sendRequest(req, expectedStatus, asUser);
if (responseValidator != null)
{
try
{
// Validate response according to validator
String resXML = res.getContentAsString();
assertValidXML(resXML, responseValidator);
}
catch (ParserConfigurationException e)
{
throw new AlfrescoRuntimeException("Failed to validate", e);
}
}
return res;
}
/**
* Default Test Listener
*/
public static class CMISTestListener extends BaseWebScriptTestListener implements WebScriptTestListener
{
/**
* Construct
*
* @param writer
*/
public CMISTestListener(PrintStream writer)
{
super(writer);
}
/* (non-Javadoc)
* @see junit.textui.ResultPrinter#startTest(junit.framework.Test)
*/
@Override
public void startTest(Test test)
{
BaseCMISWebScriptTest cmisTest = (BaseCMISWebScriptTest)test;
getWriter().println();
getWriter().println("*** Test started: " + cmisTest.getName() + " (remote: " + (cmisTest.getRemoteServer() != null) + ")");
}
}
//
// General Abdera Helpers
//
protected Entry getEntry(IRI href)
throws Exception
{
return getEntry(href, null);
}
protected Entry getEntry(IRI href, Map<String, String> args)
throws Exception
{
Request get = new GetRequest(href.toString()).setArgs(args);
Response res = sendRequest(get, 200, getAtomValidator());
assertNotNull(res);
String xml = res.getContentAsString();
Entry entry = abdera.parseEntry(new StringReader(xml), null);
assertNotNull(entry);
// TODO: fix up self links with arguments
if (args == null)
{
assertEquals(get.getFullUri(), entry.getSelfLink().getHref().toString());
}
return entry;
}
protected Feed getFeed(IRI href)
throws Exception
{
return getFeed(href, null);
}
protected Feed getFeed(IRI href, Map<String, String> args)
throws Exception
{
Request get = new GetRequest(href.toString()).setArgs(args);
Response res = sendRequest(get, 200, getAtomValidator());
assertNotNull(res);
String xml = res.getContentAsString();
Feed feed = abdera.parseFeed(new StringReader(xml), null);
assertNotNull(feed);
assertEquals(get.getFullUri(), feed.getSelfLink().getHref().toString());
return feed;
}
//
// General CMIS Helpers
//
protected Service getRepository()
throws Exception
{
if (service == null)
{
Response res = sendRequest(new GetRequest(serviceUrl), 200, getAppValidator());
String xml = res.getContentAsString();
assertNotNull(xml);
assertTrue(xml.length() > 0);
service = abdera.parseService(new StringReader(xml), null);
assertNotNull(service);
}
return service;
}
protected String getQueryCapability()
throws Exception
{
if (queryCapability == null)
{
Service repo = getRepository();
Workspace workspace = getWorkspace(repo);
CMISRepositoryInfo repoInfo = workspace.getExtension(CMISConstants.REPOSITORY_INFO);
assertNotNull(repoInfo);
CMISCapabilities capabilities = repoInfo.getCapabilities();
assertNotNull(repoInfo);
queryCapability = capabilities.getQuery();
assertNotNull(queryCapability);
}
return queryCapability;
}
protected Workspace getWorkspace(Service service)
{
return service.getWorkspaces().get(0);
}
protected Collection getCMISCollection(Workspace workspace, String collectionId)
{
List<Collection> collections = workspace.getCollections();
for (Collection collection : collections)
{
String id = collection.getAttributeValue(CMISConstants.COLLECTION_TYPE);
if (id != null && id.equals(collectionId))
{
return collection;
}
}
return null;
}
protected IRI getRootCollection(Workspace workspace)
{
Collection root = getCMISCollection(workspace, CMISConstants.COLLECTION_ROOT);
assertNotNull(root);
IRI rootHREF = root.getHref();
assertNotNull(rootHREF);
return rootHREF;
}
protected IRI getCheckedOutCollection(Workspace workspace)
{
Collection root = getCMISCollection(workspace, CMISConstants.COLLECTION_CHECKEDOUT);
assertNotNull(root);
IRI rootHREF = root.getHref();
assertNotNull(rootHREF);
return rootHREF;
}
protected IRI getTypesChildrenCollection(Workspace workspace)
{
Collection root = getCMISCollection(workspace, CMISConstants.COLLECTION_TYPES);
assertNotNull(root);
IRI rootHREF = root.getHref();
assertNotNull(rootHREF);
return rootHREF;
}
protected IRI getQueryCollection(Workspace workspace)
{
Collection root = getCMISCollection(workspace, CMISConstants.COLLECTION_QUERY);
assertNotNull(root);
IRI rootHREF = root.getHref();
assertNotNull(rootHREF);
return rootHREF;
}
protected Link getLink(Entry entry, String rel, String... matchesMimetypes)
{
List<Link> links = entry.getLinks(rel);
if (links != null)
{
for (Link link : links)
{
MimeType mimetype = link.getMimeType();
if (matchesMimetypes.length == 0)
{
if (links.size() == 1)
{
// take the single link regardless of type
return link;
}
else if (mimetype == null)
{
// take the link if it doesn't have a type
return link;
}
}
for (String matchesMimetype : matchesMimetypes)
{
try
{
if (mimetype != null && mimetype.match(matchesMimetype))
{
return link;
}
}
catch (MimeTypeParseException e)
{
// note: not a match
}
}
}
}
return null;
}
protected Link getChildrenLink(Entry entry)
{
return getLink(entry, CMISConstants.REL_DOWN, CMISConstants.MIMETYPE_FEED);
}
protected Link getDescendantsLink(Entry entry)
{
return getLink(entry, CMISConstants.REL_DOWN, CMISConstants.MIMETYPE_CMISTREE);
}
protected Link getFolderTreeLink(Entry entry)
{
return getLink(entry, CMISConstants.REL_FOLDER_TREE, CMISConstants.MIMETYPE_CMISTREE);
}
protected Link getObjectParentsLink(Entry entry)
{
return getLink(entry, CMISConstants.REL_UP, CMISConstants.MIMETYPE_FEED);
}
protected Link getFolderParentLink(Entry entry)
{
return getLink(entry, CMISConstants.REL_UP, CMISConstants.MIMETYPE_ENTRY);
}
protected Entry createFolder(IRI parent, String name)
throws Exception
{
return createFolder(parent, name, "/org/alfresco/repo/cmis/rest/test/createfolder.atomentry.xml");
}
protected Entry createFolder(IRI parent, String name, String atomEntryFile)
throws Exception
{
String createFolder = loadString(atomEntryFile);
createFolder = createFolder.replace("${NAME}", name);
Response res = sendRequest(new PostRequest(parent.toString(), createFolder, Format.ATOMENTRY.mimetype()), 201, getAtomValidator());
assertNotNull(res);
String xml = res.getContentAsString();
Entry entry = abdera.parseEntry(new StringReader(xml), null);
assertNotNull(entry);
assertEquals(name, entry.getTitle());
//assertEquals(name + " (summary)", entry.getSummary());
CMISObject object = entry.getExtension(CMISConstants.OBJECT);
assertEquals(CMISConstants.TYPE_FOLDER, object.getBaseTypeId().getStringValue());
String testFolderHREF = (String)res.getHeader("Location");
assertNotNull(testFolderHREF);
return entry;
}
protected Entry createDocument(IRI parent, String name)
throws Exception
{
return createDocument(parent, name, "/org/alfresco/repo/cmis/rest/test/createdocument.atomentry.xml");
}
protected Entry createDocument(IRI parent, String name, String atomEntryFile)
throws Exception
{
String createFile = loadString(atomEntryFile);
createFile = createFile.replace("${NAME}", name);
// determine if creating content via mediatype
Entry createEntry = abdera.parseEntry(new StringReader(createFile), null);
MimeType mimeType = createEntry.getContentMimeType();
boolean mediaType = (mimeType != null);
createFile = createFile.replace("${CONTENT}", mediaType ? Base64.encodeBytes(name.getBytes()) : name);
Response res = sendRequest(new PostRequest(parent.toString(), createFile, Format.ATOMENTRY.mimetype()), 201, getAtomValidator());
assertNotNull(res);
String xml = res.getContentAsString();
Entry entry = abdera.parseEntry(new StringReader(xml), null);
assertNotNull(entry);
assertEquals(name, entry.getTitle());
//assertEquals(name + " (summary)", entry.getSummary());
assertNotNull(entry.getContentSrc());
CMISObject object = entry.getExtension(CMISConstants.OBJECT);
assertEquals(CMISConstants.TYPE_DOCUMENT, object.getBaseTypeId().getStringValue());
String testFileHREF = (String)res.getHeader("Location");
assertNotNull(testFileHREF);
return entry;
}
protected Entry createRelationship(IRI parent, String type, String targetId)
throws Exception
{
return createRelationship(parent, type, targetId, "/org/alfresco/repo/cmis/rest/test/createrelationship.atomentry.xml");
}
protected Entry createRelationship(IRI parent, String type, String targetId, String atomEntryFile)
throws Exception
{
String createFile = loadString(atomEntryFile);
createFile = createFile.replace("${RELTYPE}", type);
createFile = createFile.replace("${TARGETID}", targetId);
Response res = sendRequest(new PostRequest(parent.toString(), createFile, Format.ATOMENTRY.mimetype()), 201, getAtomValidator());
assertNotNull(res);
String xml = res.getContentAsString();
Entry entry = abdera.parseEntry(new StringReader(xml), null);
assertNotNull(entry);
CMISObject object = entry.getExtension(CMISConstants.OBJECT);
assertEquals(CMISConstants.TYPE_RELATIONSHIP, object.getBaseTypeId().getStringValue());
assertEquals(targetId, object.getTargetId().getStringValue());
String testFileHREF = (String)res.getHeader("Location");
assertNotNull(testFileHREF);
return entry;
}
//
// General Test Helpers
//
protected Entry getTestRootFolder()
throws Exception
{
if (testRootFolder == null)
{
testRootFolder = createTestRootFolder();
}
return testRootFolder;
}
protected Entry createTestRootFolder()
throws Exception
{
Service service = getRepository();
IRI rootFolderHREF = getRootCollection(getWorkspace(service));
// TODO: Convert to query
Feed children = getFeed(rootFolderHREF);
for (Entry child : children.getEntries())
{
if (child.getTitle().equals("CMIS Tests"))
{
return child;
}
}
// not found, create it
return createFolder(rootFolderHREF, "CMIS Tests");
}
protected Entry getTestRunFolder()
throws Exception
{
if (testRunFolder == null)
{
testRunFolder = createTestRunFolder();
}
return testRunFolder;
}
protected Entry createTestRunFolder()
throws Exception
{
Entry testRootFolder = getTestRootFolder();
Link testsChildrenLink = getChildrenLink(testRootFolder);
return createFolder(testsChildrenLink.getHref(), "Test Run " + System.currentTimeMillis());
}
protected Entry createTestFolder(String name)
throws Exception
{
Entry testRunFolder = getTestRunFolder();
Link childrenLink = getChildrenLink(testRunFolder);
assertNotNull(childrenLink);
Entry testFolder = createFolder(childrenLink.getHref(), name + " " + System.currentTimeMillis());
return testFolder;
}
//
// Alfresco specific helpers
//
protected NodeRef getNodeRef(Entry entry)
{
NodeRef nodeRef = null;
CMISObject object = entry.getExtension(CMISConstants.OBJECT);
if (object != null)
{
String strNodeRef = object.getObjectId().getStringValue();
if (strNodeRef != null)
{
nodeRef = new NodeRef(strNodeRef);
}
}
return nodeRef;
}
}

View File

@@ -1,453 +0,0 @@
/*
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* Copyright (C) 2005-2008 Alfresco Software Limited.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* As a special exception to the terms and conditions of version 2.0 of
* the GPL, you may redistribute this Program in connection with Free/Libre
* and Open Source Software ("FLOSS") applications as described in Alfresco's
* FLOSS exception. You should have recieved a copy of the text describing
* the FLOSS exception, and it is also available here:
* http://www.alfresco.com/legal/licensing"
*/
package org.alfresco.repo.cmis.rest.test;
import java.io.StringReader;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.alfresco.abdera.ext.cmis.CMISConstants;
import org.alfresco.abdera.ext.cmis.CMISObject;
import org.alfresco.abdera.ext.cmis.CMISProperties;
import org.alfresco.abdera.ext.cmis.CMISProperty;
import org.alfresco.repo.cmis.rest.CMISScript;
import org.alfresco.util.GUID;
import org.alfresco.web.scripts.Format;
import org.alfresco.web.scripts.TestWebScriptServer.DeleteRequest;
import org.alfresco.web.scripts.TestWebScriptServer.GetRequest;
import org.alfresco.web.scripts.TestWebScriptServer.PatchRequest;
import org.alfresco.web.scripts.TestWebScriptServer.PostRequest;
import org.alfresco.web.scripts.TestWebScriptServer.PutRequest;
import org.alfresco.web.scripts.TestWebScriptServer.Response;
import org.apache.abdera.i18n.iri.IRI;
import org.apache.abdera.model.Entry;
import org.apache.abdera.model.Feed;
import org.apache.abdera.model.Link;
/**
* CMIS API Test Harness
*
* @author davidc
*/
public class CMISCustomTypeTest extends BaseCMISWebScriptTest
{
private static String TEST_NAMESPACE = "http://www.alfresco.org/model/cmis/custom";
@Override
protected void setUp()
throws Exception
{
// Uncomment to change default behaviour of tests
setCustomContext("classpath:cmis/cmis-test-context.xml");
setDefaultRunAs("admin");
// RemoteServer server = new RemoteServer();
// server.username = "admin";
// server.password = "admin";
// setRemoteServer(server);
// setArgsAsHeaders(false);
// setValidateResponse(false);
// setListener(new CMISTestListener(System.out));
// setTraceReqRes(true);
super.setUp();
}
public void testCreateFolder()
throws Exception
{
Entry testFolder = createTestFolder("testCreateCustomFolder");
Link childrenLink = getChildrenLink(testFolder);
assertNotNull(childrenLink);
Feed children = getFeed(childrenLink.getHref());
assertNotNull(children);
int entriesBefore = children.getEntries().size();
Entry folder = createFolder(children.getSelfLink().getHref(), "testCreateCustomFolder", "/org/alfresco/repo/cmis/rest/test/createcustomfolder.atomentry.xml");
Feed feedFolderAfter = getFeed(childrenLink.getHref());
int entriesAfter = feedFolderAfter.getEntries().size();
assertEquals(entriesBefore +1, entriesAfter);
Entry entry = feedFolderAfter.getEntry(folder.getId().toString());
CMISObject object = entry.getExtension(CMISConstants.OBJECT);
assertEquals("F/cmiscustom:folder", object.getObjectTypeId().getStringValue());
CMISProperty customProp = object.getProperties().find("cmiscustom:folderprop_string");
assertNotNull(customProp);
assertEquals("custom string", customProp.getStringValue());
}
public void testCreateDocument()
throws Exception
{
Entry testFolder = createTestFolder("testCreateCustomDocument");
Link childrenLink = getChildrenLink(testFolder);
assertNotNull(childrenLink);
Feed children = getFeed(childrenLink.getHref());
assertNotNull(children);
int entriesBefore = children.getEntries().size();
Entry document = createDocument(children.getSelfLink().getHref(), "testCreateCustomDocument", "/org/alfresco/repo/cmis/rest/test/createcustomdocument.atomentry.xml");
Feed feedFolderAfter = getFeed(childrenLink.getHref());
int entriesAfter = feedFolderAfter.getEntries().size();
assertEquals(entriesBefore +1, entriesAfter);
Entry entry = feedFolderAfter.getEntry(document.getId().toString());
CMISObject object = entry.getExtension(CMISConstants.OBJECT);
assertEquals("D/cmiscustom:document", object.getObjectTypeId().getStringValue());
CMISProperty customProp = object.getProperties().find("cmiscustom:docprop_string");
assertNotNull(customProp);
assertEquals("custom string", customProp.getStringValue());
CMISProperty multiProp = object.getProperties().find("cmiscustom:docprop_boolean_multi");
assertNotNull(multiProp);
List<Object> multiValues = multiProp.getNativeValues();
assertNotNull(multiValues);
assertEquals(2, multiValues.size());
assertEquals(true, multiValues.get(0));
assertEquals(false, multiValues.get(1));
}
public void testUpdatePatch()
throws Exception
{
// retrieve test folder for update
Entry testFolder = createTestFolder("testUpdatePatchCustomDocument");
Link childrenLink = getChildrenLink(testFolder);
// create document for update
Entry document = createDocument(childrenLink.getHref(), "testUpdatePatchCustomDocument", "/org/alfresco/repo/cmis/rest/test/createcustomdocument.atomentry.xml");
assertNotNull(document);
// update
String updateFile = loadString("/org/alfresco/repo/cmis/rest/test/updatecustomdocument.atomentry.xml");
String guid = GUID.generate();
updateFile = updateFile.replace("${NAME}", guid);
Response res = sendRequest(new PatchRequest(document.getSelfLink().getHref().toString(), updateFile, Format.ATOMENTRY.mimetype()), 200, getAtomValidator());
assertNotNull(res);
Entry updated = getAbdera().parseEntry(new StringReader(res.getContentAsString()), null);
// ensure update occurred
assertEquals(document.getId(), updated.getId());
assertEquals(document.getPublished(), updated.getPublished());
assertEquals("Updated Title " + guid, updated.getTitle());
CMISObject object = updated.getExtension(CMISConstants.OBJECT);
assertEquals("D/cmiscustom:document", object.getObjectTypeId().getStringValue());
CMISProperty customProp = object.getProperties().find("cmiscustom:docprop_string");
assertNotNull(customProp);
assertEquals("custom " + guid, customProp.getStringValue());
CMISProperty multiProp = object.getProperties().find("cmiscustom:docprop_boolean_multi");
assertNotNull(multiProp);
List<Object> multiValues = multiProp.getNativeValues();
assertNotNull(multiValues);
assertEquals(2, multiValues.size());
assertEquals(false, multiValues.get(0));
assertEquals(true, multiValues.get(1));
}
public void testUpdatePut()
throws Exception
{
// retrieve test folder for update
Entry testFolder = createTestFolder("testUpdatePutCustomDocument");
Link childrenLink = getChildrenLink(testFolder);
// create document for update
Entry document = createDocument(childrenLink.getHref(), "testUpdatePutCustomDocument", "/org/alfresco/repo/cmis/rest/test/createcustomdocument.atomentry.xml");
assertNotNull(document);
// update
String updateFile = loadString("/org/alfresco/repo/cmis/rest/test/updatecustomdocument.atomentry.xml");
String guid = GUID.generate();
updateFile = updateFile.replace("${NAME}", guid);
Response res = sendRequest(new PutRequest(document.getSelfLink().getHref().toString(), updateFile, Format.ATOMENTRY.mimetype()), 200, getAtomValidator());
assertNotNull(res);
Entry updated = getAbdera().parseEntry(new StringReader(res.getContentAsString()), null);
// ensure update occurred
assertEquals(document.getId(), updated.getId());
assertEquals(document.getPublished(), updated.getPublished());
assertEquals("Updated Title " + guid, updated.getTitle());
CMISObject object = updated.getExtension(CMISConstants.OBJECT);
assertEquals("D/cmiscustom:document", object.getObjectTypeId().getStringValue());
CMISProperty customProp = object.getProperties().find("cmiscustom:docprop_string");
assertNotNull(customProp);
assertEquals("custom " + guid, customProp.getStringValue());
CMISProperty multiProp = object.getProperties().find("cmiscustom:docprop_boolean_multi");
assertNotNull(multiProp);
List<Object> multiValues = multiProp.getNativeValues();
assertNotNull(multiValues);
assertEquals(2, multiValues.size());
assertEquals(false, multiValues.get(0));
assertEquals(true, multiValues.get(1));
}
public void testDelete()
throws Exception
{
// retrieve test folder for deletes
Entry testFolder = createTestFolder("testDeleteCustom");
Link childrenLink = getChildrenLink(testFolder);
Feed children = getFeed(childrenLink.getHref());
int entriesBefore = children.getEntries().size();
// create document for delete
Entry document = createDocument(childrenLink.getHref(), "testDeleteCustomDocument", "/org/alfresco/repo/cmis/rest/test/createcustomdocument.atomentry.xml");
Response documentRes = sendRequest(new GetRequest(document.getSelfLink().getHref().toString()), 200, getAtomValidator());
assertNotNull(documentRes);
// ensure document has been created
Feed children2 = getFeed(childrenLink.getHref());
assertNotNull(children2);
int entriesAfterCreate = children2.getEntries().size();
assertEquals(entriesAfterCreate, entriesBefore +1);
// delete
Response deleteRes = sendRequest(new DeleteRequest(document.getSelfLink().getHref().toString()), 204);
assertNotNull(deleteRes);
// ensure document has been deleted
Feed children3 = getFeed(childrenLink.getHref());
assertNotNull(children3);
int entriesAfterDelete = children3.getEntries().size();
assertEquals(entriesBefore, entriesAfterDelete);
}
public void testQuery()
throws Exception
{
// retrieve query collection
IRI queryHREF = getQueryCollection(getWorkspace(getRepository()));
// retrieve test folder for query
Entry testFolder = createTestFolder("testQueryCustom");
CMISObject testFolderObject = testFolder.getExtension(CMISConstants.OBJECT);
Link childrenLink = getChildrenLink(testFolder);
// create documents to query
// Standard root document
Entry document1 = createDocument(childrenLink.getHref(), "apple1");
assertNotNull(document1);
CMISObject document1Object = document1.getExtension(CMISConstants.OBJECT);
assertNotNull(document1Object);
String doc2name = "name" + System.currentTimeMillis();
// Custom documents
Entry document2 = createDocument(childrenLink.getHref(), doc2name, "/org/alfresco/repo/cmis/rest/test/createcustomdocument.atomentry.xml");
assertNotNull(document2);
CMISObject document2Object = document2.getExtension(CMISConstants.OBJECT);
assertNotNull(document2Object);
Entry document3 = createDocument(childrenLink.getHref(), "banana1", "/org/alfresco/repo/cmis/rest/test/createcustomdocument.atomentry.xml");
assertNotNull(document3);
CMISObject document3Object = document3.getExtension(CMISConstants.OBJECT);
assertNotNull(document3Object);
// retrieve query request document
String queryDoc = loadString("/org/alfresco/repo/cmis/rest/test/query.cmisquery.xml");
{
// construct structured query
String query = "SELECT ObjectId, Name, ObjectTypeId, cmiscustom_docprop_string, cmiscustom_docprop_boolean_multi FROM cmiscustom_document " +
"WHERE IN_FOLDER('" + testFolderObject.getObjectId().getStringValue() + "') " +
"AND cmiscustom_docprop_string = 'custom string' ";
String queryReq = queryDoc.replace("${STATEMENT}", query);
queryReq = queryReq.replace("${SKIPCOUNT}", "0");
queryReq = queryReq.replace("${PAGESIZE}", "5");
// issue structured query
Response queryRes = sendRequest(new PostRequest(queryHREF.toString(), queryReq, CMISConstants.MIMETYPE_CMIS_QUERY), 200);
assertNotNull(queryRes);
Feed queryFeed = getAbdera().parseFeed(new StringReader(queryRes.getContentAsString()), null);
assertNotNull(queryFeed);
assertEquals(2, queryFeed.getEntries().size());
assertNotNull(queryFeed.getEntry(document2.getId().toString()));
CMISObject result1 = queryFeed.getEntry(document2.getId().toString()).getExtension(CMISConstants.OBJECT);
assertNotNull(result1);
assertEquals(document2Object.getName().getStringValue(), result1.getName().getStringValue());
assertEquals(document2Object.getObjectId().getStringValue(), result1.getObjectId().getStringValue());
assertEquals(document2Object.getObjectTypeId().getStringValue(), result1.getObjectTypeId().getStringValue());
CMISProperties result1properties = result1.getProperties();
assertNotNull(result1properties);
CMISProperty result1property = result1properties.find("cmiscustom:docprop_string");
assertNotNull(result1property);
assertEquals("custom string", result1property.getStringValue());
CMISProperty result1multiproperty = result1properties.find("cmiscustom:docprop_boolean_multi");
assertNotNull(result1multiproperty);
List<Object> result1multiValues = result1multiproperty.getNativeValues();
assertNotNull(result1multiValues);
assertEquals(2, result1multiValues.size());
assertEquals(true, result1multiValues.get(0));
assertEquals(false, result1multiValues.get(1));
assertNotNull(queryFeed.getEntry(document3.getId().toString()));
CMISObject result2 = queryFeed.getEntry(document3.getId().toString()).getExtension(CMISConstants.OBJECT);
assertNotNull(result2);
assertEquals(document3Object.getName().getStringValue(), result2.getName().getStringValue());
assertEquals(document3Object.getObjectId().getStringValue(), result2.getObjectId().getStringValue());
assertEquals(document3Object.getObjectTypeId().getStringValue(), result2.getObjectTypeId().getStringValue());
CMISProperties result2properties = result2.getProperties();
assertNotNull(result2properties);
CMISProperty result2property = result2properties.find("cmiscustom:docprop_string");
assertNotNull(result2property);
assertEquals("custom string", result2property.getStringValue());
CMISProperty result2multiproperty = result1properties.find("cmiscustom:docprop_boolean_multi");
assertNotNull(result2multiproperty);
List<Object> result2multiValues = result2multiproperty.getNativeValues();
assertNotNull(result2multiValues);
assertEquals(2, result2multiValues.size());
assertEquals(true, result2multiValues.get(0));
assertEquals(false, result2multiValues.get(1));
}
}
public void testCreateRelationship()
throws Exception
{
Entry testFolder = createTestFolder("testCreateCustomRelationship");
Link childrenLink = getChildrenLink(testFolder);
assertNotNull(childrenLink);
Feed children = getFeed(childrenLink.getHref());
assertNotNull(children);
Entry source = createDocument(children.getSelfLink().getHref(), "testSource", "/org/alfresco/repo/cmis/rest/test/createcustomdocument.atomentry.xml");
assertNotNull(source);
Entry target = createDocument(children.getSelfLink().getHref(), "testTarget", "/org/alfresco/repo/cmis/rest/test/createcustomdocument.atomentry.xml");
assertNotNull(target);
// retrieve relationships feed on source
Link relsLink = source.getLink(CMISConstants.REL_RELATIONSHIPS);
assertNotNull(relsLink);
Feed relsBefore = getFeed(relsLink.getHref());
assertNotNull(relsBefore);
assertEquals(0, relsBefore.getEntries().size());
// create relationship between source and target documents
CMISObject targetObject = target.getExtension(CMISConstants.OBJECT);
assertNotNull(targetObject);
String targetId = targetObject.getObjectId().getStringValue();
assertNotNull(targetId);
Entry rel = createRelationship(relsLink.getHref(), "R/cmiscustom:assoc", targetId);
assertNotNull(rel);
// check created relationship
CMISObject sourceObject = source.getExtension(CMISConstants.OBJECT);
assertNotNull(sourceObject);
String sourceId = sourceObject.getObjectId().getStringValue();
assertNotNull(sourceId);
CMISObject relObject = rel.getExtension(CMISConstants.OBJECT);
assertNotNull(relObject);
assertEquals("R/cmiscustom:assoc", relObject.getObjectTypeId().getStringValue());
assertEquals(sourceId, relObject.getSourceId().getStringValue());
assertEquals(targetId, relObject.getTargetId().getStringValue());
assertEquals(source.getSelfLink().getHref(), rel.getLink(CMISConstants.REL_ASSOC_SOURCE).getHref());
assertEquals(target.getSelfLink().getHref(), rel.getLink(CMISConstants.REL_ASSOC_TARGET).getHref());
// check relationships for created item
Map<String, String> args = new HashMap<String, String>();
args.put(CMISScript.ARG_INCLUDE_SUB_RELATIONSHIP_TYPES, "true");
Feed relsAfter = getFeed(relsLink.getHref(), args);
assertNotNull(relsAfter);
assertEquals(1, relsAfter.getEntries().size());
}
public void testGetRelationship()
throws Exception
{
Entry testFolder = createTestFolder("testGetCustomRelationship");
Link childrenLink = getChildrenLink(testFolder);
assertNotNull(childrenLink);
Feed children = getFeed(childrenLink.getHref());
assertNotNull(children);
Entry source = createDocument(children.getSelfLink().getHref(), "testSource", "/org/alfresco/repo/cmis/rest/test/createcustomdocument.atomentry.xml");
assertNotNull(source);
Entry target = createDocument(children.getSelfLink().getHref(), "testTarget", "/org/alfresco/repo/cmis/rest/test/createcustomdocument.atomentry.xml");
assertNotNull(target);
// retrieve relationships feed on source
Link relsLink = source.getLink(CMISConstants.REL_RELATIONSHIPS);
assertNotNull(relsLink);
// create relationship between source and target documents
CMISObject targetObject = target.getExtension(CMISConstants.OBJECT);
assertNotNull(targetObject);
String targetId = targetObject.getObjectId().getStringValue();
assertNotNull(targetId);
Entry rel = createRelationship(relsLink.getHref(), "R/cmiscustom:assoc", targetId);
assertNotNull(rel);
// get created relationship
Entry relEntry = getEntry(rel.getSelfLink().getHref());
CMISObject relEntryObject = rel.getExtension(CMISConstants.OBJECT);
CMISObject relObject = rel.getExtension(CMISConstants.OBJECT);
assertNotNull(relObject);
assertEquals(relObject.getObjectTypeId().getStringValue(), relEntryObject.getObjectTypeId().getStringValue());
assertEquals(relObject.getSourceId().getStringValue(), relEntryObject.getSourceId().getStringValue());
assertEquals(relObject.getTargetId().getStringValue(), relEntryObject.getTargetId().getStringValue());
assertEquals(source.getSelfLink().getHref(), relEntry.getLink(CMISConstants.REL_ASSOC_SOURCE).getHref());
assertEquals(target.getSelfLink().getHref(), relEntry.getLink(CMISConstants.REL_ASSOC_TARGET).getHref());
}
public void testDeleteRelationship()
throws Exception
{
Entry testFolder = createTestFolder("testDeleteCustomRelationship");
Link childrenLink = getChildrenLink(testFolder);
assertNotNull(childrenLink);
Feed children = getFeed(childrenLink.getHref());
assertNotNull(children);
Entry source = createDocument(children.getSelfLink().getHref(), "testSource", "/org/alfresco/repo/cmis/rest/test/createcustomdocument.atomentry.xml");
assertNotNull(source);
Entry target = createDocument(children.getSelfLink().getHref(), "testTarget", "/org/alfresco/repo/cmis/rest/test/createcustomdocument.atomentry.xml");
assertNotNull(target);
// retrieve relationships feed on source
Link relsLink = source.getLink(CMISConstants.REL_RELATIONSHIPS);
assertNotNull(relsLink);
Feed relsBefore = getFeed(relsLink.getHref());
assertNotNull(relsBefore);
assertEquals(0, relsBefore.getEntries().size());
// create relationship between source and target documents
CMISObject targetObject = target.getExtension(CMISConstants.OBJECT);
assertNotNull(targetObject);
String targetId = targetObject.getObjectId().getStringValue();
assertNotNull(targetId);
Entry rel = createRelationship(relsLink.getHref(), "R/cmiscustom:assoc", targetId);
assertNotNull(rel);
// check relationships for created item
Map<String, String> args = new HashMap<String, String>();
args.put(CMISScript.ARG_INCLUDE_SUB_RELATIONSHIP_TYPES, "true");
Feed relsAfterCreate = getFeed(relsLink.getHref(), args);
assertNotNull(relsAfterCreate);
assertEquals(1, relsAfterCreate.getEntries().size());
// delete relationship
Response deleteRes = sendRequest(new DeleteRequest(rel.getSelfLink().getHref().toString()), 204);
assertNotNull(deleteRes);
// check relationships for deleted item
Feed relsAfterDelete = getFeed(relsLink.getHref(), args);
assertNotNull(relsAfterDelete);
assertEquals(0, relsAfterDelete.getEntries().size());
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,234 +0,0 @@
/*
* Copyright (C) 2005-2008 Alfresco Software Limited.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* As a special exception to the terms and conditions of version 2.0 of
* the GPL, you may redistribute this Program in connection with Free/Libre
* and Open Source Software ("FLOSS") applications as described in Alfresco's
* FLOSS exception. You should have recieved a copy of the text describing
* the FLOSS exception, and it is also available here:
* http://www.alfresco.com/legal/licensing"
*/
package org.alfresco.repo.cmis.rest.test;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;
import junit.framework.TestResult;
import junit.framework.TestSuite;
import org.alfresco.repo.cmis.rest.test.BaseCMISWebScriptTest.CMISTestListener;
import org.alfresco.repo.web.scripts.BaseWebScriptTest.RemoteServer;
import org.alfresco.repo.web.scripts.BaseWebScriptTest.WebScriptTestListener;
import org.alfresco.util.CachingDateFormat;
/**
* CMIS Test Runner
*
* @author davidc
*/
public class CMISTestRunner
{
private String match = null;
private WebScriptTestListener listener = new CMISTestListener(System.out);
private boolean traceReqRes = false;
private String serviceUrl = null;
private String userpass = null;
private boolean validateResponse = true;
/**
* @param match test name to execute (* for wildcards)
*/
public void setMatch(String match)
{
this.match = match;
}
/**
* @param listener test listener
*/
public void setListener(WebScriptTestListener listener)
{
this.listener = listener;
}
/**
* @param traceReqRes true => trace requests / responses
*/
public void setTraceReqRes(boolean traceReqRes)
{
this.traceReqRes = traceReqRes;
}
/**
* @param serviceUrl cmis service document url
*/
public void setServiceUrl(String serviceUrl)
{
this.serviceUrl = serviceUrl;
}
/**
* @param userpass user name / password
*/
public void setUserPass(String userpass)
{
this.userpass = userpass;
}
/**
* @param validateResponse true => test response against CMIS XSDs
*/
public void setValidateResponse(boolean validateResponse)
{
this.validateResponse = validateResponse;
}
/**
* Gets the names of CMIS tests
*
* @param match * for wildcard
* @return array of test names
*/
public String[] getTestNames(String match)
{
List<String> namesList = new ArrayList<String>();
TestSuite allSuite = new TestSuite(CMISTest.class);
for (int i = 0; i < allSuite.countTestCases(); i++)
{
CMISTest test = (CMISTest)allSuite.testAt(i);
if (match == null || match.equals("*") || test.getName().matches(match.replace("*", "[A-Za-z0-9]*")))
{
namesList.add(test.getName());
}
}
String[] names = new String[namesList.size()];
namesList.toArray(names);
return names;
}
/**
* Execute CMIS Tests
*/
public void execute()
{
RemoteServer server = null;
if (serviceUrl != null)
{
server = new RemoteServer();
if (userpass != null)
{
String[] credentials = userpass.split("/");
server.username = credentials[0];
if (credentials.length > 1)
{
server.password = credentials[1];
}
}
}
// dump test parameters
if (listener != null)
{
Calendar today = Calendar.getInstance();
SimpleDateFormat df = CachingDateFormat.getDateFormat("yyyy-MM-dd HH:mm:ss.SSS", true);
listener.addLog(null, "Test Started at " + df.format(today.getTime()));
listener.addLog(null, "Service URL: " + (serviceUrl == null ? "[not set]" : serviceUrl));
listener.addLog(null, "User: " + (userpass == null ? "[not set]" : userpass));
listener.addLog(null, "Validate Responses: " + validateResponse);
listener.addLog(null, "Trace Requests/Responses: " + traceReqRes);
listener.addLog(null, "Tests: " + (match == null ? "*" : match));
listener.addLog(null, "");
}
executeSuite(match, server);
}
/**
* Execute suite of CMIS Tests
*
* @param match tests to execute (* for wildcard)
* @param server remote server
* @param argsAsHeaders arguments passed in Headers
*/
private void executeSuite(String match, RemoteServer server)
{
TestSuite allSuite = new TestSuite(CMISTest.class);
TestSuite suite = new TestSuite();
for (int i = 0; i < allSuite.countTestCases(); i++)
{
CMISTest test = (CMISTest)allSuite.testAt(i);
if (match == null || match.equals("*") || test.getName().matches(match.replace("*", "[A-Za-z0-9]*")))
{
test.setValidateResponse(validateResponse);
if (listener != null)
{
test.setListener(listener);
test.setTraceReqRes(traceReqRes);
}
if (server != null)
{
test.setServiceUrl(serviceUrl);
if (server != null)
{
test.setRemoteServer(server);
}
}
suite.addTest(test);
}
}
TestResult result = new TestResult();
if (listener != null)
{
result.addListener(listener);
}
suite.run(result);
}
/**
* Execute CMIS Tests from command-line
*
* url={serviceUrl}
* user={userpass}
* args={"url"|"headers"|"both"}
*/
public static void main(String[] args)
{
CMISTestRunner runner = new CMISTestRunner();
for (String arg : args)
{
String[] argSegment = arg.split("=");
if (argSegment[0].equals("url"))
{
runner.setServiceUrl(argSegment[1]);
}
else if (argSegment[0].equals("user"))
{
runner.setUserPass(argSegment[1]);
}
}
// execute
runner.execute();
System.exit(0);
}
}

View File

@@ -26,12 +26,14 @@ package org.alfresco.repo.cmis.rest.test;
import java.io.IOException;
import java.io.PrintStream;
import java.util.Properties;
import org.alfresco.repo.cmis.rest.test.BaseCMISWebScriptTest.CMISTestListener;
import org.alfresco.repo.web.scripts.BaseWebScriptTest.WebScriptTestListener;
import org.alfresco.web.scripts.AbstractWebScript;
import org.alfresco.web.scripts.WebScriptRequest;
import org.alfresco.web.scripts.WebScriptResponse;
import org.apache.chemistry.tck.atompub.TCKMessageWriter;
import org.apache.chemistry.tck.atompub.tools.TCKRunner;
import org.apache.chemistry.tck.atompub.tools.TCKRunnerOptions;
/**
* Execute CMIS Tests
@@ -46,37 +48,47 @@ public class CMISTestRunnerWebScript extends AbstractWebScript
public void execute(WebScriptRequest req, WebScriptResponse res)
throws IOException
{
// setup CMIS tests
PrintStream printStream = new PrintStream(res.getOutputStream(), true, "UTF-8");
WebScriptTestListener testListener = new CMISTestListener(printStream);
CMISTestRunner runner = new CMISTestRunner();
runner.setListener(testListener);
// setup default values
Properties properties = new Properties();
properties.put(TCKRunnerOptions.PROP_VALIDATE, "false");
properties.put(TCKRunnerOptions.PROP_FAIL_ON_VALIDATION_ERROR, "false");
properties.put(TCKRunnerOptions.PROP_TRACE_REQUESTS, "false");
// process test parameters
String serviceUrl = req.getParameter("url");
if (serviceUrl != null && serviceUrl.length() > 0)
// apply form provided values
TCKRunnerOptions options = new TCKRunnerOptions(properties);
String[] names = req.getParameterNames();
for (String name : names)
{
runner.setServiceUrl(serviceUrl);
}
String userpass = req.getParameter("user");
if (userpass != null && userpass.length() > 0)
{
runner.setUserPass(userpass);
}
String validate = req.getParameter("validate");
runner.setValidateResponse(Boolean.valueOf(validate));
String trace = req.getParameter("trace");
runner.setTraceReqRes(Boolean.valueOf(trace));
String match = req.getParameter("tests");
if (match != null && match.length() > 0)
{
runner.setMatch(match);
properties.setProperty(name, req.getParameter(name));
}
// execute tests
runner.execute();
// execute tck
TCKRunner runner = new TCKRunner(options, new ResponseMessageWriter(res));
runner.execute(properties);
}
private static class ResponseMessageWriter implements TCKMessageWriter
{
private PrintStream printStream;
public ResponseMessageWriter(WebScriptResponse res) throws IOException
{
printStream = new PrintStream(res.getOutputStream(), true, "UTF-8");
}
public void info(String message)
{
printStream.println("INFO " + message);
}
public void trace(String message)
{
printStream.println("TRACE " + message);
}
public void warn(String message)
{
printStream.println("WARN " + message);
}
}
}

View File

@@ -1,5 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<entry xmlns="http://www.w3.org/2005/Atom">
<title>Updated Title ${NAME}</title>
<content>updated content ${NAME}</content>
</entry>

View File

@@ -1,2 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<entry xmlns="http://www.w3.org/2005/Atom"/>

View File

@@ -1,8 +0,0 @@
<?xml version="1.0" ?>
<entry xmlns="http://www.w3.org/2005/Atom">
<title>${NAME}</title>
<author>
<name>CMIS Test</name>
</author>
<content type="html">${CONTENT}</content>
</entry>

View File

@@ -1,13 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<entry xmlns="http://www.w3.org/2005/Atom" xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200901" xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200901">
<title>${NAME}</title>
<summary>${NAME} (summary)</summary>
<content type="text/html">${CONTENT}</content>
<cmisra:object>
<cmis:properties>
<cmis:propertyId pdid="cmis:ObjectTypeId"><cmis:value>D/cmiscustom:document</cmis:value></cmis:propertyId>
<cmis:propertyString pdid="cmiscustom:docprop_string"><cmis:value>custom string</cmis:value></cmis:propertyString>
<cmis:propertyBoolean pdid="cmiscustom:docprop_boolean_multi"><cmis:value>true</cmis:value><cmis:value>false</cmis:value></cmis:propertyBoolean>
</cmis:properties>
</cmisra:object>
</entry>

View File

@@ -1,11 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<entry xmlns="http://www.w3.org/2005/Atom" xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200901" xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200901">
<title>${NAME}</title>
<summary>${NAME} (summary)</summary>
<cmisra:object>
<cmis:properties>
<cmis:propertyId pdid="cmis:ObjectTypeId"><cmis:value>F/cmiscustom:folder</cmis:value></cmis:propertyId>
<cmis:propertyString pdid="cmiscustom:folderprop_string"><cmis:value>custom string</cmis:value></cmis:propertyString>
</cmis:properties>
</cmisra:object>
</entry>

View File

@@ -1,11 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<entry xmlns="http://www.w3.org/2005/Atom" xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200901" xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200901">
<title>${NAME}</title>
<summary>${NAME} (summary)</summary>
<content type="text/html">${CONTENT}</content>
<cmisra:object>
<cmis:properties>
<cmis:propertyId pdid="cmis:ObjectTypeId"><cmis:value>cmis:document</cmis:value></cmis:propertyId>
</cmis:properties>
</cmisra:object>
</entry>

View File

@@ -1,10 +0,0 @@
<entry xmlns="http://www.w3.org/2005/Atom" xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200901" xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200901" xmlns:app="http://www.w3.org/2007/app">
<title type="text">onesentence.txt</title>
<content type="text/plain">MQ==&#xd;</content>
<cmisra:object>
<cmis:properties>
<cmis:propertyIs pdid="cmis:ObjectTypeId"><cmis:value>document</cmis:value></cmis:propertyId>
<cmis:propertyString pdid="cmis:DocumentTitle"><cmis:value>onesentence.txt</cmis:value></cmis:propertyString>
</cmis:properties>
</cmisra:object>
</entry>

View File

@@ -1,21 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<entry xmlns="http://www.w3.org/2005/Atom" xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200901" xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200901">
<title>${NAME}</title>
<summary>${NAME} (summary)</summary>
<content type="text/plain">
VGhpcyBtZXRob2QgZm9sbG93cyB0aGUgQXRvbSBQdWJsaXNoaW5nIG1vZGVsIHdoZXJlIHRoZSBl
bnRyeSBkb2N1bWVudCwgYXRvbSBvciBjbWlzLCBpcyBwb3N0ZWQgdG8gdGhlIHJvb3Qgb3Igc3Bl
Y2lmaWMgZm9sZGVyIFVSSS4gIEZvciB1bmZpbGVkIGRvY3VtZW50cywgcG9zdCB0aGUgZG9jdW1l
bnQgdG8gdGhlIHVuZmlsZWQgY29sbGVjdGlvbi4gICBUaGUgZG9jdW1lbnQgd2lsbCBiZSBjcmVh
dGVkIGluIHRoZSBmb2xkZXIgcG9zdGVkLiBJZiB0aGUgZG9jdW1lbnQgaXMgcG9zdGVkIHRvIHRo
ZSByb290IGNvbGxlY3Rpb24gYW5kIGEgZm9sZGVyIHByb3BlcnR5IGlzIHNwZWNpZmllZCwgdGhl
biB0aGUgcmVwb3NpdG9yeSB3aWxsIGNyZWF0ZSB0aGUgZG9jdW1lbnQgaW4gdGhlIHNwZWNpZmll
ZCBmb2xkZXIuICBJZiB0aGUgY29udGVudCBzdHJlYW0gaXMgc3BlY2lmaWVkIG9uIGNyZWF0ZSwg
aXQgc2hvdWxkIGJlIGJhc2U2NCBlbmNvZGVkIGluIHRoZSBhdG9tIGVudHJ5Lg==
</content>
<cmisra:object>
<cmis:properties>
<cmis:propertyId pdid="cmis:ObjectTypeId"><cmis:value>cmis:document</cmis:value></cmis:propertyId>
</cmis:properties>
</cmisra:object>
</entry>

View File

@@ -1 +0,0 @@
This method follows the Atom Publishing model where the entry document, atom or cmis, is posted to the root or specific folder URI. For unfiled documents, post the document to the unfiled collection. The document will be created in the folder posted. If the document is posted to the root collection and a folder property is specified, then the repository will create the document in the specified folder. If the content stream is specified on create, it should be base64 encoded in the atom entry.

View File

@@ -1,10 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<entry xmlns="http://www.w3.org/2005/Atom" xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200901" xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200901">
<title>${NAME}</title>
<summary>${NAME} (summary)</summary>
<cmisra:object>
<cmis:properties>
<cmis:propertyId pdid="cmis:ObjectTypeId"><cmis:value>cmis:document</cmis:value></cmis:propertyId>
</cmis:properties>
</cmisra:object>
</entry>

View File

@@ -1,10 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<entry xmlns="http://www.w3.org/2005/Atom" xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200901" xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200901">
<title>${NAME}</title>
<summary>${NAME} (summary)</summary>
<cmisra:object>
<cmis:properties>
<cmis:propertyId pdid="cmis:ObjectTypeId"><cmis:value>cmis:folder</cmis:value></cmis:propertyId>
</cmis:properties>
</cmisra:object>
</entry>

View File

@@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<entry xmlns="http://www.w3.org/2005/Atom" xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200901" xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200901">
<cmisra:object>
<cmis:properties>
<cmis:propertyId pdid="cmis:ObjectTypeId"><cmis:value>${RELTYPE}</cmis:value></cmis:propertyId>
<cmis:propertyId pdid="cmis:TargetId"><cmis:value>${TARGETID}</cmis:value></cmis:propertyId>
</cmis:properties>
</cmisra:object>
</entry>

View File

@@ -1,5 +0,0 @@
<cmis:query xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200901" >
<cmis:statement><![CDATA[${STATEMENT}]]></cmis:statement>
<cmis:skipCount>${SKIPCOUNT}</cmis:skipCount>
<cmis:maxItems>${MAXITEMS}</cmis:maxItems>
</cmis:query>

View File

@@ -1,6 +0,0 @@
<cmis:query xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200901" >
<cmis:statement><![CDATA[${STATEMENT}]]></cmis:statement>
<cmis:includeAllowableActions>${INCLUDEALLOWABLEACTIONS}</cmis:includeAllowableActions>
<cmis:skipCount>${SKIPCOUNT}</cmis:skipCount>
<cmis:maxItems>${MAXITEMS}</cmis:maxItems>
</cmis:query>

View File

@@ -1,10 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<entry xmlns="http://www.w3.org/2005/Atom" xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200901" xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200901">
<title>Updated Title ${NAME}</title>
<cmisra:object>
<cmis:properties>
<cmis:propertyString pdid="cmiscustom:docprop_string"><cmis:value>custom ${NAME}</cmis:value></cmis:propertyString>
<cmis:propertyBoolean pdid="cmiscustom:docprop_boolean_multi"><cmis:value>false</cmis:value><cmis:value>true</cmis:value></cmis:propertyBoolean>
</cmis:properties>
</cmisra:object>
</entry>

View File

@@ -1,5 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<entry xmlns="http://www.w3.org/2005/Atom">
<title>Updated Title ${NAME}</title>
<content>updated content ${NAME}</content>
</entry>

View File

@@ -1,447 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
-*- rnc -*- RELAX NG Compact Syntax Grammar for the Atom Format
Specification Version 11
-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified" targetNamespace="http://www.w3.org/2005/Atom"
xmlns:atom="http://www.w3.org/2005/Atom" xmlns:xhtml="http://www.w3.org/1999/xhtml"
xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200901" xmlns:xml="http://www.w3.org/XML/1998/namespace"
xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"
xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200901"
jaxb:extensionBindingPrefixes="xjc" jaxb:version="2.1" version="0.62d">
<xs:import namespace="http://www.w3.org/XML/1998/namespace"
schemaLocation="xml.xsd" />
<xs:import namespace="http://docs.oasis-open.org/ns/cmis/core/200901"
schemaLocation="CMIS-Core.xsd" />
<xs:import namespace="http://docs.oasis-open.org/ns/cmis/restatom/200901"
schemaLocation="CMIS-RestAtom.xsd" />
<!-- Common attributes -->
<xs:attributeGroup name="atomCommonAttributes">
<xs:attribute ref="xml:base" />
<xs:attribute ref="xml:lang" />
<xs:attributeGroup ref="atom:undefinedAttribute" />
</xs:attributeGroup>
<!-- Text Constructs -->
<xs:attributeGroup name="atomPlainTextConstruct">
<xs:attributeGroup ref="atom:atomCommonAttributes" />
<xs:attribute name="type">
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:enumeration value="text" />
<xs:enumeration value="html" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:attributeGroup>
<xs:group name="atomXHTMLTextConstruct">
<xs:sequence>
<xs:any minOccurs="0" maxOccurs="unbounded" namespace="http://www.w3.org/1999/xhtml" />
</xs:sequence>
</xs:group>
<xs:attributeGroup name="atomXHTMLTextConstruct">
<xs:attributeGroup ref="atom:atomCommonAttributes" />
<xs:attribute name="type" use="required">
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:enumeration value="xhtml" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:attributeGroup>
<xs:complexType name="atomTextConstruct" mixed="true">
<xs:group minOccurs="0" ref="atom:atomXHTMLTextConstruct" />
<xs:attribute name="type">
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:enumeration value="text" />
<xs:enumeration value="html" />
<xs:enumeration value="xhtml" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attributeGroup ref="atom:atomCommonAttributes" />
</xs:complexType>
<!-- Person Construct -->
<xs:complexType name="atomPersonConstruct">
<xs:sequence>
<xs:element ref="atom:name" minOccurs="0" maxOccurs="1" />
<xs:element ref="atom:uri" minOccurs="0" maxOccurs="1" />
<xs:element ref="atom:email" minOccurs="0" maxOccurs="1" />
<xs:group ref="atom:extensionElement" minOccurs="0"
maxOccurs="unbounded" />
</xs:sequence>
<xs:attributeGroup ref="atom:atomCommonAttributes" />
</xs:complexType>
<xs:element name="name" type="xs:string" />
<xs:element name="uri" type="xs:string" />
<xs:element name="email" type="atom:atomEmailAddress" />
<!-- Date Construct -->
<xs:complexType name="atomDateConstruct">
<xs:simpleContent>
<xs:extension base="xs:dateTime">
<xs:attributeGroup ref="atom:atomCommonAttributes" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<!-- atom:feed -->
<xs:element name="feed" type="atom:feedType"></xs:element>
<xs:complexType name="feedType">
<xs:sequence>
<xs:choice maxOccurs="unbounded">
<xs:annotation>
<xs:appinfo>
<jaxb:property name="items" />
</xs:appinfo>
</xs:annotation>
<xs:element ref="atom:author" />
<xs:element ref="atom:category" />
<xs:element ref="atom:contributor" />
<xs:element ref="atom:generator" />
<xs:element ref="atom:icon" />
<xs:element ref="atom:id" />
<xs:element ref="atom:link" />
<xs:element ref="atom:logo" />
<xs:element ref="atom:rights" />
<xs:element ref="atom:subtitle" />
<xs:element ref="atom:title" />
<xs:element ref="atom:updated" />
</xs:choice>
<!-- original atom extension element -->
<xs:group ref="atom:extensionElement" />
<xs:element minOccurs="0" maxOccurs="unbounded" ref="atom:entry" />
</xs:sequence>
<xs:attributeGroup ref="atom:atomCommonAttributes" />
</xs:complexType>
<!-- atom:entry -->
<xs:element name="entry" type="atom:entryType">
</xs:element>
<xs:complexType name="entryType">
<xs:sequence>
<xs:choice maxOccurs="unbounded">
<xs:annotation>
<xs:appinfo>
<jaxb:property name="items" />
</xs:appinfo>
</xs:annotation>
<xs:element ref="atom:author" />
<xs:element ref="atom:category" />
<xs:element ref="atom:content" />
<xs:element ref="atom:contributor" />
<xs:element ref="atom:id" />
<xs:element ref="atom:link" />
<xs:element ref="atom:published" />
<xs:element ref="atom:rights" />
<xs:element ref="atom:source" />
<xs:element ref="atom:summary" />
<xs:element ref="atom:title" />
<xs:element ref="atom:updated" />
</xs:choice>
<!-- Normal ATOM extension element -->
<xs:group ref="atom:extensionElement" />
</xs:sequence>
<xs:attributeGroup ref="atom:atomCommonAttributes" />
</xs:complexType>
<!-- atom:content -->
<xs:attributeGroup name="atomInlineTextConstruct">
<xs:attributeGroup ref="atom:atomCommonAttributes" />
<xs:attribute name="type">
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:enumeration value="text" />
<xs:enumeration value="html" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:attributeGroup>
<xs:group name="atomInlineOtherConstruct">
<xs:sequence>
<xs:group minOccurs="0" maxOccurs="unbounded" ref="atom:anyElement" />
</xs:sequence>
</xs:group>
<xs:attributeGroup name="atomInlineOtherConstruct">
<xs:attributeGroup ref="atom:atomCommonAttributes" />
<xs:attribute name="type">
<xs:simpleType>
<xs:union memberTypes="atom:atomMediaType">
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:enumeration value="xhtml" />
</xs:restriction>
</xs:simpleType>
</xs:union>
</xs:simpleType>
</xs:attribute>
</xs:attributeGroup>
<xs:attributeGroup name="atomOutOfLineConstruct">
<xs:attributeGroup ref="atom:atomCommonAttributes" />
<xs:attribute name="type" type="atom:atomMediaType" />
<xs:attribute name="src" use="required" />
</xs:attributeGroup>
<xs:element name="content">
<xs:complexType mixed="true">
<xs:group minOccurs="0" ref="atom:atomInlineOtherConstruct" />
<xs:attribute name="type">
<xs:simpleType>
<xs:union memberTypes="atom:atomMediaType">
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:enumeration value="text" />
<xs:enumeration value="html" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType>
<xs:union memberTypes="atom:atomMediaType">
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:enumeration value="xhtml" />
</xs:restriction>
</xs:simpleType>
</xs:union>
</xs:simpleType>
</xs:union>
</xs:simpleType>
</xs:attribute>
<xs:attributeGroup ref="atom:atomCommonAttributes" />
<xs:attribute name="src" />
</xs:complexType>
</xs:element>
<!-- atom:author -->
<xs:element name="author" type="atom:atomPersonConstruct" />
<!-- atom:category -->
<xs:element name="category">
<xs:complexType>
<xs:complexContent>
<xs:extension base="atom:undefinedContent">
<xs:attributeGroup ref="atom:atomCommonAttributes" />
<xs:attribute name="term" use="required" />
<xs:attribute name="scheme" />
<xs:attribute name="label" />
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<!-- atom:contributor -->
<xs:element name="contributor" type="atom:atomPersonConstruct" />
<!-- atom:generator -->
<xs:element name="generator">
<xs:complexType mixed="true">
<xs:attributeGroup ref="atom:atomCommonAttributes" />
<xs:attribute name="uri" />
<xs:attribute name="version" />
</xs:complexType>
</xs:element>
<!-- atom:icon -->
<xs:element name="icon">
<xs:complexType mixed="true">
<xs:attributeGroup ref="atom:atomCommonAttributes" />
</xs:complexType>
</xs:element>
<!-- atom:id -->
<xs:element name="id">
<xs:complexType mixed="true">
<xs:attributeGroup ref="atom:atomCommonAttributes" />
</xs:complexType>
</xs:element>
<!-- atom:logo -->
<xs:element name="logo">
<xs:complexType mixed="true">
<xs:attributeGroup ref="atom:atomCommonAttributes" />
</xs:complexType>
</xs:element>
<!-- atom:link -->
<xs:element name="link">
<xs:annotation>
<xs:documentation>
The "atom:link" element defines a reference from an
entry or feed to a Web resource. This specification
assigns no
meaning to the content (if any) of this
element.
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:complexContent>
<xs:extension base="atom:undefinedContent">
<xs:attributeGroup ref="atom:atomCommonAttributes" />
<xs:attribute name="href" use="required" />
<xs:attribute name="rel"></xs:attribute>
<xs:attribute name="type" type="atom:atomMediaType" />
<xs:attribute name="hreflang" type="atom:atomLanguageTag" />
<xs:attribute name="title" />
<xs:attribute name="length" />
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<!-- atom:published -->
<xs:element name="published" type="atom:atomDateConstruct" />
<!-- atom:rights -->
<xs:element name="rights" type="atom:atomTextConstruct" />
<!-- atom:source -->
<xs:element name="source">
<xs:annotation>
<xs:documentation>
atom:source is used to preserve metadata of a feed
when
an entry is copied from a feed to another feed.
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="atom:author" />
<xs:element ref="atom:category" />
<xs:element ref="atom:contributor" />
<xs:element ref="atom:generator" />
<xs:element ref="atom:icon" />
<xs:element ref="atom:id" />
<xs:element ref="atom:link" />
<xs:element ref="atom:logo" />
<xs:element ref="atom:rights" />
<xs:element ref="atom:subtitle" />
<xs:element ref="atom:title" />
<xs:element ref="atom:updated" />
<xs:group ref="atom:extensionElement" />
</xs:choice>
<xs:attributeGroup ref="atom:atomCommonAttributes" />
</xs:complexType>
</xs:element>
<!-- atom:subtitle -->
<xs:element name="subtitle" type="atom:atomTextConstruct" />
<!-- atom:summary -->
<xs:element name="summary" type="atom:atomTextConstruct" />
<!-- atom:title -->
<xs:element name="title" type="atom:atomTextConstruct">
<xs:annotation>
<xs:documentation>
The "atom:title" element is a Text construct that
conveys a human- readable title for an entry or feed.
atomTitle =
element atom:title { atomTextConstruct }.
</xs:documentation>
</xs:annotation>
</xs:element>
<!-- atom:updated -->
<xs:element name="updated" type="atom:atomDateConstruct">
<xs:annotation>
<xs:documentation>
The "atom:updated" element is a Date construct
indicating the most recent instant in time when an entry
or feed was
modified in a way the publisher considers
significant. Therefore, not
all modifications
necessarily result in a changed atom:updated value.
atomUpdated = element atom:updated { atomDateConstruct
}. Publishers
MAY change the value of this element over
time.
</xs:documentation>
</xs:annotation>
</xs:element>
<!-- Low-level simple types -->
<xs:simpleType name="atomNCName">
<xs:restriction base="xs:string">
<xs:minLength value="1" />
<xs:pattern value="[^:]*" />
</xs:restriction>
</xs:simpleType>
<!-- Whatever a media type is, it contains at least one slash -->
<xs:simpleType name="atomMediaType">
<xs:restriction base="xs:string">
<xs:pattern value=".+/.+" />
</xs:restriction>
</xs:simpleType>
<!-- As defined in RFC 3066 -->
<xs:simpleType name="atomLanguageTag">
<xs:restriction base="xs:string">
<xs:pattern value="[A-Za-z]{1,8}(-[A-Za-z0-9]{1,8})*" />
</xs:restriction>
</xs:simpleType>
<!--
Unconstrained; it's not entirely clear how IRI fit into xsd:anyURI so
let's not try to constrain it here
-->
<!-- Whatever an email address is, it contains at least one @ -->
<xs:simpleType name="atomEmailAddress">
<xs:restriction base="xs:string">
<xs:pattern value=".+@.+" />
</xs:restriction>
</xs:simpleType>
<!-- Simple Extension -->
<xs:group name="extensionElement">
<xs:sequence>
<xs:any namespace="##other" processContents="lax" minOccurs="0"
maxOccurs="unbounded">
<xs:annotation>
<xs:appinfo>
<jaxb:property name='anyOther' />
</xs:appinfo>
</xs:annotation>
</xs:any>
<xs:any namespace="##local" processContents="lax" minOccurs="0"
maxOccurs="unbounded">
<xs:annotation>
<xs:appinfo>
<jaxb:property name='anyLocal' />
</xs:appinfo>
</xs:annotation>
</xs:any>
</xs:sequence>
</xs:group>
<xs:attributeGroup name="undefinedAttribute">
<xs:anyAttribute namespace="##other" processContents="lax" />
</xs:attributeGroup>
<xs:complexType name="undefinedContent">
<xs:sequence>
<xs:any namespace="##other" processContents="lax" minOccurs="0"
maxOccurs="unbounded">
<xs:annotation>
<xs:appinfo>
<jaxb:property name='anyOther' />
</xs:appinfo>
</xs:annotation>
</xs:any>
<xs:any namespace="##local" processContents="lax" minOccurs="0"
maxOccurs="unbounded">
<xs:annotation>
<xs:appinfo>
<jaxb:property name='anyLocal' />
</xs:appinfo>
</xs:annotation>
</xs:any>
</xs:sequence>
<!--
<xs:group minOccurs="0" maxOccurs="unbounded"
ref="atom:anyForeignElement" />
-->
</xs:complexType>
<xs:group name="anyElement">
<xs:sequence>
<xs:any processContents="lax" />
</xs:sequence>
</xs:group>
<xs:group name="anyForeignElement">
<xs:sequence>
<xs:any namespace="##other" processContents="lax" />
<xs:any namespace="##local" processContents="lax" />
</xs:sequence>
</xs:group>
<!-- XHTML -->
<xs:group name="anyXHTML">
<xs:sequence>
<xs:any namespace="http://www.w3.org/1999/xhtml"
processContents="lax" />
</xs:sequence>
</xs:group>
</xs:schema>
<!-- EOF -->

File diff suppressed because it is too large Load Diff

View File

@@ -1,264 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Common CMIS XSD
-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified" targetNamespace="http://docs.oasis-open.org/ns/cmis/restatom/200901"
xmlns:atom="http://www.w3.org/2005/Atom" xmlns:xhtml="http://www.w3.org/1999/xhtml"
xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"
jaxb:extensionBindingPrefixes="xjc" jaxb:version="2.1"
xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200901"
xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200901"
version="0.62f">
<xs:import namespace="http://docs.oasis-open.org/ns/cmis/core/200901"
schemaLocation="CMIS-Core.xsd" />
<xs:import namespace="http://www.w3.org/2005/Atom"
schemaLocation="ATOM.xsd" />
<xs:import namespace="http://www.w3.org/XML/1998/namespace"
schemaLocation="xml.xsd" />
<!--
should be a member of enumRepositoryRelationship. However, it can be
extended, so not constrained.
-->
<xs:attribute name="repositoryRelationship" type="xs:string" />
<xs:attribute name="collectionType" type="cmisra:enumCollectionType" />
<xs:attribute name="id" type="xs:string" />
<xs:attribute name="renditionType" type="xs:string" />
<xs:element name="repositoryInfo" type="cmis:cmisRepositoryInfoType">
<xs:annotation>
<xs:documentation>
This is the AtomPub extension element that will be
used to contain CMIS repository information
inside an AtomPub
workspace element inside an AtomPub Service document
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="type" type="cmis:cmisTypeDefinitionType">
<xs:annotation>
<xs:documentation>
This is the Atom extension element that will be
used to contain a type definition (document, folder, relationship,
or policy) inside an atom entry element.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="children" type="atom:feedType">
<xs:annotation>
<xs:documentation>
This is the Atom extension element that will be
used to contain a feed inside an atom entry element.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:simpleType name="enumCollectionType">
<xs:restriction base="xs:string">
<xs:enumeration value="root" />
<xs:enumeration value="unfiled" />
<xs:enumeration value="checkedout" />
<xs:enumeration value="types" />
<xs:enumeration value="query" />
<xs:enumeration value="changes" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="enumUriTemplateType">
<xs:restriction base="xs:string">
<xs:enumeration value="entrybyid" />
<xs:enumeration value="folderbypath" />
<xs:enumeration value="query" />
</xs:restriction>
</xs:simpleType>
<xs:complexType name="cmisUriTemplateType">
<xs:sequence>
<xs:element name="template" type="xs:string" />
<xs:element name="type" type="xs:string" />
<xs:element name="mediatype" type="xs:string" />
<xs:any processContents="lax" namespace="##other" minOccurs="0"
maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
<xs:element name="uritemplate" type="cmisra:cmisUriTemplateType">
<xs:annotation>
<xs:documentation>
This is the AtomPub extension element that will be
used to contain CMIS URI Templates inside an AtomPub
workspace
element inside an AtomPub Service document</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="object" type="cmis:cmisObjectType">
<xs:annotation>
<xs:documentation>
This is the AtomPub extension element that will be
used to contain a CMIS object instance inside an Atom entry element.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:simpleType name="enumLinkRelations">
<xs:restriction base="xs:string">
<xs:enumeration value="self" />
<xs:enumeration value="edit" />
<xs:enumeration value="edit-media" />
<xs:enumeration value="via" />
<xs:enumeration value="up" />
<xs:enumeration value="down" />
<xs:enumeration value="version-history" />
<xs:enumeration value="current-version" />
<xs:enumeration value="working-copy" />
<xs:enumeration value="service" />
<xs:enumeration value="describedby" />
<!-- paging -->
<xs:enumeration value="first" />
<xs:enumeration value="last" />
<xs:enumeration value="next" />
<xs:enumeration value="prev" />
<xs:enumeration
value="http://docs.oasis-open.org/ns/cmis/link/200901/allowableactions">
<xs:annotation>
<xs:appinfo>
<jaxb:typesafeEnumMember name="CMIS_ALLOWABLEACTIONS" />
</xs:appinfo>
</xs:annotation>
</xs:enumeration>
<xs:enumeration
value="http://docs.oasis-open.org/ns/cmis/link/200901/relationships">
<xs:annotation>
<xs:appinfo>
<jaxb:typesafeEnumMember name="CMIS_RELATIONSHIPS" />
</xs:appinfo>
</xs:annotation>
</xs:enumeration>
<xs:enumeration
value="http://docs.oasis-open.org/ns/cmis/link/200901/source">
<xs:annotation>
<xs:appinfo>
<jaxb:typesafeEnumMember name="CMIS_SOURCE" />
</xs:appinfo>
</xs:annotation>
</xs:enumeration>
<xs:enumeration
value="http://docs.oasis-open.org/ns/cmis/link/200901/target">
<xs:annotation>
<xs:appinfo>
<jaxb:typesafeEnumMember name="CMIS_TARGET" />
</xs:appinfo>
</xs:annotation>
</xs:enumeration>
<xs:enumeration
value="http://docs.oasis-open.org/ns/cmis/link/200901/policies">
<xs:annotation>
<xs:appinfo>
<jaxb:typesafeEnumMember name="CMIS_POLICIES" />
</xs:appinfo>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="http://docs.oasis-open.org/ns/cmis/link/200901/acl">
<xs:annotation>
<xs:appinfo>
<jaxb:typesafeEnumMember name="CMIS_ACL" />
</xs:appinfo>
</xs:annotation>
</xs:enumeration>
<!-- changes -->
<xs:enumeration
value="http://docs.oasis-open.org/ns/cmis/link/200901/changes">
<xs:annotation>
<xs:appinfo>
<jaxb:typesafeEnumMember name="CMIS_CHANGES" />
</xs:appinfo>
</xs:annotation>
</xs:enumeration>
<!-- folder tree -->
<xs:enumeration
value="http://docs.oasis-open.org/ns/cmis/link/200901/foldertree">
<xs:annotation>
<xs:appinfo>
<jaxb:typesafeEnumMember name="CMIS_FOLDERTREE" />
</xs:appinfo>
</xs:annotation>
</xs:enumeration>
<!-- types descendants -->
<xs:enumeration
value="http://docs.oasis-open.org/ns/cmis/link/200901/typesdescendants">
<xs:annotation>
<xs:appinfo>
<jaxb:typesafeEnumMember name="CMIS_TYPESDESCENDANTS" />
</xs:appinfo>
</xs:annotation>
</xs:enumeration>
<xs:enumeration
value="http://docs.oasis-open.org/ns/cmis/link/200901/rootdescendants">
<xs:annotation>
<xs:appinfo>
<jaxb:typesafeEnumMember name="CMIS_ROOTDESCENDANTS" />
</xs:appinfo>
</xs:annotation>
</xs:enumeration>
</xs:restriction>
</xs:simpleType>
<!-- CMIS Rest Arguments -->
<xs:simpleType name="enumArguments">
<xs:restriction base="xs:string">
<xs:enumeration value="childTypes" />
<xs:enumeration value="continueOnFailure" />
<xs:enumeration value="checkin" />
<xs:enumeration value="checkinComment" />
<xs:enumeration value="depth" />
<xs:enumeration value="direction" />
<xs:enumeration value="filter" />
<xs:enumeration value="folderId" />
<xs:enumeration value="includeAllowableActions" />
<xs:enumeration value="includePropertyDefinitions" />
<xs:enumeration value="includeRelationships" />
<xs:enumeration value="includeSubrelationshipTypes" />
<xs:enumeration value="length" />
<xs:enumeration value="major" />
<xs:enumeration value="maxItems" />
<xs:enumeration value="offset" />
<xs:enumeration value="removeFrom" />
<xs:enumeration value="relationshipType" />
<xs:enumeration value="repositoryId" />
<xs:enumeration value="returnVersion" />
<xs:enumeration value="skipCount" />
<xs:enumeration value="thisVersion" />
<xs:enumeration value="typeId" />
<xs:enumeration value="types" />
<xs:enumeration value="unfileMultiFiledDocuments" />
<xs:enumeration value="versioningState" />
</xs:restriction>
</xs:simpleType>
</xs:schema>
<!-- EOF -->

View File

@@ -1,265 +0,0 @@
/*
* Copyright (C) 2005-2008 Alfresco Software Limited.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* As a special exception to the terms and conditions of version 2.0 of
* the GPL, you may redistribute this Program in connection with Free/Libre
* and Open Source Software ("FLOSS") applications as described in Alfresco's
* FLOSS exception. You should have recieved a copy of the text describing
* the FLOSS exception, and it is also available here:
* http://www.alfresco.com/legal/licensing"
*/
package org.alfresco.repo.cmis.rest.xsd;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.StringReader;
import java.io.StringWriter;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.transform.dom.DOMSource;
import javax.xml.validation.Validator;
import junit.framework.TestCase;
import org.w3c.dom.Document;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
/**
* CMIS XSD Tests
*
* @author davidc
*/
public class CMISSchemaTest extends TestCase
{
private CMISValidator cmisValidator = new CMISValidator();
/**
* Gets XML from file specified by class path
*
* @param classPath XML file
* @return XML
* @throws IOException
*/
private String getXML(String classPath)
throws IOException
{
InputStream input = getClass().getResourceAsStream(classPath);
if (input == null)
{
throw new IOException(classPath + " not found.");
}
InputStreamReader reader = new InputStreamReader(input);
StringWriter writer = new StringWriter();
try
{
char[] buffer = new char[4096];
int bytesRead = -1;
while ((bytesRead = reader.read(buffer)) != -1)
{
writer.write(buffer, 0, bytesRead);
}
writer.flush();
}
finally
{
reader.close();
writer.close();
}
return writer.toString();
}
/**
* Assert XML is valid according to specified validator
*
* @param xml document to test
* @param validator validator to test with
* @throws IOException
* @throws ParserConfigurationException
*/
private void assertValidXML(String xml, Validator validator)
throws IOException, ParserConfigurationException
{
try
{
Document document = cmisValidator.getDocumentBuilder().parse(new InputSource(new StringReader(xml)));
validator.validate(new DOMSource(document));
}
catch (SAXException e)
{
fail(cmisValidator.toString(e, xml));
}
}
// public void testRelaxNG()
// throws Exception
// {
// String xml = getXML("address.xml");
// SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
// Source schemaFile = new StreamSource(getClass().getResourceAsStream("address.rng"), getClass().getResource("address.rng").toExternalForm());
// Schema schema = factory.newSchema(schemaFile);
// assertValidXML(xml, schema.newValidator());
// }
public void testAllowableActions()
throws Exception
{
String xml = getXML("examples/AllowableActions.xml");
assertValidXML(xml, cmisValidator.getCMISAtomValidator());
}
public void testChangeLog()
throws Exception
{
String xml = getXML("examples/ChangeLog.xml");
assertValidXML(xml, cmisValidator.getCMISAtomValidator());
}
public void testDocumentEntry()
throws Exception
{
String xml = getXML("examples/DocumentEntry.xml");
assertValidXML(xml, cmisValidator.getCMISAtomValidator());
}
public void testDocumentEntryPWC()
throws Exception
{
String xml = getXML("examples/DocumentEntryPWC.xml");
assertValidXML(xml, cmisValidator.getCMISAtomValidator());
}
public void testDocumentEntryWithChanges()
throws Exception
{
String xml = getXML("examples/DocumentEntryWithChanges.xml");
assertValidXML(xml, cmisValidator.getCMISAtomValidator());
}
public void testFolderChildren()
throws Exception
{
String xml = getXML("examples/FolderChildren.xml");
assertValidXML(xml, cmisValidator.getCMISAtomValidator());
}
public void testFolderDescendants()
throws Exception
{
String xml = getXML("examples/FolderDescendants.xml");
assertValidXML(xml, cmisValidator.getCMISAtomValidator());
}
public void testFolderEntry()
throws Exception
{
String xml = getXML("examples/FolderEntry.xml");
assertValidXML(xml, cmisValidator.getCMISAtomValidator());
}
public void testPolicyEntry()
throws Exception
{
String xml = getXML("examples/PolicyEntry.xml");
assertValidXML(xml, cmisValidator.getCMISAtomValidator());
}
public void testQuery()
throws Exception
{
String xml = getXML("examples/Query.xml");
assertValidXML(xml, cmisValidator.getCMISAtomValidator());
}
public void testRelationshipEntry()
throws Exception
{
String xml = getXML("examples/RelationshipEntry.xml");
assertValidXML(xml, cmisValidator.getCMISAtomValidator());
}
public void testService()
throws Exception
{
String xml = getXML("examples/Service.xml");
assertValidXML(xml, cmisValidator.getAppValidator());
}
public void testTypeDocumentWith()
throws Exception
{
String xml = getXML("examples/TypeDocumentWith.xml");
assertValidXML(xml, cmisValidator.getCMISAtomValidator());
}
public void testTypeDocumentWithout()
throws Exception
{
String xml = getXML("examples/TypeDocumentWithout.xml");
assertValidXML(xml, cmisValidator.getCMISAtomValidator());
}
public void testTypeFolderWith()
throws Exception
{
String xml = getXML("examples/TypeFolderWith.xml");
assertValidXML(xml, cmisValidator.getCMISAtomValidator());
}
public void testTypeFolderWithOut()
throws Exception
{
String xml = getXML("examples/TypeFolderWithOut.xml");
assertValidXML(xml, cmisValidator.getCMISAtomValidator());
}
public void testTypeRelationshipWith()
throws Exception
{
String xml = getXML("examples/TypeRelationshipWith.xml");
assertValidXML(xml, cmisValidator.getCMISAtomValidator());
}
public void testTypeRelationshipWithOut()
throws Exception
{
String xml = getXML("examples/TypeRelationshipWithout.xml");
assertValidXML(xml, cmisValidator.getCMISAtomValidator());
}
public void testFolderChildrenAlfresco()
throws Exception
{
String xml = getXML("examples/example_folderchildren_alfresco.xml");
assertValidXML(xml, cmisValidator.getCMISAtomValidator());
}
public void testAtomEntry()
throws Exception
{
String xml = getXML("examples/example_atomentry.xml");
assertValidXML(xml, cmisValidator.getCMISAtomValidator());
}
}

View File

@@ -1,160 +0,0 @@
/*
* Copyright (C) 2005-2007 Alfresco Software Limited.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* As a special exception to the terms and conditions of version 2.0 of
* the GPL, you may redistribute this Program in connection with Free/Libre
* and Open Source Software ("FLOSS") applications as described in Alfresco's
* FLOSS exception. You should have recieved a copy of the text describing
* the FLOSS exception, and it is also available here:
* http://www.alfresco.com/legal/licensing"
*/
package org.alfresco.repo.cmis.rest.xsd;
import java.io.IOException;
import java.io.StringReader;
import javax.xml.XMLConstants;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.transform.Source;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.StreamSource;
import javax.xml.validation.Schema;
import javax.xml.validation.SchemaFactory;
import javax.xml.validation.Validator;
import org.w3c.dom.Document;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
import org.xml.sax.SAXParseException;
/**
* CMIS Validator
*
* Support for validating CMIS requests/responses against CMIS XSDs
*
* @author davidc
*/
public class CMISValidator
{
/** XML Schema Validation */
private DocumentBuilder documentBuilder = null;
private Validator appValidator = null;
private Validator atomValidator = null;
/**
* Gets document parser
*
* @return document parser
* @throws ParserConfigurationException
*/
public DocumentBuilder getDocumentBuilder()
throws ParserConfigurationException
{
if (documentBuilder == null)
{
DocumentBuilderFactory builderFactory = DocumentBuilderFactory.newInstance();
builderFactory.setNamespaceAware(true);
documentBuilder = builderFactory.newDocumentBuilder();
}
return documentBuilder;
}
/**
* Gets CMIS Atom Publishing Protocol XML Validator
*
* @return APP Validator
* @throws IOException
* @throws SAXException
*/
public Validator getAppValidator()
throws IOException, SAXException
{
if (appValidator == null)
{
SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
Source APPFile = new StreamSource(getClass().getResourceAsStream("APP.xsd"), getClass().getResource("APP.xsd").toExternalForm());
Schema schema = factory.newSchema(APPFile);
appValidator = schema.newValidator();
}
return appValidator;
}
/**
* Gets CMIS Atom Validator
*
* @return CMIS Atom Validator
* @throws IOException
* @throws SAXException
*/
public Validator getCMISAtomValidator()
throws IOException, SAXException
{
if (atomValidator == null)
{
SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
Source ATOMFile = new StreamSource(getClass().getResourceAsStream("ATOM.xsd"), getClass().getResource("ATOM.xsd").toExternalForm());
Schema schema = factory.newSchema(ATOMFile);
atomValidator = schema.newValidator();
}
return atomValidator;
}
/**
* Asserts XML complies with specified Validator
*
* @param xml xml to assert
* @param validator validator to assert with
* @throws IOException
* @throws ParserConfigurationException
*/
public void validateXML(String xml, Validator validator)
throws IOException, ParserConfigurationException, SAXException
{
Document document = getDocumentBuilder().parse(new InputSource(new StringReader(xml)));
validator.validate(new DOMSource(document));
}
/**
* Convert SAX Exception to String
*
* @param e SAX Exception
* @param xml related XML (if any)
* @return description of SAX Exception
*/
public String toString(SAXException e, String xml)
{
StringBuffer fail = new StringBuffer(e.toString());
if (e instanceof SAXParseException)
{
fail.append("\n");
fail.append("line: ").append(((SAXParseException)e).getLineNumber()).append("\n");
fail.append("col: ").append(((SAXParseException)e).getColumnNumber()).append("\n");
}
if (xml != null)
{
fail.append("\n");
fail.append(xml);
}
return fail.toString();
}
}

View File

@@ -1,27 +0,0 @@
<element name="addressBook" xmlns="http://relaxng.org/ns/structure/1.0">
<zeroOrMore>
<element name="card">
<choice>
<element name="givenName">
<text/>
</element>
<group>
<element name="givenName">
<text/>
</element>
<element name="familyName">
<text/>
</element>
</group>
</choice>
<element name="email">
<text/>
</element>
<optional>
<element name="note">
<text/>
</element>
</optional>
</element>
</zeroOrMore>
</element>

View File

@@ -1,12 +0,0 @@
<addressBook>
<card>
<givenName>John</givenName>
<familyName>Smith</familyName>
<email>js@example.com</email>
</card>
<card>
<givenName>Fred Bloggs</givenName>
<email>fb@example.net</email>
<note/>
</card>
</addressBook>

View File

@@ -1,22 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<cmis:allowableActions xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200901" xmlns:cmism="http://docs.oasis-open.org/ns/cmis/messaging/200901" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:app="http://www.w3.org/2007/app" xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200901">
<cmis:canDeleteObject>true</cmis:canDeleteObject>
<cmis:canUpdateProperties>true</cmis:canUpdateProperties>
<cmis:canGetProperties>true</cmis:canGetProperties>
<cmis:canGetRelationships>true</cmis:canGetRelationships>
<cmis:canGetObjectParents>true</cmis:canGetObjectParents>
<cmis:canMoveObject>true</cmis:canMoveObject>
<cmis:canDeleteContentStream>true</cmis:canDeleteContentStream>
<cmis:canCheckOut>true</cmis:canCheckOut>
<cmis:canCancelCheckOut>true</cmis:canCancelCheckOut>
<cmis:canCheckIn>true</cmis:canCheckIn>
<cmis:canSetContentStream>true</cmis:canSetContentStream>
<cmis:canGetAllVersions>true</cmis:canGetAllVersions>
<cmis:canAddObjectToFolder>true</cmis:canAddObjectToFolder>
<cmis:canRemoveObjectFromFolder>true</cmis:canRemoveObjectFromFolder>
<cmis:canGetContentStream>true</cmis:canGetContentStream>
<cmis:canApplyPolicy>true</cmis:canApplyPolicy>
<cmis:canGetAppliedPolicies>true</cmis:canGetAppliedPolicies>
<cmis:canRemovePolicy>true</cmis:canRemovePolicy>
<cmis:canCreateDocument>true</cmis:canCreateDocument>
</cmis:allowableActions>

View File

@@ -1,352 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<atom:feed xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200901" xmlns:cmism="http://docs.oasis-open.org/ns/cmis/messaging/200901" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:app="http://www.w3.org/2007/app" xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200901">
<atom:title type="text">changelog feed</atom:title>
<atom:author>
<atom:name>Al Brown</atom:name>
<atom:uri>http://www.ibm.com/</atom:uri>
<atom:email>albertcbrown@us.ibm.com</atom:email>
</atom:author>
<atom:updated>2009-07-17T09:13:33.109-07:00</atom:updated>
<atom:id>urn:uuid:bbf11f9e-0534-43f4-b5a3-436c7d1cf74a</atom:id>
<atom:link type="application/atom+xml;type=feed" rel="self" href="http://cmisexample.oasis-open.org/rep1/folder1feed/3"/>
<atom:link type="application/atom+xml;type=entry" rel="via" href="http://cmisexample.oasis-open.org/rep1/folder1feed"/>
<atom:link type="application/atom+xml;type=feed" rel="first" href="http://cmisexample.oasis-open.org/rep1/folder1feed/first"/>
<atom:link type="application/atom+xml;type=feed" rel="next" href="http://cmisexample.oasis-open.org/rep1/folder1feed/4"/>
<atom:link type="application/atom+xml;type=feed" rel="previous" href="http://cmisexample.oasis-open.org/rep1/folder1feed/2"/>
<atom:link type="application/atom+xml;type=feed" rel="last" href="http://cmisexample.oasis-open.org/rep1/folder1feed/last"/>
<app:collection href="http://cmisexample.oasis-open.org/rep1/folder1feed/3">
<atom:title type="text">changelog feed</atom:title>
<app:accept>application/atom+xml;type=entry</app:accept>
<app:accept>application/atom+xml</app:accept>
<app:accept>*/*</app:accept>
</app:collection>
<atom:entry>
<atom:author>
<atom:name>Al Brown</atom:name>
<atom:uri>http://www.ibm.com/</atom:uri>
<atom:email>albertcbrown@us.ibm.com</atom:email>
</atom:author>
<atom:content src="http://cmisexample.oasis-open.org/rep1/eca5cd9a-a34e-4001-8bcc-99a8d171f08a"/>
<atom:id>urn:uuid:eca5cd9a-a34e-4001-8bcc-99a8d171f08a</atom:id>
<atom:link rel="self" href="http://cmisexample.oasis-open.org/rep1/eca5cd9a-a34e-4001-8bcc-99a8d171f08a"/>
<atom:link rel="edit" href="http://cmisexample.oasis-open.org/rep1/eca5cd9a-a34e-4001-8bcc-99a8d171f08a"/>
<atom:link type="application/cmis+xml;type=allowableActions" rel="allowableactions" href="http://cmisexample.oasis-open.org/rep1/eca5cd9a-a34e-4001-8bcc-99a8d171f08a/allowableactions"/>
<atom:link type="application/atom+xml;type=entry" rel="type" href="http://cmisexample.oasis-open.org/rep1/eca5cd9a-a34e-4001-8bcc-99a8d171f08a/type"/>
<atom:published>2009-07-17T09:13:33.109-07:00</atom:published>
<atom:summary type="html">HTML summary of Entry eca5cd9a-a34e-4001-8bcc-99a8d171f08a</atom:summary>
<atom:title type="text">CMIS Example Folder as Customer type</atom:title>
<atom:updated>2009-07-17T09:13:33.109-07:00</atom:updated>
<atom:link type="application/atom+xml;type=feed" rel="relationships" href="http://cmisexample.oasis-open.org/rep1/eca5cd9a-a34e-4001-8bcc-99a8d171f08a/relationships"/>
<atom:link type="application/atom+xml;type=entry" rel="up" href="http://cmisexample.oasis-open.org/rep1/eca5cd9a-a34e-4001-8bcc-99a8d171f08a/up"/>
<atom:link type="application/atom+xml;type=feed" rel="down" href="http://cmisexample.oasis-open.org/rep1/eca5cd9a-a34e-4001-8bcc-99a8d171f08a/children/flat"/>
<atom:link type="application/cmistree+xml" rel="down" href="http://cmisexample.oasis-open.org/rep1/eca5cd9a-a34e-4001-8bcc-99a8d171f08a/children/tree"/>
<cmisra:object>
<cmis:properties>
<cmis:propertyBoolean localname="rep-cmis:IsImmutable" pdid="cmis:IsImmutable">
<cmis:value>false</cmis:value>
</cmis:propertyBoolean>
<cmis:propertyDateTime localname="rep-cmis:CreationDate" pdid="cmis:CreationDate">
<cmis:value>2009-07-17T09:13:33.109-07:00</cmis:value>
</cmis:propertyDateTime>
<cmis:propertyDateTime localname="rep-cmis:LastModificationDate" pdid="cmis:LastModificationDate">
<cmis:value>2009-07-17T09:13:33.109-07:00</cmis:value>
</cmis:propertyDateTime>
<cmis:propertyId localname="rep-cmis:ObjectId" pdid="cmis:ObjectId">
<cmis:value>eca5cd9a-a34e-4001-8bcc-99a8d171f08a</cmis:value>
</cmis:propertyId>
<cmis:propertyId localname="rep-cmis:ObjectTypeId" pdid="cmis:ObjectTypeId">
<cmis:value>customer</cmis:value>
</cmis:propertyId>
<cmis:propertyId localname="rep-cmis:BaseTypeId" pdid="cmis:BaseTypeId">
<cmis:value>cmis:folder</cmis:value>
</cmis:propertyId>
<cmis:propertyString localname="rep-cmis:LastModifiedBy" pdid="cmis:LastModifiedBy">
<cmis:value>Al Brown</cmis:value>
</cmis:propertyString>
<cmis:propertyString localname="rep-cmis:CreatedBy" pdid="cmis:CreatedBy">
<cmis:value>Al Brown</cmis:value>
</cmis:propertyString>
<cmis:propertyId localname="rep-cmis:ParentId" pdid="cmis:ParentId">
<cmis:value>eca5cd9a-a34e-4001-8bcc-99a8d171f08aup</cmis:value>
</cmis:propertyId>
</cmis:properties>
<cmis:allowableActions>
<cmis:canDeleteObject>true</cmis:canDeleteObject>
<cmis:canUpdateProperties>true</cmis:canUpdateProperties>
<cmis:canGetProperties>true</cmis:canGetProperties>
<cmis:canGetRelationships>true</cmis:canGetRelationships>
<cmis:canGetFolderParent>true</cmis:canGetFolderParent>
<cmis:canGetDescendants>true</cmis:canGetDescendants>
<cmis:canMoveObject>true</cmis:canMoveObject>
<cmis:canAddObjectToFolder>true</cmis:canAddObjectToFolder>
<cmis:canRemoveObjectFromFolder>true</cmis:canRemoveObjectFromFolder>
<cmis:canApplyPolicy>true</cmis:canApplyPolicy>
<cmis:canGetAppliedPolicies>true</cmis:canGetAppliedPolicies>
<cmis:canRemovePolicy>true</cmis:canRemovePolicy>
<cmis:canGetChildren>true</cmis:canGetChildren>
<cmis:canCreateFolder>true</cmis:canCreateFolder>
<cmis:canDeleteTree>true</cmis:canDeleteTree>
</cmis:allowableActions>
<cmis:changeEventInfo>
<cmis:changeType>updated</cmis:changeType>
<cmis:changeTime>2009-07-17T09:13:33.109-07:00</cmis:changeTime>
</cmis:changeEventInfo>
</cmisra:object>
</atom:entry>
<atom:entry>
<atom:author>
<atom:name>Al Brown</atom:name>
<atom:uri>http://www.ibm.com/</atom:uri>
<atom:email>albertcbrown@us.ibm.com</atom:email>
</atom:author>
<atom:content src="http://cmisexample.oasis-open.org/rep1/094b6e99-c409-40de-aa61-6af5feb68a7f"/>
<atom:id>urn:uuid:094b6e99-c409-40de-aa61-6af5feb68a7f</atom:id>
<atom:link rel="self" href="http://cmisexample.oasis-open.org/rep1/094b6e99-c409-40de-aa61-6af5feb68a7f"/>
<atom:link rel="edit" href="http://cmisexample.oasis-open.org/rep1/094b6e99-c409-40de-aa61-6af5feb68a7f"/>
<atom:link type="application/cmis+xml;type=allowableActions" rel="allowableactions" href="http://cmisexample.oasis-open.org/rep1/094b6e99-c409-40de-aa61-6af5feb68a7f/allowableactions"/>
<atom:link type="application/atom+xml;type=entry" rel="type" href="http://cmisexample.oasis-open.org/rep1/094b6e99-c409-40de-aa61-6af5feb68a7f/type"/>
<atom:published>2009-07-17T09:13:33.109-07:00</atom:published>
<atom:summary type="html">HTML summary of Entry 094b6e99-c409-40de-aa61-6af5feb68a7f</atom:summary>
<atom:title type="text">CMIS Example Folder as Customer type</atom:title>
<atom:updated>2009-07-17T09:13:33.109-07:00</atom:updated>
<atom:link type="application/atom+xml;type=feed" rel="relationships" href="http://cmisexample.oasis-open.org/rep1/094b6e99-c409-40de-aa61-6af5feb68a7f/relationships"/>
<atom:link type="application/atom+xml;type=entry" rel="up" href="http://cmisexample.oasis-open.org/rep1/094b6e99-c409-40de-aa61-6af5feb68a7f/up"/>
<atom:link type="application/atom+xml;type=feed" rel="down" href="http://cmisexample.oasis-open.org/rep1/094b6e99-c409-40de-aa61-6af5feb68a7f/children/flat"/>
<atom:link type="application/cmistree+xml" rel="down" href="http://cmisexample.oasis-open.org/rep1/094b6e99-c409-40de-aa61-6af5feb68a7f/children/tree"/>
<cmisra:object>
<cmis:properties>
<cmis:propertyBoolean localname="rep-cmis:IsImmutable" pdid="cmis:IsImmutable">
<cmis:value>false</cmis:value>
</cmis:propertyBoolean>
<cmis:propertyDateTime localname="rep-cmis:CreationDate" pdid="cmis:CreationDate">
<cmis:value>2009-07-17T09:13:33.109-07:00</cmis:value>
</cmis:propertyDateTime>
<cmis:propertyDateTime localname="rep-cmis:LastModificationDate" pdid="cmis:LastModificationDate">
<cmis:value>2009-07-17T09:13:33.125-07:00</cmis:value>
</cmis:propertyDateTime>
<cmis:propertyId localname="rep-cmis:ObjectId" pdid="cmis:ObjectId">
<cmis:value>094b6e99-c409-40de-aa61-6af5feb68a7f</cmis:value>
</cmis:propertyId>
<cmis:propertyId localname="rep-cmis:ObjectTypeId" pdid="cmis:ObjectTypeId">
<cmis:value>customer</cmis:value>
</cmis:propertyId>
<cmis:propertyId localname="rep-cmis:BaseTypeId" pdid="cmis:BaseTypeId">
<cmis:value>cmis:folder</cmis:value>
</cmis:propertyId>
<cmis:propertyString localname="rep-cmis:LastModifiedBy" pdid="cmis:LastModifiedBy">
<cmis:value>Al Brown</cmis:value>
</cmis:propertyString>
<cmis:propertyString localname="rep-cmis:CreatedBy" pdid="cmis:CreatedBy">
<cmis:value>Al Brown</cmis:value>
</cmis:propertyString>
<cmis:propertyId localname="rep-cmis:ParentId" pdid="cmis:ParentId">
<cmis:value>094b6e99-c409-40de-aa61-6af5feb68a7fup</cmis:value>
</cmis:propertyId>
</cmis:properties>
<cmis:allowableActions>
<cmis:canDeleteObject>true</cmis:canDeleteObject>
<cmis:canUpdateProperties>true</cmis:canUpdateProperties>
<cmis:canGetProperties>true</cmis:canGetProperties>
<cmis:canGetRelationships>true</cmis:canGetRelationships>
<cmis:canGetFolderParent>true</cmis:canGetFolderParent>
<cmis:canGetDescendants>true</cmis:canGetDescendants>
<cmis:canMoveObject>true</cmis:canMoveObject>
<cmis:canAddObjectToFolder>true</cmis:canAddObjectToFolder>
<cmis:canRemoveObjectFromFolder>true</cmis:canRemoveObjectFromFolder>
<cmis:canApplyPolicy>true</cmis:canApplyPolicy>
<cmis:canGetAppliedPolicies>true</cmis:canGetAppliedPolicies>
<cmis:canRemovePolicy>true</cmis:canRemovePolicy>
<cmis:canGetChildren>true</cmis:canGetChildren>
<cmis:canCreateFolder>true</cmis:canCreateFolder>
<cmis:canDeleteTree>true</cmis:canDeleteTree>
</cmis:allowableActions>
<cmis:changeEventInfo>
<cmis:changeType>updated</cmis:changeType>
<cmis:changeTime>2009-07-17T09:13:33.125-07:00</cmis:changeTime>
</cmis:changeEventInfo>
</cmisra:object>
</atom:entry>
<atom:entry>
<atom:author>
<atom:name>Al Brown</atom:name>
<atom:uri>http://www.ibm.com/</atom:uri>
<atom:email>albertcbrown@us.ibm.com</atom:email>
</atom:author>
<atom:content src="http://cmisexample.oasis-open.org/rep1/13792086-4a35-4818-81a3-0ee63dbe023e"/>
<atom:id>urn:uuid:13792086-4a35-4818-81a3-0ee63dbe023e</atom:id>
<atom:link rel="self" href="http://cmisexample.oasis-open.org/rep1/13792086-4a35-4818-81a3-0ee63dbe023e"/>
<atom:link rel="edit" href="http://cmisexample.oasis-open.org/rep1/13792086-4a35-4818-81a3-0ee63dbe023e"/>
<atom:link type="application/cmis+xml;type=allowableActions" rel="allowableactions" href="http://cmisexample.oasis-open.org/rep1/13792086-4a35-4818-81a3-0ee63dbe023e/allowableactions"/>
<atom:link type="application/atom+xml;type=entry" rel="type" href="http://cmisexample.oasis-open.org/rep1/13792086-4a35-4818-81a3-0ee63dbe023e/type"/>
<atom:published>2009-07-17T09:13:33.125-07:00</atom:published>
<atom:summary type="html">HTML summary of Entry 13792086-4a35-4818-81a3-0ee63dbe023e</atom:summary>
<atom:title type="text">CMIS Example Folder as Invoice type</atom:title>
<atom:updated>2009-07-17T09:13:33.125-07:00</atom:updated>
<atom:link type="application/atom+xml;type=feed" rel="relationships" href="http://cmisexample.oasis-open.org/rep1/13792086-4a35-4818-81a3-0ee63dbe023e/relationships"/>
<atom:link type="application/atom+xml;type=entry" rel="up" href="http://cmisexample.oasis-open.org/rep1/13792086-4a35-4818-81a3-0ee63dbe023e/up"/>
<atom:link type="application/atom+xml;type=feed" rel="down" href="http://cmisexample.oasis-open.org/rep1/13792086-4a35-4818-81a3-0ee63dbe023e/children/flat"/>
<atom:link type="application/cmistree+xml" rel="down" href="http://cmisexample.oasis-open.org/rep1/13792086-4a35-4818-81a3-0ee63dbe023e/children/tree"/>
<cmisra:object>
<cmis:properties>
<cmis:propertyBoolean localname="rep-cmis:IsImmutable" pdid="cmis:IsImmutable">
<cmis:value>false</cmis:value>
</cmis:propertyBoolean>
<cmis:propertyDateTime localname="rep-cmis:CreationDate" pdid="cmis:CreationDate">
<cmis:value>2009-07-17T09:13:33.125-07:00</cmis:value>
</cmis:propertyDateTime>
<cmis:propertyDateTime localname="rep-cmis:LastModificationDate" pdid="cmis:LastModificationDate">
<cmis:value>2009-07-17T09:13:33.125-07:00</cmis:value>
</cmis:propertyDateTime>
<cmis:propertyId localname="rep-cmis:ObjectId" pdid="cmis:ObjectId">
<cmis:value>13792086-4a35-4818-81a3-0ee63dbe023e</cmis:value>
</cmis:propertyId>
<cmis:propertyId localname="rep-cmis:ObjectTypeId" pdid="cmis:ObjectTypeId">
<cmis:value>invoice</cmis:value>
</cmis:propertyId>
<cmis:propertyId localname="rep-cmis:BaseTypeId" pdid="cmis:BaseTypeId">
<cmis:value>cmis:folder</cmis:value>
</cmis:propertyId>
<cmis:propertyString localname="rep-cmis:LastModifiedBy" pdid="cmis:LastModifiedBy">
<cmis:value>Al Brown</cmis:value>
</cmis:propertyString>
<cmis:propertyString localname="rep-cmis:CreatedBy" pdid="cmis:CreatedBy">
<cmis:value>Al Brown</cmis:value>
</cmis:propertyString>
<cmis:propertyId localname="rep-cmis:ParentId" pdid="cmis:ParentId">
<cmis:value>13792086-4a35-4818-81a3-0ee63dbe023eup</cmis:value>
</cmis:propertyId>
</cmis:properties>
<cmis:allowableActions>
<cmis:canDeleteObject>true</cmis:canDeleteObject>
<cmis:canUpdateProperties>true</cmis:canUpdateProperties>
<cmis:canGetProperties>true</cmis:canGetProperties>
<cmis:canGetRelationships>true</cmis:canGetRelationships>
<cmis:canGetFolderParent>true</cmis:canGetFolderParent>
<cmis:canGetDescendants>true</cmis:canGetDescendants>
<cmis:canMoveObject>true</cmis:canMoveObject>
<cmis:canAddObjectToFolder>true</cmis:canAddObjectToFolder>
<cmis:canRemoveObjectFromFolder>true</cmis:canRemoveObjectFromFolder>
<cmis:canApplyPolicy>true</cmis:canApplyPolicy>
<cmis:canGetAppliedPolicies>true</cmis:canGetAppliedPolicies>
<cmis:canRemovePolicy>true</cmis:canRemovePolicy>
<cmis:canGetChildren>true</cmis:canGetChildren>
<cmis:canCreateFolder>true</cmis:canCreateFolder>
<cmis:canDeleteTree>true</cmis:canDeleteTree>
</cmis:allowableActions>
<cmis:changeEventInfo>
<cmis:changeType>updated</cmis:changeType>
<cmis:changeTime>2009-07-17T09:13:33.125-07:00</cmis:changeTime>
</cmis:changeEventInfo>
</cmisra:object>
</atom:entry>
<atom:entry>
<atom:author>
<atom:name>Al Brown</atom:name>
<atom:uri>http://www.ibm.com/</atom:uri>
<atom:email>albertcbrown@us.ibm.com</atom:email>
</atom:author>
<atom:content src="http://cmisexample.oasis-open.org/rep1/0c35d523-c8fc-42bb-b08d-ba57452c63c0"/>
<atom:id>urn:uuid:0c35d523-c8fc-42bb-b08d-ba57452c63c0</atom:id>
<atom:link rel="self" href="http://cmisexample.oasis-open.org/rep1/0c35d523-c8fc-42bb-b08d-ba57452c63c0"/>
<atom:link rel="edit" href="http://cmisexample.oasis-open.org/rep1/0c35d523-c8fc-42bb-b08d-ba57452c63c0"/>
<atom:link type="application/cmis+xml;type=allowableActions" rel="allowableactions" href="http://cmisexample.oasis-open.org/rep1/0c35d523-c8fc-42bb-b08d-ba57452c63c0/allowableactions"/>
<atom:link type="application/atom+xml;type=entry" rel="type" href="http://cmisexample.oasis-open.org/rep1/0c35d523-c8fc-42bb-b08d-ba57452c63c0/type"/>
<atom:published>2009-07-17T09:13:33.125-07:00</atom:published>
<atom:summary type="html">HTML summary of Entry 0c35d523-c8fc-42bb-b08d-ba57452c63c0</atom:summary>
<atom:title type="text">CMIS Example Folder as Invoice type</atom:title>
<atom:updated>2009-07-17T09:13:33.125-07:00</atom:updated>
<atom:link rel="edit-media" href="http://cmisexample.oasis-open.org/rep1/0c35d523-c8fc-42bb-b08d-ba57452c63c0/edit-media"/>
<atom:link rel="alternate" href="http://cmisexample.oasis-open.org/rep1/0c35d523-c8fc-42bb-b08d-ba57452c63c0/alternate"/>
<atom:link type="application/atom+xml;type=feed" rel="parents" href="http://cmisexample.oasis-open.org/rep1/0c35d523-c8fc-42bb-b08d-ba57452c63c0/parents"/>
<atom:link type="application/atom+xml;type=feed" rel="allversions" href="http://cmisexample.oasis-open.org/rep1/0c35d523-c8fc-42bb-b08d-ba57452c63c0/allversions"/>
<atom:link type="application/atom+xml;type=entry" rel="latestversion" href="http://cmisexample.oasis-open.org/rep1/0c35d523-c8fc-42bb-b08d-ba57452c63c0/latestversions"/>
<atom:link length="4123" type="text/plain" rel="stream" href="http://cmisexample.oasis-open.org/rep1/0c35d523-c8fc-42bb-b08d-ba57452c63c0media"/>
<atom:link type="application/atom+xml;type=feed" rel="relationships" href="http://cmisexample.oasis-open.org/rep1/0c35d523-c8fc-42bb-b08d-ba57452c63c0/relationships"/>
<cmisra:object>
<cmis:properties>
<cmis:propertyBoolean localname="rep-cmis:IsImmutable" pdid="cmis:IsImmutable">
<cmis:value>false</cmis:value>
</cmis:propertyBoolean>
<cmis:propertyDateTime localname="rep-cmis:CreationDate" pdid="cmis:CreationDate">
<cmis:value>2009-07-17T09:13:33.140-07:00</cmis:value>
</cmis:propertyDateTime>
<cmis:propertyDateTime localname="rep-cmis:LastModificationDate" pdid="cmis:LastModificationDate">
<cmis:value>2009-07-17T09:13:33.140-07:00</cmis:value>
</cmis:propertyDateTime>
<cmis:propertyId localname="rep-cmis:ObjectId" pdid="cmis:ObjectId">
<cmis:value>0c35d523-c8fc-42bb-b08d-ba57452c63c0</cmis:value>
</cmis:propertyId>
<cmis:propertyId localname="rep-cmis:ObjectTypeId" pdid="cmis:ObjectTypeId">
<cmis:value>invoice</cmis:value>
</cmis:propertyId>
<cmis:propertyId localname="rep-cmis:BaseTypeId" pdid="cmis:BaseTypeId">
<cmis:value>cmis:document</cmis:value>
</cmis:propertyId>
<cmis:propertyString localname="rep-cmis:LastModifiedBy" pdid="cmis:LastModifiedBy">
<cmis:value>Al Brown</cmis:value>
</cmis:propertyString>
<cmis:propertyString localname="rep-cmis:CreatedBy" pdid="cmis:CreatedBy">
<cmis:value>Al Brown</cmis:value>
</cmis:propertyString>
<cmis:propertyBoolean localname="rep-cmis:IsLatestVersion" pdid="cmis:IsLatestVersion">
<cmis:value>true</cmis:value>
</cmis:propertyBoolean>
<cmis:propertyBoolean localname="rep-cmis:IsVersionSeriesCheckedOut" pdid="cmis:IsVersionSeriesCheckedOut">
<cmis:value>false</cmis:value>
</cmis:propertyBoolean>
<cmis:propertyBoolean localname="rep-cmis:IsMajorVersion" pdid="cmis:IsMajorVersion">
<cmis:value>false</cmis:value>
</cmis:propertyBoolean>
<cmis:propertyBoolean localname="rep-cmis:IsLatestMajorVersion" pdid="cmis:IsLatestMajorVersion">
<cmis:value>false</cmis:value>
</cmis:propertyBoolean>
<cmis:propertyString localname="rep-cmis:CheckinComment" pdid="cmis:CheckinComment">
<cmis:value>Checkin comment</cmis:value>
</cmis:propertyString>
<cmis:propertyString localname="rep-cmis:VersionLabel" pdid="cmis:VersionLabel">
<cmis:value>0.1</cmis:value>
</cmis:propertyString>
<cmis:propertyString localname="rep-cmis:ContentStreamMimeType" pdid="cmis:ContentStreamMimeType">
<cmis:value>text/plain</cmis:value>
</cmis:propertyString>
<cmis:propertyString localname="rep-cmis:ContentStreamFileName" pdid="cmis:ContentStreamFileName">
<cmis:value>text.txt</cmis:value>
</cmis:propertyString>
<cmis:propertyInteger localname="rep-cmis:ContentStreamLength" pdid="cmis:ContentStreamLength">
<cmis:value>4234</cmis:value>
</cmis:propertyInteger>
<cmis:propertyString displayname="Keywords for Document" localname="keywords" pdid="keywords">
<cmis:value>document</cmis:value>
<cmis:value>example</cmis:value>
<cmis:value>sample</cmis:value>
<cmis:value>cmis</cmis:value>
</cmis:propertyString>
</cmis:properties>
<cmis:allowableActions>
<cmis:canDeleteObject>true</cmis:canDeleteObject>
<cmis:canUpdateProperties>true</cmis:canUpdateProperties>
<cmis:canGetProperties>true</cmis:canGetProperties>
<cmis:canGetRelationships>true</cmis:canGetRelationships>
<cmis:canGetObjectParents>true</cmis:canGetObjectParents>
<cmis:canMoveObject>true</cmis:canMoveObject>
<cmis:canDeleteContentStream>true</cmis:canDeleteContentStream>
<cmis:canCheckOut>true</cmis:canCheckOut>
<cmis:canCancelCheckOut>true</cmis:canCancelCheckOut>
<cmis:canCheckIn>true</cmis:canCheckIn>
<cmis:canSetContentStream>true</cmis:canSetContentStream>
<cmis:canGetAllVersions>true</cmis:canGetAllVersions>
<cmis:canAddObjectToFolder>true</cmis:canAddObjectToFolder>
<cmis:canRemoveObjectFromFolder>true</cmis:canRemoveObjectFromFolder>
<cmis:canGetContentStream>true</cmis:canGetContentStream>
<cmis:canApplyPolicy>true</cmis:canApplyPolicy>
<cmis:canGetAppliedPolicies>true</cmis:canGetAppliedPolicies>
<cmis:canRemovePolicy>true</cmis:canRemovePolicy>
<cmis:canCreateDocument>true</cmis:canCreateDocument>
</cmis:allowableActions>
<cmis:changeEventInfo>
<cmis:changeType>updated</cmis:changeType>
<cmis:changeTime>2009-07-17T09:13:33.140-07:00</cmis:changeTime>
</cmis:changeEventInfo>
</cmisra:object>
</atom:entry>
</atom:feed>

View File

@@ -1,107 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<atom:entry xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200901" xmlns:cmism="http://docs.oasis-open.org/ns/cmis/messaging/200901" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:app="http://www.w3.org/2007/app" xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200901">
<atom:author>
<atom:name>Al Brown</atom:name>
<atom:uri>http://www.ibm.com/</atom:uri>
<atom:email>albertcbrown@us.ibm.com</atom:email>
</atom:author>
<atom:content src="http://cmisexample.oasis-open.org/rep1/d6ea99e2-ef5e-4bbb-97fa-feeae20d0f94"/>
<atom:id>urn:uuid:d6ea99e2-ef5e-4bbb-97fa-feeae20d0f94</atom:id>
<atom:link rel="self" href="http://cmisexample.oasis-open.org/rep1/d6ea99e2-ef5e-4bbb-97fa-feeae20d0f94"/>
<atom:link rel="edit" href="http://cmisexample.oasis-open.org/rep1/d6ea99e2-ef5e-4bbb-97fa-feeae20d0f94"/>
<atom:link type="application/cmis+xml;type=allowableActions" rel="allowableactions" href="http://cmisexample.oasis-open.org/rep1/d6ea99e2-ef5e-4bbb-97fa-feeae20d0f94/allowableactions"/>
<atom:link type="application/atom+xml;type=entry" rel="type" href="http://cmisexample.oasis-open.org/rep1/d6ea99e2-ef5e-4bbb-97fa-feeae20d0f94/type"/>
<atom:published>2009-07-17T09:13:32.890-07:00</atom:published>
<atom:summary type="html">HTML summary of Entry d6ea99e2-ef5e-4bbb-97fa-feeae20d0f94</atom:summary>
<atom:title type="text">CMIS Example Document</atom:title>
<atom:updated>2009-07-17T09:13:32.906-07:00</atom:updated>
<atom:link rel="edit-media" href="http://cmisexample.oasis-open.org/rep1/d6ea99e2-ef5e-4bbb-97fa-feeae20d0f94/edit-media"/>
<atom:link rel="alternate" href="http://cmisexample.oasis-open.org/rep1/d6ea99e2-ef5e-4bbb-97fa-feeae20d0f94/alternate"/>
<atom:link type="application/atom+xml;type=feed" rel="parents" href="http://cmisexample.oasis-open.org/rep1/d6ea99e2-ef5e-4bbb-97fa-feeae20d0f94/parents"/>
<atom:link type="application/atom+xml;type=feed" rel="allversions" href="http://cmisexample.oasis-open.org/rep1/d6ea99e2-ef5e-4bbb-97fa-feeae20d0f94/allversions"/>
<atom:link type="application/atom+xml;type=entry" rel="latestversion" href="http://cmisexample.oasis-open.org/rep1/d6ea99e2-ef5e-4bbb-97fa-feeae20d0f94/latestversions"/>
<atom:link length="4123" type="text/plain" rel="stream" href="http://cmisexample.oasis-open.org/rep1/d6ea99e2-ef5e-4bbb-97fa-feeae20d0f94media"/>
<atom:link type="application/atom+xml;type=feed" rel="relationships" href="http://cmisexample.oasis-open.org/rep1/d6ea99e2-ef5e-4bbb-97fa-feeae20d0f94/relationships"/>
<cmisra:object>
<cmis:properties>
<cmis:propertyBoolean localname="rep-cmis:IsImmutable" pdid="cmis:IsImmutable">
<cmis:value>false</cmis:value>
</cmis:propertyBoolean>
<cmis:propertyDateTime localname="rep-cmis:CreationDate" pdid="cmis:CreationDate">
<cmis:value>2009-07-17T09:13:32.906-07:00</cmis:value>
</cmis:propertyDateTime>
<cmis:propertyDateTime localname="rep-cmis:LastModificationDate" pdid="cmis:LastModificationDate">
<cmis:value>2009-07-17T09:13:32.906-07:00</cmis:value>
</cmis:propertyDateTime>
<cmis:propertyId localname="rep-cmis:ObjectId" pdid="cmis:ObjectId">
<cmis:value>d6ea99e2-ef5e-4bbb-97fa-feeae20d0f94</cmis:value>
</cmis:propertyId>
<cmis:propertyId localname="rep-cmis:ObjectTypeId" pdid="cmis:ObjectTypeId">
<cmis:value>invoice</cmis:value>
</cmis:propertyId>
<cmis:propertyId localname="rep-cmis:BaseTypeId" pdid="cmis:BaseTypeId">
<cmis:value>cmis:document</cmis:value>
</cmis:propertyId>
<cmis:propertyString localname="rep-cmis:LastModifiedBy" pdid="cmis:LastModifiedBy">
<cmis:value>Al Brown</cmis:value>
</cmis:propertyString>
<cmis:propertyString localname="rep-cmis:CreatedBy" pdid="cmis:CreatedBy">
<cmis:value>Al Brown</cmis:value>
</cmis:propertyString>
<cmis:propertyBoolean localname="rep-cmis:IsLatestVersion" pdid="cmis:IsLatestVersion">
<cmis:value>true</cmis:value>
</cmis:propertyBoolean>
<cmis:propertyBoolean localname="rep-cmis:IsVersionSeriesCheckedOut" pdid="cmis:IsVersionSeriesCheckedOut">
<cmis:value>false</cmis:value>
</cmis:propertyBoolean>
<cmis:propertyBoolean localname="rep-cmis:IsMajorVersion" pdid="cmis:IsMajorVersion">
<cmis:value>false</cmis:value>
</cmis:propertyBoolean>
<cmis:propertyBoolean localname="rep-cmis:IsLatestMajorVersion" pdid="cmis:IsLatestMajorVersion">
<cmis:value>false</cmis:value>
</cmis:propertyBoolean>
<cmis:propertyString localname="rep-cmis:CheckinComment" pdid="cmis:CheckinComment">
<cmis:value>Checkin comment</cmis:value>
</cmis:propertyString>
<cmis:propertyString localname="rep-cmis:VersionLabel" pdid="cmis:VersionLabel">
<cmis:value>0.1</cmis:value>
</cmis:propertyString>
<cmis:propertyString localname="rep-cmis:ContentStreamMimeType" pdid="cmis:ContentStreamMimeType">
<cmis:value>text/plain</cmis:value>
</cmis:propertyString>
<cmis:propertyString localname="rep-cmis:ContentStreamFileName" pdid="cmis:ContentStreamFileName">
<cmis:value>text.txt</cmis:value>
</cmis:propertyString>
<cmis:propertyInteger localname="rep-cmis:ContentStreamLength" pdid="cmis:ContentStreamLength">
<cmis:value>4234</cmis:value>
</cmis:propertyInteger>
<cmis:propertyString displayname="Keywords for Document" localname="keywords" pdid="keywords">
<cmis:value>document</cmis:value>
<cmis:value>example</cmis:value>
<cmis:value>sample</cmis:value>
<cmis:value>cmis</cmis:value>
</cmis:propertyString>
</cmis:properties>
<cmis:allowableActions>
<cmis:canDeleteObject>true</cmis:canDeleteObject>
<cmis:canUpdateProperties>true</cmis:canUpdateProperties>
<cmis:canGetProperties>true</cmis:canGetProperties>
<cmis:canGetRelationships>true</cmis:canGetRelationships>
<cmis:canGetObjectParents>true</cmis:canGetObjectParents>
<cmis:canMoveObject>true</cmis:canMoveObject>
<cmis:canDeleteContentStream>true</cmis:canDeleteContentStream>
<cmis:canCheckOut>true</cmis:canCheckOut>
<cmis:canCancelCheckOut>true</cmis:canCancelCheckOut>
<cmis:canCheckIn>true</cmis:canCheckIn>
<cmis:canSetContentStream>true</cmis:canSetContentStream>
<cmis:canGetAllVersions>true</cmis:canGetAllVersions>
<cmis:canAddObjectToFolder>true</cmis:canAddObjectToFolder>
<cmis:canRemoveObjectFromFolder>true</cmis:canRemoveObjectFromFolder>
<cmis:canGetContentStream>true</cmis:canGetContentStream>
<cmis:canApplyPolicy>true</cmis:canApplyPolicy>
<cmis:canGetAppliedPolicies>true</cmis:canGetAppliedPolicies>
<cmis:canRemovePolicy>true</cmis:canRemovePolicy>
<cmis:canCreateDocument>true</cmis:canCreateDocument>
</cmis:allowableActions>
</cmisra:object>
</atom:entry>

View File

@@ -1,114 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<atom:entry xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200901" xmlns:cmism="http://docs.oasis-open.org/ns/cmis/messaging/200901" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:app="http://www.w3.org/2007/app" xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200901">
<atom:author>
<atom:name>Al Brown</atom:name>
<atom:uri>http://www.ibm.com/</atom:uri>
<atom:email>albertcbrown@us.ibm.com</atom:email>
</atom:author>
<atom:content src="http://cmisexample.oasis-open.org/rep1/24f3aad1-485c-468e-a9a7-aff29fdbeafb"/>
<atom:id>urn:uuid:24f3aad1-485c-468e-a9a7-aff29fdbeafb</atom:id>
<atom:link rel="self" href="http://cmisexample.oasis-open.org/rep1/24f3aad1-485c-468e-a9a7-aff29fdbeafb"/>
<atom:link rel="edit" href="http://cmisexample.oasis-open.org/rep1/24f3aad1-485c-468e-a9a7-aff29fdbeafb"/>
<atom:link type="application/cmis+xml;type=allowableActions" rel="allowableactions" href="http://cmisexample.oasis-open.org/rep1/24f3aad1-485c-468e-a9a7-aff29fdbeafb/allowableactions"/>
<atom:link type="application/atom+xml;type=entry" rel="type" href="http://cmisexample.oasis-open.org/rep1/24f3aad1-485c-468e-a9a7-aff29fdbeafb/type"/>
<atom:published>2009-07-17T09:13:32.921-07:00</atom:published>
<atom:summary type="html">HTML summary of Entry 24f3aad1-485c-468e-a9a7-aff29fdbeafb</atom:summary>
<atom:title type="text">CMIS Example Document for PWC</atom:title>
<atom:updated>2009-07-17T09:13:32.937-07:00</atom:updated>
<atom:link rel="edit-media" href="http://cmisexample.oasis-open.org/rep1/24f3aad1-485c-468e-a9a7-aff29fdbeafb/edit-media"/>
<atom:link rel="alternate" href="http://cmisexample.oasis-open.org/rep1/24f3aad1-485c-468e-a9a7-aff29fdbeafb/alternate"/>
<atom:link type="application/atom+xml;type=feed" rel="parents" href="http://cmisexample.oasis-open.org/rep1/24f3aad1-485c-468e-a9a7-aff29fdbeafb/parents"/>
<atom:link type="application/atom+xml;type=feed" rel="allversions" href="http://cmisexample.oasis-open.org/rep1/24f3aad1-485c-468e-a9a7-aff29fdbeafb/allversions"/>
<atom:link type="application/atom+xml;type=entry" rel="latestversion" href="http://cmisexample.oasis-open.org/rep1/24f3aad1-485c-468e-a9a7-aff29fdbeafb/latestversions"/>
<atom:link length="4123" type="text/plain" rel="stream" href="http://cmisexample.oasis-open.org/rep1/24f3aad1-485c-468e-a9a7-aff29fdbeafbmedia"/>
<atom:link type="application/atom+xml;type=feed" rel="relationships" href="http://cmisexample.oasis-open.org/rep1/24f3aad1-485c-468e-a9a7-aff29fdbeafb/relationships"/>
<atom:link type="application/atom+xml;type=feed" rel="pwc" href="http://cmisexample.oasis-open.org/rep1/24f3aad1-485c-468e-a9a7-aff29fdbeafb/pwc"/>
<cmisra:object>
<cmis:properties>
<cmis:propertyBoolean localname="rep-cmis:IsImmutable" pdid="cmis:IsImmutable">
<cmis:value>false</cmis:value>
</cmis:propertyBoolean>
<cmis:propertyDateTime localname="rep-cmis:CreationDate" pdid="cmis:CreationDate">
<cmis:value>2009-07-17T09:13:32.937-07:00</cmis:value>
</cmis:propertyDateTime>
<cmis:propertyDateTime localname="rep-cmis:LastModificationDate" pdid="cmis:LastModificationDate">
<cmis:value>2009-07-17T09:13:32.937-07:00</cmis:value>
</cmis:propertyDateTime>
<cmis:propertyId localname="rep-cmis:ObjectId" pdid="cmis:ObjectId">
<cmis:value>24f3aad1-485c-468e-a9a7-aff29fdbeafb</cmis:value>
</cmis:propertyId>
<cmis:propertyId localname="rep-cmis:ObjectTypeId" pdid="cmis:ObjectTypeId">
<cmis:value>invoice</cmis:value>
</cmis:propertyId>
<cmis:propertyId localname="rep-cmis:BaseTypeId" pdid="cmis:BaseTypeId">
<cmis:value>cmis:document</cmis:value>
</cmis:propertyId>
<cmis:propertyString localname="rep-cmis:LastModifiedBy" pdid="cmis:LastModifiedBy">
<cmis:value>Al Brown</cmis:value>
</cmis:propertyString>
<cmis:propertyString localname="rep-cmis:CreatedBy" pdid="cmis:CreatedBy">
<cmis:value>Al Brown</cmis:value>
</cmis:propertyString>
<cmis:propertyBoolean localname="rep-cmis:IsLatestVersion" pdid="cmis:IsLatestVersion">
<cmis:value>true</cmis:value>
</cmis:propertyBoolean>
<cmis:propertyBoolean localname="rep-cmis:IsVersionSeriesCheckedOut" pdid="cmis:IsVersionSeriesCheckedOut">
<cmis:value>true</cmis:value>
</cmis:propertyBoolean>
<cmis:propertyBoolean localname="rep-cmis:IsMajorVersion" pdid="cmis:IsMajorVersion">
<cmis:value>false</cmis:value>
</cmis:propertyBoolean>
<cmis:propertyBoolean localname="rep-cmis:IsLatestMajorVersion" pdid="cmis:IsLatestMajorVersion">
<cmis:value>false</cmis:value>
</cmis:propertyBoolean>
<cmis:propertyString localname="rep-cmis:CheckinComment" pdid="cmis:CheckinComment">
<cmis:value>Checkin comment</cmis:value>
</cmis:propertyString>
<cmis:propertyString localname="rep-cmis:VersionLabel" pdid="cmis:VersionLabel">
<cmis:value>0.1</cmis:value>
</cmis:propertyString>
<cmis:propertyString localname="rep-cmis:ContentStreamMimeType" pdid="cmis:ContentStreamMimeType">
<cmis:value>text/plain</cmis:value>
</cmis:propertyString>
<cmis:propertyString localname="rep-cmis:ContentStreamFileName" pdid="cmis:ContentStreamFileName">
<cmis:value>text.txt</cmis:value>
</cmis:propertyString>
<cmis:propertyInteger localname="rep-cmis:ContentStreamLength" pdid="cmis:ContentStreamLength">
<cmis:value>4234</cmis:value>
</cmis:propertyInteger>
<cmis:propertyString displayname="Keywords for Document" localname="keywords" pdid="keywords">
<cmis:value>document</cmis:value>
<cmis:value>example</cmis:value>
<cmis:value>sample</cmis:value>
<cmis:value>cmis</cmis:value>
</cmis:propertyString>
<cmis:propertyId localname="rep-cmis:VersionSeriesCheckedOutId" pdid="cmis:VersionSeriesCheckedOutId">
<cmis:value>vs-24f3aad1-485c-468e-a9a7-aff29fdbeafb</cmis:value>
</cmis:propertyId>
<cmis:propertyString localname="rep-cmis:VersionSeriesCheckedOutBy" pdid="cmis:VersionSeriesCheckedOutBy">
<cmis:value>Al Brown</cmis:value>
</cmis:propertyString>
</cmis:properties>
<cmis:allowableActions>
<cmis:canDeleteObject>true</cmis:canDeleteObject>
<cmis:canUpdateProperties>true</cmis:canUpdateProperties>
<cmis:canGetProperties>true</cmis:canGetProperties>
<cmis:canGetRelationships>true</cmis:canGetRelationships>
<cmis:canGetObjectParents>true</cmis:canGetObjectParents>
<cmis:canMoveObject>true</cmis:canMoveObject>
<cmis:canDeleteContentStream>true</cmis:canDeleteContentStream>
<cmis:canCheckOut>true</cmis:canCheckOut>
<cmis:canCancelCheckOut>true</cmis:canCancelCheckOut>
<cmis:canCheckIn>true</cmis:canCheckIn>
<cmis:canSetContentStream>true</cmis:canSetContentStream>
<cmis:canGetAllVersions>true</cmis:canGetAllVersions>
<cmis:canAddObjectToFolder>true</cmis:canAddObjectToFolder>
<cmis:canRemoveObjectFromFolder>true</cmis:canRemoveObjectFromFolder>
<cmis:canGetContentStream>true</cmis:canGetContentStream>
<cmis:canApplyPolicy>true</cmis:canApplyPolicy>
<cmis:canGetAppliedPolicies>true</cmis:canGetAppliedPolicies>
<cmis:canRemovePolicy>true</cmis:canRemovePolicy>
<cmis:canCreateDocument>true</cmis:canCreateDocument>
</cmis:allowableActions>
</cmisra:object>
</atom:entry>

View File

@@ -1,111 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<atom:entry xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200901" xmlns:cmism="http://docs.oasis-open.org/ns/cmis/messaging/200901" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:app="http://www.w3.org/2007/app" xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200901">
<atom:author>
<atom:name>Al Brown</atom:name>
<atom:uri>http://www.ibm.com/</atom:uri>
<atom:email>albertcbrown@us.ibm.com</atom:email>
</atom:author>
<atom:content src="http://cmisexample.oasis-open.org/rep1/fb7b8894-bf63-4f61-bcb6-8678d3af7b64"/>
<atom:id>urn:uuid:fb7b8894-bf63-4f61-bcb6-8678d3af7b64</atom:id>
<atom:link rel="self" href="http://cmisexample.oasis-open.org/rep1/fb7b8894-bf63-4f61-bcb6-8678d3af7b64"/>
<atom:link rel="edit" href="http://cmisexample.oasis-open.org/rep1/fb7b8894-bf63-4f61-bcb6-8678d3af7b64"/>
<atom:link type="application/cmis+xml;type=allowableActions" rel="allowableactions" href="http://cmisexample.oasis-open.org/rep1/fb7b8894-bf63-4f61-bcb6-8678d3af7b64/allowableactions"/>
<atom:link type="application/atom+xml;type=entry" rel="type" href="http://cmisexample.oasis-open.org/rep1/fb7b8894-bf63-4f61-bcb6-8678d3af7b64/type"/>
<atom:published>2009-07-17T09:13:33.156-07:00</atom:published>
<atom:summary type="html">HTML summary of Entry fb7b8894-bf63-4f61-bcb6-8678d3af7b64</atom:summary>
<atom:title type="text">CMIS Example Document - Loan</atom:title>
<atom:updated>2009-07-17T09:13:33.156-07:00</atom:updated>
<atom:link rel="edit-media" href="http://cmisexample.oasis-open.org/rep1/fb7b8894-bf63-4f61-bcb6-8678d3af7b64/edit-media"/>
<atom:link rel="alternate" href="http://cmisexample.oasis-open.org/rep1/fb7b8894-bf63-4f61-bcb6-8678d3af7b64/alternate"/>
<atom:link type="application/atom+xml;type=feed" rel="parents" href="http://cmisexample.oasis-open.org/rep1/fb7b8894-bf63-4f61-bcb6-8678d3af7b64/parents"/>
<atom:link type="application/atom+xml;type=feed" rel="allversions" href="http://cmisexample.oasis-open.org/rep1/fb7b8894-bf63-4f61-bcb6-8678d3af7b64/allversions"/>
<atom:link type="application/atom+xml;type=entry" rel="latestversion" href="http://cmisexample.oasis-open.org/rep1/fb7b8894-bf63-4f61-bcb6-8678d3af7b64/latestversions"/>
<atom:link length="4123" type="text/plain" rel="stream" href="http://cmisexample.oasis-open.org/rep1/fb7b8894-bf63-4f61-bcb6-8678d3af7b64media"/>
<atom:link type="application/atom+xml;type=feed" rel="relationships" href="http://cmisexample.oasis-open.org/rep1/fb7b8894-bf63-4f61-bcb6-8678d3af7b64/relationships"/>
<cmisra:object>
<cmis:properties>
<cmis:propertyBoolean localname="rep-cmis:IsImmutable" pdid="cmis:IsImmutable">
<cmis:value>false</cmis:value>
</cmis:propertyBoolean>
<cmis:propertyDateTime localname="rep-cmis:CreationDate" pdid="cmis:CreationDate">
<cmis:value>2009-07-17T09:13:33.156-07:00</cmis:value>
</cmis:propertyDateTime>
<cmis:propertyDateTime localname="rep-cmis:LastModificationDate" pdid="cmis:LastModificationDate">
<cmis:value>2009-07-17T09:13:33.156-07:00</cmis:value>
</cmis:propertyDateTime>
<cmis:propertyId localname="rep-cmis:ObjectId" pdid="cmis:ObjectId">
<cmis:value>fb7b8894-bf63-4f61-bcb6-8678d3af7b64</cmis:value>
</cmis:propertyId>
<cmis:propertyId localname="rep-cmis:ObjectTypeId" pdid="cmis:ObjectTypeId">
<cmis:value>loan</cmis:value>
</cmis:propertyId>
<cmis:propertyId localname="rep-cmis:BaseTypeId" pdid="cmis:BaseTypeId">
<cmis:value>cmis:document</cmis:value>
</cmis:propertyId>
<cmis:propertyString localname="rep-cmis:LastModifiedBy" pdid="cmis:LastModifiedBy">
<cmis:value>Al Brown</cmis:value>
</cmis:propertyString>
<cmis:propertyString localname="rep-cmis:CreatedBy" pdid="cmis:CreatedBy">
<cmis:value>Al Brown</cmis:value>
</cmis:propertyString>
<cmis:propertyBoolean localname="rep-cmis:IsLatestVersion" pdid="cmis:IsLatestVersion">
<cmis:value>true</cmis:value>
</cmis:propertyBoolean>
<cmis:propertyBoolean localname="rep-cmis:IsVersionSeriesCheckedOut" pdid="cmis:IsVersionSeriesCheckedOut">
<cmis:value>false</cmis:value>
</cmis:propertyBoolean>
<cmis:propertyBoolean localname="rep-cmis:IsMajorVersion" pdid="cmis:IsMajorVersion">
<cmis:value>false</cmis:value>
</cmis:propertyBoolean>
<cmis:propertyBoolean localname="rep-cmis:IsLatestMajorVersion" pdid="cmis:IsLatestMajorVersion">
<cmis:value>false</cmis:value>
</cmis:propertyBoolean>
<cmis:propertyString localname="rep-cmis:CheckinComment" pdid="cmis:CheckinComment">
<cmis:value>Checkin comment</cmis:value>
</cmis:propertyString>
<cmis:propertyString localname="rep-cmis:VersionLabel" pdid="cmis:VersionLabel">
<cmis:value>0.1</cmis:value>
</cmis:propertyString>
<cmis:propertyString localname="rep-cmis:ContentStreamMimeType" pdid="cmis:ContentStreamMimeType">
<cmis:value>text/plain</cmis:value>
</cmis:propertyString>
<cmis:propertyString localname="rep-cmis:ContentStreamFileName" pdid="cmis:ContentStreamFileName">
<cmis:value>text.txt</cmis:value>
</cmis:propertyString>
<cmis:propertyInteger localname="rep-cmis:ContentStreamLength" pdid="cmis:ContentStreamLength">
<cmis:value>4234</cmis:value>
</cmis:propertyInteger>
<cmis:propertyString displayname="Keywords for Document" localname="keywords" pdid="keywords">
<cmis:value>document</cmis:value>
<cmis:value>example</cmis:value>
<cmis:value>sample</cmis:value>
<cmis:value>cmis</cmis:value>
</cmis:propertyString>
</cmis:properties>
<cmis:allowableActions>
<cmis:canDeleteObject>true</cmis:canDeleteObject>
<cmis:canUpdateProperties>true</cmis:canUpdateProperties>
<cmis:canGetProperties>true</cmis:canGetProperties>
<cmis:canGetRelationships>true</cmis:canGetRelationships>
<cmis:canGetObjectParents>true</cmis:canGetObjectParents>
<cmis:canMoveObject>true</cmis:canMoveObject>
<cmis:canDeleteContentStream>true</cmis:canDeleteContentStream>
<cmis:canCheckOut>true</cmis:canCheckOut>
<cmis:canCancelCheckOut>true</cmis:canCancelCheckOut>
<cmis:canCheckIn>true</cmis:canCheckIn>
<cmis:canSetContentStream>true</cmis:canSetContentStream>
<cmis:canGetAllVersions>true</cmis:canGetAllVersions>
<cmis:canAddObjectToFolder>true</cmis:canAddObjectToFolder>
<cmis:canRemoveObjectFromFolder>true</cmis:canRemoveObjectFromFolder>
<cmis:canGetContentStream>true</cmis:canGetContentStream>
<cmis:canApplyPolicy>true</cmis:canApplyPolicy>
<cmis:canGetAppliedPolicies>true</cmis:canGetAppliedPolicies>
<cmis:canRemovePolicy>true</cmis:canRemovePolicy>
<cmis:canCreateDocument>true</cmis:canCreateDocument>
</cmis:allowableActions>
<cmis:changeEventInfo>
<cmis:changeType>updated</cmis:changeType>
<cmis:changeTime>2009-07-17T09:13:33.156-07:00</cmis:changeTime>
</cmis:changeEventInfo>
</cmisra:object>
</atom:entry>

View File

@@ -1,336 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<atom:feed xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200901" xmlns:cmism="http://docs.oasis-open.org/ns/cmis/messaging/200901" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:app="http://www.w3.org/2007/app" xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200901">
<atom:title type="text">Feed for folder1</atom:title>
<atom:author>
<atom:name>Al Brown</atom:name>
<atom:uri>http://www.ibm.com/</atom:uri>
<atom:email>albertcbrown@us.ibm.com</atom:email>
</atom:author>
<atom:updated>2009-07-17T09:13:33.000-07:00</atom:updated>
<atom:id>urn:uuid:55638aa8-d558-4e59-b9b4-0bf9aba14bb3</atom:id>
<atom:link type="application/atom+xml;type=feed" rel="self" href="http://cmisexample.oasis-open.org/rep1/folder1feed/3"/>
<atom:link type="application/atom+xml;type=entry" rel="via" href="http://cmisexample.oasis-open.org/rep1/folder1feed"/>
<atom:link type="application/atom+xml;type=feed" rel="first" href="http://cmisexample.oasis-open.org/rep1/folder1feed/first"/>
<atom:link type="application/atom+xml;type=feed" rel="next" href="http://cmisexample.oasis-open.org/rep1/folder1feed/4"/>
<atom:link type="application/atom+xml;type=feed" rel="previous" href="http://cmisexample.oasis-open.org/rep1/folder1feed/2"/>
<atom:link type="application/atom+xml;type=feed" rel="last" href="http://cmisexample.oasis-open.org/rep1/folder1feed/last"/>
<app:collection href="http://cmisexample.oasis-open.org/rep1/folder1feed/3">
<atom:title type="text">Feed for folder1</atom:title>
<app:accept>application/atom+xml;type=entry</app:accept>
<app:accept>application/atom+xml</app:accept>
<app:accept>*/*</app:accept>
</app:collection>
<atom:entry>
<atom:author>
<atom:name>Al Brown</atom:name>
<atom:uri>http://www.ibm.com/</atom:uri>
<atom:email>albertcbrown@us.ibm.com</atom:email>
</atom:author>
<atom:content src="http://cmisexample.oasis-open.org/rep1/aed6c3a7-306d-461f-9a4f-3eed15e19a13"/>
<atom:id>urn:uuid:aed6c3a7-306d-461f-9a4f-3eed15e19a13</atom:id>
<atom:link rel="self" href="http://cmisexample.oasis-open.org/rep1/aed6c3a7-306d-461f-9a4f-3eed15e19a13"/>
<atom:link rel="edit" href="http://cmisexample.oasis-open.org/rep1/aed6c3a7-306d-461f-9a4f-3eed15e19a13"/>
<atom:link type="application/cmis+xml;type=allowableActions" rel="allowableactions" href="http://cmisexample.oasis-open.org/rep1/aed6c3a7-306d-461f-9a4f-3eed15e19a13/allowableactions"/>
<atom:link type="application/atom+xml;type=entry" rel="type" href="http://cmisexample.oasis-open.org/rep1/aed6c3a7-306d-461f-9a4f-3eed15e19a13/type"/>
<atom:published>2009-07-17T09:13:33.000-07:00</atom:published>
<atom:summary type="html">HTML summary of Entry aed6c3a7-306d-461f-9a4f-3eed15e19a13</atom:summary>
<atom:title type="text">CMIS Example Folder as Customer type</atom:title>
<atom:updated>2009-07-17T09:13:33.000-07:00</atom:updated>
<atom:link type="application/atom+xml;type=feed" rel="relationships" href="http://cmisexample.oasis-open.org/rep1/aed6c3a7-306d-461f-9a4f-3eed15e19a13/relationships"/>
<atom:link type="application/atom+xml;type=entry" rel="up" href="http://cmisexample.oasis-open.org/rep1/aed6c3a7-306d-461f-9a4f-3eed15e19a13/up"/>
<atom:link type="application/atom+xml;type=feed" rel="down" href="http://cmisexample.oasis-open.org/rep1/aed6c3a7-306d-461f-9a4f-3eed15e19a13/children/flat"/>
<atom:link type="application/cmistree+xml" rel="down" href="http://cmisexample.oasis-open.org/rep1/aed6c3a7-306d-461f-9a4f-3eed15e19a13/children/tree"/>
<cmisra:object>
<cmis:properties>
<cmis:propertyBoolean localname="rep-cmis:IsImmutable" pdid="cmis:IsImmutable">
<cmis:value>false</cmis:value>
</cmis:propertyBoolean>
<cmis:propertyDateTime localname="rep-cmis:CreationDate" pdid="cmis:CreationDate">
<cmis:value>2009-07-17T09:13:33.000-07:00</cmis:value>
</cmis:propertyDateTime>
<cmis:propertyDateTime localname="rep-cmis:LastModificationDate" pdid="cmis:LastModificationDate">
<cmis:value>2009-07-17T09:13:33.015-07:00</cmis:value>
</cmis:propertyDateTime>
<cmis:propertyId localname="rep-cmis:ObjectId" pdid="cmis:ObjectId">
<cmis:value>aed6c3a7-306d-461f-9a4f-3eed15e19a13</cmis:value>
</cmis:propertyId>
<cmis:propertyId localname="rep-cmis:ObjectTypeId" pdid="cmis:ObjectTypeId">
<cmis:value>customer</cmis:value>
</cmis:propertyId>
<cmis:propertyId localname="rep-cmis:BaseTypeId" pdid="cmis:BaseTypeId">
<cmis:value>cmis:folder</cmis:value>
</cmis:propertyId>
<cmis:propertyString localname="rep-cmis:LastModifiedBy" pdid="cmis:LastModifiedBy">
<cmis:value>Al Brown</cmis:value>
</cmis:propertyString>
<cmis:propertyString localname="rep-cmis:CreatedBy" pdid="cmis:CreatedBy">
<cmis:value>Al Brown</cmis:value>
</cmis:propertyString>
<cmis:propertyId localname="rep-cmis:ParentId" pdid="cmis:ParentId">
<cmis:value>aed6c3a7-306d-461f-9a4f-3eed15e19a13up</cmis:value>
</cmis:propertyId>
</cmis:properties>
<cmis:allowableActions>
<cmis:canDeleteObject>true</cmis:canDeleteObject>
<cmis:canUpdateProperties>true</cmis:canUpdateProperties>
<cmis:canGetProperties>true</cmis:canGetProperties>
<cmis:canGetRelationships>true</cmis:canGetRelationships>
<cmis:canGetFolderParent>true</cmis:canGetFolderParent>
<cmis:canGetDescendants>true</cmis:canGetDescendants>
<cmis:canMoveObject>true</cmis:canMoveObject>
<cmis:canAddObjectToFolder>true</cmis:canAddObjectToFolder>
<cmis:canRemoveObjectFromFolder>true</cmis:canRemoveObjectFromFolder>
<cmis:canApplyPolicy>true</cmis:canApplyPolicy>
<cmis:canGetAppliedPolicies>true</cmis:canGetAppliedPolicies>
<cmis:canRemovePolicy>true</cmis:canRemovePolicy>
<cmis:canGetChildren>true</cmis:canGetChildren>
<cmis:canCreateFolder>true</cmis:canCreateFolder>
<cmis:canDeleteTree>true</cmis:canDeleteTree>
</cmis:allowableActions>
</cmisra:object>
</atom:entry>
<atom:entry>
<atom:author>
<atom:name>Al Brown</atom:name>
<atom:uri>http://www.ibm.com/</atom:uri>
<atom:email>albertcbrown@us.ibm.com</atom:email>
</atom:author>
<atom:content src="http://cmisexample.oasis-open.org/rep1/03649b71-6c2b-4298-a4fb-09dd8465a267"/>
<atom:id>urn:uuid:03649b71-6c2b-4298-a4fb-09dd8465a267</atom:id>
<atom:link rel="self" href="http://cmisexample.oasis-open.org/rep1/03649b71-6c2b-4298-a4fb-09dd8465a267"/>
<atom:link rel="edit" href="http://cmisexample.oasis-open.org/rep1/03649b71-6c2b-4298-a4fb-09dd8465a267"/>
<atom:link type="application/cmis+xml;type=allowableActions" rel="allowableactions" href="http://cmisexample.oasis-open.org/rep1/03649b71-6c2b-4298-a4fb-09dd8465a267/allowableactions"/>
<atom:link type="application/atom+xml;type=entry" rel="type" href="http://cmisexample.oasis-open.org/rep1/03649b71-6c2b-4298-a4fb-09dd8465a267/type"/>
<atom:published>2009-07-17T09:13:33.015-07:00</atom:published>
<atom:summary type="html">HTML summary of Entry 03649b71-6c2b-4298-a4fb-09dd8465a267</atom:summary>
<atom:title type="text">CMIS Example Folder as Customer type</atom:title>
<atom:updated>2009-07-17T09:13:33.015-07:00</atom:updated>
<atom:link type="application/atom+xml;type=feed" rel="relationships" href="http://cmisexample.oasis-open.org/rep1/03649b71-6c2b-4298-a4fb-09dd8465a267/relationships"/>
<atom:link type="application/atom+xml;type=entry" rel="up" href="http://cmisexample.oasis-open.org/rep1/03649b71-6c2b-4298-a4fb-09dd8465a267/up"/>
<atom:link type="application/atom+xml;type=feed" rel="down" href="http://cmisexample.oasis-open.org/rep1/03649b71-6c2b-4298-a4fb-09dd8465a267/children/flat"/>
<atom:link type="application/cmistree+xml" rel="down" href="http://cmisexample.oasis-open.org/rep1/03649b71-6c2b-4298-a4fb-09dd8465a267/children/tree"/>
<cmisra:object>
<cmis:properties>
<cmis:propertyBoolean localname="rep-cmis:IsImmutable" pdid="cmis:IsImmutable">
<cmis:value>false</cmis:value>
</cmis:propertyBoolean>
<cmis:propertyDateTime localname="rep-cmis:CreationDate" pdid="cmis:CreationDate">
<cmis:value>2009-07-17T09:13:33.015-07:00</cmis:value>
</cmis:propertyDateTime>
<cmis:propertyDateTime localname="rep-cmis:LastModificationDate" pdid="cmis:LastModificationDate">
<cmis:value>2009-07-17T09:13:33.015-07:00</cmis:value>
</cmis:propertyDateTime>
<cmis:propertyId localname="rep-cmis:ObjectId" pdid="cmis:ObjectId">
<cmis:value>03649b71-6c2b-4298-a4fb-09dd8465a267</cmis:value>
</cmis:propertyId>
<cmis:propertyId localname="rep-cmis:ObjectTypeId" pdid="cmis:ObjectTypeId">
<cmis:value>customer</cmis:value>
</cmis:propertyId>
<cmis:propertyId localname="rep-cmis:BaseTypeId" pdid="cmis:BaseTypeId">
<cmis:value>cmis:folder</cmis:value>
</cmis:propertyId>
<cmis:propertyString localname="rep-cmis:LastModifiedBy" pdid="cmis:LastModifiedBy">
<cmis:value>Al Brown</cmis:value>
</cmis:propertyString>
<cmis:propertyString localname="rep-cmis:CreatedBy" pdid="cmis:CreatedBy">
<cmis:value>Al Brown</cmis:value>
</cmis:propertyString>
<cmis:propertyId localname="rep-cmis:ParentId" pdid="cmis:ParentId">
<cmis:value>03649b71-6c2b-4298-a4fb-09dd8465a267up</cmis:value>
</cmis:propertyId>
</cmis:properties>
<cmis:allowableActions>
<cmis:canDeleteObject>true</cmis:canDeleteObject>
<cmis:canUpdateProperties>true</cmis:canUpdateProperties>
<cmis:canGetProperties>true</cmis:canGetProperties>
<cmis:canGetRelationships>true</cmis:canGetRelationships>
<cmis:canGetFolderParent>true</cmis:canGetFolderParent>
<cmis:canGetDescendants>true</cmis:canGetDescendants>
<cmis:canMoveObject>true</cmis:canMoveObject>
<cmis:canAddObjectToFolder>true</cmis:canAddObjectToFolder>
<cmis:canRemoveObjectFromFolder>true</cmis:canRemoveObjectFromFolder>
<cmis:canApplyPolicy>true</cmis:canApplyPolicy>
<cmis:canGetAppliedPolicies>true</cmis:canGetAppliedPolicies>
<cmis:canRemovePolicy>true</cmis:canRemovePolicy>
<cmis:canGetChildren>true</cmis:canGetChildren>
<cmis:canCreateFolder>true</cmis:canCreateFolder>
<cmis:canDeleteTree>true</cmis:canDeleteTree>
</cmis:allowableActions>
</cmisra:object>
</atom:entry>
<atom:entry>
<atom:author>
<atom:name>Al Brown</atom:name>
<atom:uri>http://www.ibm.com/</atom:uri>
<atom:email>albertcbrown@us.ibm.com</atom:email>
</atom:author>
<atom:content src="http://cmisexample.oasis-open.org/rep1/d67daab3-1357-4f76-a1ee-4e803277d7b6"/>
<atom:id>urn:uuid:d67daab3-1357-4f76-a1ee-4e803277d7b6</atom:id>
<atom:link rel="self" href="http://cmisexample.oasis-open.org/rep1/d67daab3-1357-4f76-a1ee-4e803277d7b6"/>
<atom:link rel="edit" href="http://cmisexample.oasis-open.org/rep1/d67daab3-1357-4f76-a1ee-4e803277d7b6"/>
<atom:link type="application/cmis+xml;type=allowableActions" rel="allowableactions" href="http://cmisexample.oasis-open.org/rep1/d67daab3-1357-4f76-a1ee-4e803277d7b6/allowableactions"/>
<atom:link type="application/atom+xml;type=entry" rel="type" href="http://cmisexample.oasis-open.org/rep1/d67daab3-1357-4f76-a1ee-4e803277d7b6/type"/>
<atom:published>2009-07-17T09:13:33.015-07:00</atom:published>
<atom:summary type="html">HTML summary of Entry d67daab3-1357-4f76-a1ee-4e803277d7b6</atom:summary>
<atom:title type="text">CMIS Example Folder as Invoice type</atom:title>
<atom:updated>2009-07-17T09:13:33.015-07:00</atom:updated>
<atom:link type="application/atom+xml;type=feed" rel="relationships" href="http://cmisexample.oasis-open.org/rep1/d67daab3-1357-4f76-a1ee-4e803277d7b6/relationships"/>
<atom:link type="application/atom+xml;type=entry" rel="up" href="http://cmisexample.oasis-open.org/rep1/d67daab3-1357-4f76-a1ee-4e803277d7b6/up"/>
<atom:link type="application/atom+xml;type=feed" rel="down" href="http://cmisexample.oasis-open.org/rep1/d67daab3-1357-4f76-a1ee-4e803277d7b6/children/flat"/>
<atom:link type="application/cmistree+xml" rel="down" href="http://cmisexample.oasis-open.org/rep1/d67daab3-1357-4f76-a1ee-4e803277d7b6/children/tree"/>
<cmisra:object>
<cmis:properties>
<cmis:propertyBoolean localname="rep-cmis:IsImmutable" pdid="cmis:IsImmutable">
<cmis:value>false</cmis:value>
</cmis:propertyBoolean>
<cmis:propertyDateTime localname="rep-cmis:CreationDate" pdid="cmis:CreationDate">
<cmis:value>2009-07-17T09:13:33.015-07:00</cmis:value>
</cmis:propertyDateTime>
<cmis:propertyDateTime localname="rep-cmis:LastModificationDate" pdid="cmis:LastModificationDate">
<cmis:value>2009-07-17T09:13:33.015-07:00</cmis:value>
</cmis:propertyDateTime>
<cmis:propertyId localname="rep-cmis:ObjectId" pdid="cmis:ObjectId">
<cmis:value>d67daab3-1357-4f76-a1ee-4e803277d7b6</cmis:value>
</cmis:propertyId>
<cmis:propertyId localname="rep-cmis:ObjectTypeId" pdid="cmis:ObjectTypeId">
<cmis:value>invoice</cmis:value>
</cmis:propertyId>
<cmis:propertyId localname="rep-cmis:BaseTypeId" pdid="cmis:BaseTypeId">
<cmis:value>cmis:folder</cmis:value>
</cmis:propertyId>
<cmis:propertyString localname="rep-cmis:LastModifiedBy" pdid="cmis:LastModifiedBy">
<cmis:value>Al Brown</cmis:value>
</cmis:propertyString>
<cmis:propertyString localname="rep-cmis:CreatedBy" pdid="cmis:CreatedBy">
<cmis:value>Al Brown</cmis:value>
</cmis:propertyString>
<cmis:propertyId localname="rep-cmis:ParentId" pdid="cmis:ParentId">
<cmis:value>d67daab3-1357-4f76-a1ee-4e803277d7b6up</cmis:value>
</cmis:propertyId>
</cmis:properties>
<cmis:allowableActions>
<cmis:canDeleteObject>true</cmis:canDeleteObject>
<cmis:canUpdateProperties>true</cmis:canUpdateProperties>
<cmis:canGetProperties>true</cmis:canGetProperties>
<cmis:canGetRelationships>true</cmis:canGetRelationships>
<cmis:canGetFolderParent>true</cmis:canGetFolderParent>
<cmis:canGetDescendants>true</cmis:canGetDescendants>
<cmis:canMoveObject>true</cmis:canMoveObject>
<cmis:canAddObjectToFolder>true</cmis:canAddObjectToFolder>
<cmis:canRemoveObjectFromFolder>true</cmis:canRemoveObjectFromFolder>
<cmis:canApplyPolicy>true</cmis:canApplyPolicy>
<cmis:canGetAppliedPolicies>true</cmis:canGetAppliedPolicies>
<cmis:canRemovePolicy>true</cmis:canRemovePolicy>
<cmis:canGetChildren>true</cmis:canGetChildren>
<cmis:canCreateFolder>true</cmis:canCreateFolder>
<cmis:canDeleteTree>true</cmis:canDeleteTree>
</cmis:allowableActions>
</cmisra:object>
</atom:entry>
<atom:entry>
<atom:author>
<atom:name>Al Brown</atom:name>
<atom:uri>http://www.ibm.com/</atom:uri>
<atom:email>albertcbrown@us.ibm.com</atom:email>
</atom:author>
<atom:content src="http://cmisexample.oasis-open.org/rep1/ce8c55db-a313-4db5-96c6-4d9b8a171a8d"/>
<atom:id>urn:uuid:ce8c55db-a313-4db5-96c6-4d9b8a171a8d</atom:id>
<atom:link rel="self" href="http://cmisexample.oasis-open.org/rep1/ce8c55db-a313-4db5-96c6-4d9b8a171a8d"/>
<atom:link rel="edit" href="http://cmisexample.oasis-open.org/rep1/ce8c55db-a313-4db5-96c6-4d9b8a171a8d"/>
<atom:link type="application/cmis+xml;type=allowableActions" rel="allowableactions" href="http://cmisexample.oasis-open.org/rep1/ce8c55db-a313-4db5-96c6-4d9b8a171a8d/allowableactions"/>
<atom:link type="application/atom+xml;type=entry" rel="type" href="http://cmisexample.oasis-open.org/rep1/ce8c55db-a313-4db5-96c6-4d9b8a171a8d/type"/>
<atom:published>2009-07-17T09:13:33.015-07:00</atom:published>
<atom:summary type="html">HTML summary of Entry ce8c55db-a313-4db5-96c6-4d9b8a171a8d</atom:summary>
<atom:title type="text">CMIS Example Folder as Invoice type</atom:title>
<atom:updated>2009-07-17T09:13:33.015-07:00</atom:updated>
<atom:link rel="edit-media" href="http://cmisexample.oasis-open.org/rep1/ce8c55db-a313-4db5-96c6-4d9b8a171a8d/edit-media"/>
<atom:link rel="alternate" href="http://cmisexample.oasis-open.org/rep1/ce8c55db-a313-4db5-96c6-4d9b8a171a8d/alternate"/>
<atom:link type="application/atom+xml;type=feed" rel="parents" href="http://cmisexample.oasis-open.org/rep1/ce8c55db-a313-4db5-96c6-4d9b8a171a8d/parents"/>
<atom:link type="application/atom+xml;type=feed" rel="allversions" href="http://cmisexample.oasis-open.org/rep1/ce8c55db-a313-4db5-96c6-4d9b8a171a8d/allversions"/>
<atom:link type="application/atom+xml;type=entry" rel="latestversion" href="http://cmisexample.oasis-open.org/rep1/ce8c55db-a313-4db5-96c6-4d9b8a171a8d/latestversions"/>
<atom:link length="4123" type="text/plain" rel="stream" href="http://cmisexample.oasis-open.org/rep1/ce8c55db-a313-4db5-96c6-4d9b8a171a8dmedia"/>
<atom:link type="application/atom+xml;type=feed" rel="relationships" href="http://cmisexample.oasis-open.org/rep1/ce8c55db-a313-4db5-96c6-4d9b8a171a8d/relationships"/>
<cmisra:object>
<cmis:properties>
<cmis:propertyBoolean localname="rep-cmis:IsImmutable" pdid="cmis:IsImmutable">
<cmis:value>false</cmis:value>
</cmis:propertyBoolean>
<cmis:propertyDateTime localname="rep-cmis:CreationDate" pdid="cmis:CreationDate">
<cmis:value>2009-07-17T09:13:33.015-07:00</cmis:value>
</cmis:propertyDateTime>
<cmis:propertyDateTime localname="rep-cmis:LastModificationDate" pdid="cmis:LastModificationDate">
<cmis:value>2009-07-17T09:13:33.015-07:00</cmis:value>
</cmis:propertyDateTime>
<cmis:propertyId localname="rep-cmis:ObjectId" pdid="cmis:ObjectId">
<cmis:value>ce8c55db-a313-4db5-96c6-4d9b8a171a8d</cmis:value>
</cmis:propertyId>
<cmis:propertyId localname="rep-cmis:ObjectTypeId" pdid="cmis:ObjectTypeId">
<cmis:value>invoice</cmis:value>
</cmis:propertyId>
<cmis:propertyId localname="rep-cmis:BaseTypeId" pdid="cmis:BaseTypeId">
<cmis:value>cmis:document</cmis:value>
</cmis:propertyId>
<cmis:propertyString localname="rep-cmis:LastModifiedBy" pdid="cmis:LastModifiedBy">
<cmis:value>Al Brown</cmis:value>
</cmis:propertyString>
<cmis:propertyString localname="rep-cmis:CreatedBy" pdid="cmis:CreatedBy">
<cmis:value>Al Brown</cmis:value>
</cmis:propertyString>
<cmis:propertyBoolean localname="rep-cmis:IsLatestVersion" pdid="cmis:IsLatestVersion">
<cmis:value>true</cmis:value>
</cmis:propertyBoolean>
<cmis:propertyBoolean localname="rep-cmis:IsVersionSeriesCheckedOut" pdid="cmis:IsVersionSeriesCheckedOut">
<cmis:value>false</cmis:value>
</cmis:propertyBoolean>
<cmis:propertyBoolean localname="rep-cmis:IsMajorVersion" pdid="cmis:IsMajorVersion">
<cmis:value>false</cmis:value>
</cmis:propertyBoolean>
<cmis:propertyBoolean localname="rep-cmis:IsLatestMajorVersion" pdid="cmis:IsLatestMajorVersion">
<cmis:value>false</cmis:value>
</cmis:propertyBoolean>
<cmis:propertyString localname="rep-cmis:CheckinComment" pdid="cmis:CheckinComment">
<cmis:value>Checkin comment</cmis:value>
</cmis:propertyString>
<cmis:propertyString localname="rep-cmis:VersionLabel" pdid="cmis:VersionLabel">
<cmis:value>0.1</cmis:value>
</cmis:propertyString>
<cmis:propertyString localname="rep-cmis:ContentStreamMimeType" pdid="cmis:ContentStreamMimeType">
<cmis:value>text/plain</cmis:value>
</cmis:propertyString>
<cmis:propertyString localname="rep-cmis:ContentStreamFileName" pdid="cmis:ContentStreamFileName">
<cmis:value>text.txt</cmis:value>
</cmis:propertyString>
<cmis:propertyInteger localname="rep-cmis:ContentStreamLength" pdid="cmis:ContentStreamLength">
<cmis:value>4234</cmis:value>
</cmis:propertyInteger>
<cmis:propertyString displayname="Keywords for Document" localname="keywords" pdid="keywords">
<cmis:value>document</cmis:value>
<cmis:value>example</cmis:value>
<cmis:value>sample</cmis:value>
<cmis:value>cmis</cmis:value>
</cmis:propertyString>
</cmis:properties>
<cmis:allowableActions>
<cmis:canDeleteObject>true</cmis:canDeleteObject>
<cmis:canUpdateProperties>true</cmis:canUpdateProperties>
<cmis:canGetProperties>true</cmis:canGetProperties>
<cmis:canGetRelationships>true</cmis:canGetRelationships>
<cmis:canGetObjectParents>true</cmis:canGetObjectParents>
<cmis:canMoveObject>true</cmis:canMoveObject>
<cmis:canDeleteContentStream>true</cmis:canDeleteContentStream>
<cmis:canCheckOut>true</cmis:canCheckOut>
<cmis:canCancelCheckOut>true</cmis:canCancelCheckOut>
<cmis:canCheckIn>true</cmis:canCheckIn>
<cmis:canSetContentStream>true</cmis:canSetContentStream>
<cmis:canGetAllVersions>true</cmis:canGetAllVersions>
<cmis:canAddObjectToFolder>true</cmis:canAddObjectToFolder>
<cmis:canRemoveObjectFromFolder>true</cmis:canRemoveObjectFromFolder>
<cmis:canGetContentStream>true</cmis:canGetContentStream>
<cmis:canApplyPolicy>true</cmis:canApplyPolicy>
<cmis:canGetAppliedPolicies>true</cmis:canGetAppliedPolicies>
<cmis:canRemovePolicy>true</cmis:canRemovePolicy>
<cmis:canCreateDocument>true</cmis:canCreateDocument>
</cmis:allowableActions>
</cmisra:object>
</atom:entry>
</atom:feed>

View File

@@ -1,493 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<atom:feed xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200901" xmlns:cmism="http://docs.oasis-open.org/ns/cmis/messaging/200901" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:app="http://www.w3.org/2007/app" xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200901">
<atom:title type="text">Feed for folder1</atom:title>
<atom:author>
<atom:name>Al Brown</atom:name>
<atom:uri>http://www.ibm.com/</atom:uri>
<atom:email>albertcbrown@us.ibm.com</atom:email>
</atom:author>
<atom:updated>2009-07-17T09:13:33.046-07:00</atom:updated>
<atom:id>urn:uuid:93474b3f-9ca1-440a-8856-af51e5197e05</atom:id>
<atom:link type="application/atom+xml;type=feed" rel="self" href="http://cmisexample.oasis-open.org/rep1/efe18f0a-74e8-4dcd-8057-9fcb799caf0e/3"/>
<atom:link type="application/atom+xml;type=entry" rel="via" href="http://cmisexample.oasis-open.org/rep1/efe18f0a-74e8-4dcd-8057-9fcb799caf0e"/>
<app:collection href="http://cmisexample.oasis-open.org/rep1/efe18f0a-74e8-4dcd-8057-9fcb799caf0e/3">
<atom:title type="text">Feed for folder1</atom:title>
<app:accept>application/atom+xml;type=entry</app:accept>
<app:accept>application/atom+xml</app:accept>
<app:accept>*/*</app:accept>
</app:collection>
<atom:entry>
<atom:author>
<atom:name>Al Brown</atom:name>
<atom:uri>http://www.ibm.com/</atom:uri>
<atom:email>albertcbrown@us.ibm.com</atom:email>
</atom:author>
<atom:content src="http://cmisexample.oasis-open.org/rep1/50f79725-6aa4-4206-838e-03c90a045b17"/>
<atom:id>urn:uuid:50f79725-6aa4-4206-838e-03c90a045b17</atom:id>
<atom:link rel="self" href="http://cmisexample.oasis-open.org/rep1/50f79725-6aa4-4206-838e-03c90a045b17"/>
<atom:link rel="edit" href="http://cmisexample.oasis-open.org/rep1/50f79725-6aa4-4206-838e-03c90a045b17"/>
<atom:link type="application/cmis+xml;type=allowableActions" rel="allowableactions" href="http://cmisexample.oasis-open.org/rep1/50f79725-6aa4-4206-838e-03c90a045b17/allowableactions"/>
<atom:link type="application/atom+xml;type=entry" rel="type" href="http://cmisexample.oasis-open.org/rep1/50f79725-6aa4-4206-838e-03c90a045b17/type"/>
<atom:published>2009-07-17T09:13:33.046-07:00</atom:published>
<atom:summary type="html">HTML summary of Entry 50f79725-6aa4-4206-838e-03c90a045b17</atom:summary>
<atom:title type="text">CMIS Example Folder as Customer type</atom:title>
<atom:updated>2009-07-17T09:13:33.046-07:00</atom:updated>
<atom:link type="application/atom+xml;type=feed" rel="relationships" href="http://cmisexample.oasis-open.org/rep1/50f79725-6aa4-4206-838e-03c90a045b17/relationships"/>
<atom:link type="application/atom+xml;type=entry" rel="up" href="http://cmisexample.oasis-open.org/rep1/50f79725-6aa4-4206-838e-03c90a045b17/up"/>
<atom:link type="application/atom+xml;type=feed" rel="down" href="http://cmisexample.oasis-open.org/rep1/50f79725-6aa4-4206-838e-03c90a045b17/children/flat"/>
<atom:link type="application/cmistree+xml" rel="down" href="http://cmisexample.oasis-open.org/rep1/50f79725-6aa4-4206-838e-03c90a045b17/children/tree"/>
<cmisra:object>
<cmis:properties>
<cmis:propertyBoolean localname="rep-cmis:IsImmutable" pdid="cmis:IsImmutable">
<cmis:value>false</cmis:value>
</cmis:propertyBoolean>
<cmis:propertyDateTime localname="rep-cmis:CreationDate" pdid="cmis:CreationDate">
<cmis:value>2009-07-17T09:13:33.046-07:00</cmis:value>
</cmis:propertyDateTime>
<cmis:propertyDateTime localname="rep-cmis:LastModificationDate" pdid="cmis:LastModificationDate">
<cmis:value>2009-07-17T09:13:33.046-07:00</cmis:value>
</cmis:propertyDateTime>
<cmis:propertyId localname="rep-cmis:ObjectId" pdid="cmis:ObjectId">
<cmis:value>50f79725-6aa4-4206-838e-03c90a045b17</cmis:value>
</cmis:propertyId>
<cmis:propertyId localname="rep-cmis:ObjectTypeId" pdid="cmis:ObjectTypeId">
<cmis:value>customer</cmis:value>
</cmis:propertyId>
<cmis:propertyId localname="rep-cmis:BaseTypeId" pdid="cmis:BaseTypeId">
<cmis:value>cmis:folder</cmis:value>
</cmis:propertyId>
<cmis:propertyString localname="rep-cmis:LastModifiedBy" pdid="cmis:LastModifiedBy">
<cmis:value>Al Brown</cmis:value>
</cmis:propertyString>
<cmis:propertyString localname="rep-cmis:CreatedBy" pdid="cmis:CreatedBy">
<cmis:value>Al Brown</cmis:value>
</cmis:propertyString>
<cmis:propertyId localname="rep-cmis:ParentId" pdid="cmis:ParentId">
<cmis:value>50f79725-6aa4-4206-838e-03c90a045b17up</cmis:value>
</cmis:propertyId>
</cmis:properties>
<cmis:allowableActions>
<cmis:canDeleteObject>true</cmis:canDeleteObject>
<cmis:canUpdateProperties>true</cmis:canUpdateProperties>
<cmis:canGetProperties>true</cmis:canGetProperties>
<cmis:canGetRelationships>true</cmis:canGetRelationships>
<cmis:canGetFolderParent>true</cmis:canGetFolderParent>
<cmis:canGetDescendants>true</cmis:canGetDescendants>
<cmis:canMoveObject>true</cmis:canMoveObject>
<cmis:canAddObjectToFolder>true</cmis:canAddObjectToFolder>
<cmis:canRemoveObjectFromFolder>true</cmis:canRemoveObjectFromFolder>
<cmis:canApplyPolicy>true</cmis:canApplyPolicy>
<cmis:canGetAppliedPolicies>true</cmis:canGetAppliedPolicies>
<cmis:canRemovePolicy>true</cmis:canRemovePolicy>
<cmis:canGetChildren>true</cmis:canGetChildren>
<cmis:canCreateFolder>true</cmis:canCreateFolder>
<cmis:canDeleteTree>true</cmis:canDeleteTree>
</cmis:allowableActions>
</cmisra:object>
<cmisra:children>
<atom:title type="text">CMIS Example Folder as Customer type</atom:title>
<atom:author>
<atom:name>Al Brown</atom:name>
<atom:uri>http://www.ibm.com/</atom:uri>
<atom:email>albertcbrown@us.ibm.com</atom:email>
</atom:author>
<atom:updated>2009-07-17T09:13:33.046-07:00</atom:updated>
<atom:id>urn:uuid:40c0b703-758c-4102-8739-18d19e11109c</atom:id>
<atom:link type="application/atom+xml;type=feed" rel="self" href="http://cmisexample.oasis-open.org/rep1/50f79725-6aa4-4206-838e-03c90a045b17/3"/>
<atom:link type="application/atom+xml;type=entry" rel="via" href="http://cmisexample.oasis-open.org/rep1/50f79725-6aa4-4206-838e-03c90a045b17"/>
<app:collection href="http://cmisexample.oasis-open.org/rep1/50f79725-6aa4-4206-838e-03c90a045b17/3">
<atom:title type="text">CMIS Example Folder as Customer type</atom:title>
<app:accept>application/atom+xml;type=entry</app:accept>
<app:accept>application/atom+xml</app:accept>
<app:accept>*/*</app:accept>
</app:collection>
<atom:entry>
<atom:author>
<atom:name>Al Brown</atom:name>
<atom:uri>http://www.ibm.com/</atom:uri>
<atom:email>albertcbrown@us.ibm.com</atom:email>
</atom:author>
<atom:content src="http://cmisexample.oasis-open.org/rep1/ba61c32c-da45-43cf-8fe7-399cae307ccc"/>
<atom:id>urn:uuid:ba61c32c-da45-43cf-8fe7-399cae307ccc</atom:id>
<atom:link rel="self" href="http://cmisexample.oasis-open.org/rep1/ba61c32c-da45-43cf-8fe7-399cae307ccc"/>
<atom:link rel="edit" href="http://cmisexample.oasis-open.org/rep1/ba61c32c-da45-43cf-8fe7-399cae307ccc"/>
<atom:link type="application/cmis+xml;type=allowableActions" rel="allowableactions" href="http://cmisexample.oasis-open.org/rep1/ba61c32c-da45-43cf-8fe7-399cae307ccc/allowableactions"/>
<atom:link type="application/atom+xml;type=entry" rel="type" href="http://cmisexample.oasis-open.org/rep1/ba61c32c-da45-43cf-8fe7-399cae307ccc/type"/>
<atom:published>2009-07-17T09:13:33.046-07:00</atom:published>
<atom:summary type="html">HTML summary of Entry ba61c32c-da45-43cf-8fe7-399cae307ccc</atom:summary>
<atom:title type="text">CMIS Example Doc as Invoice type</atom:title>
<atom:updated>2009-07-17T09:13:33.046-07:00</atom:updated>
<atom:link rel="edit-media" href="http://cmisexample.oasis-open.org/rep1/ba61c32c-da45-43cf-8fe7-399cae307ccc/edit-media"/>
<atom:link rel="alternate" href="http://cmisexample.oasis-open.org/rep1/ba61c32c-da45-43cf-8fe7-399cae307ccc/alternate"/>
<atom:link type="application/atom+xml;type=feed" rel="parents" href="http://cmisexample.oasis-open.org/rep1/ba61c32c-da45-43cf-8fe7-399cae307ccc/parents"/>
<atom:link type="application/atom+xml;type=feed" rel="allversions" href="http://cmisexample.oasis-open.org/rep1/ba61c32c-da45-43cf-8fe7-399cae307ccc/allversions"/>
<atom:link type="application/atom+xml;type=entry" rel="latestversion" href="http://cmisexample.oasis-open.org/rep1/ba61c32c-da45-43cf-8fe7-399cae307ccc/latestversions"/>
<atom:link length="4123" type="text/plain" rel="stream" href="http://cmisexample.oasis-open.org/rep1/ba61c32c-da45-43cf-8fe7-399cae307cccmedia"/>
<atom:link type="application/atom+xml;type=feed" rel="relationships" href="http://cmisexample.oasis-open.org/rep1/ba61c32c-da45-43cf-8fe7-399cae307ccc/relationships"/>
<cmisra:object>
<cmis:properties>
<cmis:propertyBoolean localname="rep-cmis:IsImmutable" pdid="cmis:IsImmutable">
<cmis:value>false</cmis:value>
</cmis:propertyBoolean>
<cmis:propertyDateTime localname="rep-cmis:CreationDate" pdid="cmis:CreationDate">
<cmis:value>2009-07-17T09:13:33.046-07:00</cmis:value>
</cmis:propertyDateTime>
<cmis:propertyDateTime localname="rep-cmis:LastModificationDate" pdid="cmis:LastModificationDate">
<cmis:value>2009-07-17T09:13:33.046-07:00</cmis:value>
</cmis:propertyDateTime>
<cmis:propertyId localname="rep-cmis:ObjectId" pdid="cmis:ObjectId">
<cmis:value>ba61c32c-da45-43cf-8fe7-399cae307ccc</cmis:value>
</cmis:propertyId>
<cmis:propertyId localname="rep-cmis:ObjectTypeId" pdid="cmis:ObjectTypeId">
<cmis:value>invoice</cmis:value>
</cmis:propertyId>
<cmis:propertyId localname="rep-cmis:BaseTypeId" pdid="cmis:BaseTypeId">
<cmis:value>cmis:document</cmis:value>
</cmis:propertyId>
<cmis:propertyString localname="rep-cmis:LastModifiedBy" pdid="cmis:LastModifiedBy">
<cmis:value>Al Brown</cmis:value>
</cmis:propertyString>
<cmis:propertyString localname="rep-cmis:CreatedBy" pdid="cmis:CreatedBy">
<cmis:value>Al Brown</cmis:value>
</cmis:propertyString>
<cmis:propertyBoolean localname="rep-cmis:IsLatestVersion" pdid="cmis:IsLatestVersion">
<cmis:value>true</cmis:value>
</cmis:propertyBoolean>
<cmis:propertyBoolean localname="rep-cmis:IsVersionSeriesCheckedOut" pdid="cmis:IsVersionSeriesCheckedOut">
<cmis:value>false</cmis:value>
</cmis:propertyBoolean>
<cmis:propertyBoolean localname="rep-cmis:IsMajorVersion" pdid="cmis:IsMajorVersion">
<cmis:value>false</cmis:value>
</cmis:propertyBoolean>
<cmis:propertyBoolean localname="rep-cmis:IsLatestMajorVersion" pdid="cmis:IsLatestMajorVersion">
<cmis:value>false</cmis:value>
</cmis:propertyBoolean>
<cmis:propertyString localname="rep-cmis:CheckinComment" pdid="cmis:CheckinComment">
<cmis:value>Checkin comment</cmis:value>
</cmis:propertyString>
<cmis:propertyString localname="rep-cmis:VersionLabel" pdid="cmis:VersionLabel">
<cmis:value>0.1</cmis:value>
</cmis:propertyString>
<cmis:propertyString localname="rep-cmis:ContentStreamMimeType" pdid="cmis:ContentStreamMimeType">
<cmis:value>text/plain</cmis:value>
</cmis:propertyString>
<cmis:propertyString localname="rep-cmis:ContentStreamFileName" pdid="cmis:ContentStreamFileName">
<cmis:value>text.txt</cmis:value>
</cmis:propertyString>
<cmis:propertyInteger localname="rep-cmis:ContentStreamLength" pdid="cmis:ContentStreamLength">
<cmis:value>4234</cmis:value>
</cmis:propertyInteger>
<cmis:propertyString displayname="Keywords for Document" localname="keywords" pdid="keywords">
<cmis:value>document</cmis:value>
<cmis:value>example</cmis:value>
<cmis:value>sample</cmis:value>
<cmis:value>cmis</cmis:value>
</cmis:propertyString>
</cmis:properties>
<cmis:allowableActions>
<cmis:canDeleteObject>true</cmis:canDeleteObject>
<cmis:canUpdateProperties>true</cmis:canUpdateProperties>
<cmis:canGetProperties>true</cmis:canGetProperties>
<cmis:canGetRelationships>true</cmis:canGetRelationships>
<cmis:canGetObjectParents>true</cmis:canGetObjectParents>
<cmis:canMoveObject>true</cmis:canMoveObject>
<cmis:canDeleteContentStream>true</cmis:canDeleteContentStream>
<cmis:canCheckOut>true</cmis:canCheckOut>
<cmis:canCancelCheckOut>true</cmis:canCancelCheckOut>
<cmis:canCheckIn>true</cmis:canCheckIn>
<cmis:canSetContentStream>true</cmis:canSetContentStream>
<cmis:canGetAllVersions>true</cmis:canGetAllVersions>
<cmis:canAddObjectToFolder>true</cmis:canAddObjectToFolder>
<cmis:canRemoveObjectFromFolder>true</cmis:canRemoveObjectFromFolder>
<cmis:canGetContentStream>true</cmis:canGetContentStream>
<cmis:canApplyPolicy>true</cmis:canApplyPolicy>
<cmis:canGetAppliedPolicies>true</cmis:canGetAppliedPolicies>
<cmis:canRemovePolicy>true</cmis:canRemovePolicy>
<cmis:canCreateDocument>true</cmis:canCreateDocument>
</cmis:allowableActions>
</cmisra:object>
</atom:entry>
<atom:entry>
<atom:author>
<atom:name>Al Brown</atom:name>
<atom:uri>http://www.ibm.com/</atom:uri>
<atom:email>albertcbrown@us.ibm.com</atom:email>
</atom:author>
<atom:content src="http://cmisexample.oasis-open.org/rep1/8d712ae5-18fe-469b-b4c4-caa0ea3ab348"/>
<atom:id>urn:uuid:8d712ae5-18fe-469b-b4c4-caa0ea3ab348</atom:id>
<atom:link rel="self" href="http://cmisexample.oasis-open.org/rep1/8d712ae5-18fe-469b-b4c4-caa0ea3ab348"/>
<atom:link rel="edit" href="http://cmisexample.oasis-open.org/rep1/8d712ae5-18fe-469b-b4c4-caa0ea3ab348"/>
<atom:link type="application/cmis+xml;type=allowableActions" rel="allowableactions" href="http://cmisexample.oasis-open.org/rep1/8d712ae5-18fe-469b-b4c4-caa0ea3ab348/allowableactions"/>
<atom:link type="application/atom+xml;type=entry" rel="type" href="http://cmisexample.oasis-open.org/rep1/8d712ae5-18fe-469b-b4c4-caa0ea3ab348/type"/>
<atom:published>2009-07-17T09:13:33.062-07:00</atom:published>
<atom:summary type="html">HTML summary of Entry 8d712ae5-18fe-469b-b4c4-caa0ea3ab348</atom:summary>
<atom:title type="text">CMIS Example Doc as Invoice type</atom:title>
<atom:updated>2009-07-17T09:13:33.062-07:00</atom:updated>
<atom:link rel="edit-media" href="http://cmisexample.oasis-open.org/rep1/8d712ae5-18fe-469b-b4c4-caa0ea3ab348/edit-media"/>
<atom:link rel="alternate" href="http://cmisexample.oasis-open.org/rep1/8d712ae5-18fe-469b-b4c4-caa0ea3ab348/alternate"/>
<atom:link type="application/atom+xml;type=feed" rel="parents" href="http://cmisexample.oasis-open.org/rep1/8d712ae5-18fe-469b-b4c4-caa0ea3ab348/parents"/>
<atom:link type="application/atom+xml;type=feed" rel="allversions" href="http://cmisexample.oasis-open.org/rep1/8d712ae5-18fe-469b-b4c4-caa0ea3ab348/allversions"/>
<atom:link type="application/atom+xml;type=entry" rel="latestversion" href="http://cmisexample.oasis-open.org/rep1/8d712ae5-18fe-469b-b4c4-caa0ea3ab348/latestversions"/>
<atom:link length="4123" type="text/plain" rel="stream" href="http://cmisexample.oasis-open.org/rep1/8d712ae5-18fe-469b-b4c4-caa0ea3ab348media"/>
<atom:link type="application/atom+xml;type=feed" rel="relationships" href="http://cmisexample.oasis-open.org/rep1/8d712ae5-18fe-469b-b4c4-caa0ea3ab348/relationships"/>
<cmisra:object>
<cmis:properties>
<cmis:propertyBoolean localname="rep-cmis:IsImmutable" pdid="cmis:IsImmutable">
<cmis:value>false</cmis:value>
</cmis:propertyBoolean>
<cmis:propertyDateTime localname="rep-cmis:CreationDate" pdid="cmis:CreationDate">
<cmis:value>2009-07-17T09:13:33.062-07:00</cmis:value>
</cmis:propertyDateTime>
<cmis:propertyDateTime localname="rep-cmis:LastModificationDate" pdid="cmis:LastModificationDate">
<cmis:value>2009-07-17T09:13:33.062-07:00</cmis:value>
</cmis:propertyDateTime>
<cmis:propertyId localname="rep-cmis:ObjectId" pdid="cmis:ObjectId">
<cmis:value>8d712ae5-18fe-469b-b4c4-caa0ea3ab348</cmis:value>
</cmis:propertyId>
<cmis:propertyId localname="rep-cmis:ObjectTypeId" pdid="cmis:ObjectTypeId">
<cmis:value>invoice</cmis:value>
</cmis:propertyId>
<cmis:propertyId localname="rep-cmis:BaseTypeId" pdid="cmis:BaseTypeId">
<cmis:value>cmis:document</cmis:value>
</cmis:propertyId>
<cmis:propertyString localname="rep-cmis:LastModifiedBy" pdid="cmis:LastModifiedBy">
<cmis:value>Al Brown</cmis:value>
</cmis:propertyString>
<cmis:propertyString localname="rep-cmis:CreatedBy" pdid="cmis:CreatedBy">
<cmis:value>Al Brown</cmis:value>
</cmis:propertyString>
<cmis:propertyBoolean localname="rep-cmis:IsLatestVersion" pdid="cmis:IsLatestVersion">
<cmis:value>true</cmis:value>
</cmis:propertyBoolean>
<cmis:propertyBoolean localname="rep-cmis:IsVersionSeriesCheckedOut" pdid="cmis:IsVersionSeriesCheckedOut">
<cmis:value>false</cmis:value>
</cmis:propertyBoolean>
<cmis:propertyBoolean localname="rep-cmis:IsMajorVersion" pdid="cmis:IsMajorVersion">
<cmis:value>false</cmis:value>
</cmis:propertyBoolean>
<cmis:propertyBoolean localname="rep-cmis:IsLatestMajorVersion" pdid="cmis:IsLatestMajorVersion">
<cmis:value>false</cmis:value>
</cmis:propertyBoolean>
<cmis:propertyString localname="rep-cmis:CheckinComment" pdid="cmis:CheckinComment">
<cmis:value>Checkin comment</cmis:value>
</cmis:propertyString>
<cmis:propertyString localname="rep-cmis:VersionLabel" pdid="cmis:VersionLabel">
<cmis:value>0.1</cmis:value>
</cmis:propertyString>
<cmis:propertyString localname="rep-cmis:ContentStreamMimeType" pdid="cmis:ContentStreamMimeType">
<cmis:value>text/plain</cmis:value>
</cmis:propertyString>
<cmis:propertyString localname="rep-cmis:ContentStreamFileName" pdid="cmis:ContentStreamFileName">
<cmis:value>text.txt</cmis:value>
</cmis:propertyString>
<cmis:propertyInteger localname="rep-cmis:ContentStreamLength" pdid="cmis:ContentStreamLength">
<cmis:value>4234</cmis:value>
</cmis:propertyInteger>
<cmis:propertyString displayname="Keywords for Document" localname="keywords" pdid="keywords">
<cmis:value>document</cmis:value>
<cmis:value>example</cmis:value>
<cmis:value>sample</cmis:value>
<cmis:value>cmis</cmis:value>
</cmis:propertyString>
</cmis:properties>
<cmis:allowableActions>
<cmis:canDeleteObject>true</cmis:canDeleteObject>
<cmis:canUpdateProperties>true</cmis:canUpdateProperties>
<cmis:canGetProperties>true</cmis:canGetProperties>
<cmis:canGetRelationships>true</cmis:canGetRelationships>
<cmis:canGetObjectParents>true</cmis:canGetObjectParents>
<cmis:canMoveObject>true</cmis:canMoveObject>
<cmis:canDeleteContentStream>true</cmis:canDeleteContentStream>
<cmis:canCheckOut>true</cmis:canCheckOut>
<cmis:canCancelCheckOut>true</cmis:canCancelCheckOut>
<cmis:canCheckIn>true</cmis:canCheckIn>
<cmis:canSetContentStream>true</cmis:canSetContentStream>
<cmis:canGetAllVersions>true</cmis:canGetAllVersions>
<cmis:canAddObjectToFolder>true</cmis:canAddObjectToFolder>
<cmis:canRemoveObjectFromFolder>true</cmis:canRemoveObjectFromFolder>
<cmis:canGetContentStream>true</cmis:canGetContentStream>
<cmis:canApplyPolicy>true</cmis:canApplyPolicy>
<cmis:canGetAppliedPolicies>true</cmis:canGetAppliedPolicies>
<cmis:canRemovePolicy>true</cmis:canRemovePolicy>
<cmis:canCreateDocument>true</cmis:canCreateDocument>
</cmis:allowableActions>
</cmisra:object>
</atom:entry>
</cmisra:children>
</atom:entry>
<atom:entry>
<atom:author>
<atom:name>Al Brown</atom:name>
<atom:uri>http://www.ibm.com/</atom:uri>
<atom:email>albertcbrown@us.ibm.com</atom:email>
</atom:author>
<atom:content src="http://cmisexample.oasis-open.org/rep1/56b10c11-dbe1-4bd8-a5e4-8dc3dcd58204"/>
<atom:id>urn:uuid:56b10c11-dbe1-4bd8-a5e4-8dc3dcd58204</atom:id>
<atom:link rel="self" href="http://cmisexample.oasis-open.org/rep1/56b10c11-dbe1-4bd8-a5e4-8dc3dcd58204"/>
<atom:link rel="edit" href="http://cmisexample.oasis-open.org/rep1/56b10c11-dbe1-4bd8-a5e4-8dc3dcd58204"/>
<atom:link type="application/cmis+xml;type=allowableActions" rel="allowableactions" href="http://cmisexample.oasis-open.org/rep1/56b10c11-dbe1-4bd8-a5e4-8dc3dcd58204/allowableactions"/>
<atom:link type="application/atom+xml;type=entry" rel="type" href="http://cmisexample.oasis-open.org/rep1/56b10c11-dbe1-4bd8-a5e4-8dc3dcd58204/type"/>
<atom:published>2009-07-17T09:13:33.062-07:00</atom:published>
<atom:summary type="html">HTML summary of Entry 56b10c11-dbe1-4bd8-a5e4-8dc3dcd58204</atom:summary>
<atom:title type="text">CMIS Example Folder as Customer type</atom:title>
<atom:updated>2009-07-17T09:13:33.062-07:00</atom:updated>
<atom:link type="application/atom+xml;type=feed" rel="relationships" href="http://cmisexample.oasis-open.org/rep1/56b10c11-dbe1-4bd8-a5e4-8dc3dcd58204/relationships"/>
<atom:link type="application/atom+xml;type=entry" rel="up" href="http://cmisexample.oasis-open.org/rep1/56b10c11-dbe1-4bd8-a5e4-8dc3dcd58204/up"/>
<atom:link type="application/atom+xml;type=feed" rel="down" href="http://cmisexample.oasis-open.org/rep1/56b10c11-dbe1-4bd8-a5e4-8dc3dcd58204/children/flat"/>
<atom:link type="application/cmistree+xml" rel="down" href="http://cmisexample.oasis-open.org/rep1/56b10c11-dbe1-4bd8-a5e4-8dc3dcd58204/children/tree"/>
<cmisra:object>
<cmis:properties>
<cmis:propertyBoolean localname="rep-cmis:IsImmutable" pdid="cmis:IsImmutable">
<cmis:value>false</cmis:value>
</cmis:propertyBoolean>
<cmis:propertyDateTime localname="rep-cmis:CreationDate" pdid="cmis:CreationDate">
<cmis:value>2009-07-17T09:13:33.062-07:00</cmis:value>
</cmis:propertyDateTime>
<cmis:propertyDateTime localname="rep-cmis:LastModificationDate" pdid="cmis:LastModificationDate">
<cmis:value>2009-07-17T09:13:33.062-07:00</cmis:value>
</cmis:propertyDateTime>
<cmis:propertyId localname="rep-cmis:ObjectId" pdid="cmis:ObjectId">
<cmis:value>56b10c11-dbe1-4bd8-a5e4-8dc3dcd58204</cmis:value>
</cmis:propertyId>
<cmis:propertyId localname="rep-cmis:ObjectTypeId" pdid="cmis:ObjectTypeId">
<cmis:value>customer</cmis:value>
</cmis:propertyId>
<cmis:propertyId localname="rep-cmis:BaseTypeId" pdid="cmis:BaseTypeId">
<cmis:value>cmis:folder</cmis:value>
</cmis:propertyId>
<cmis:propertyString localname="rep-cmis:LastModifiedBy" pdid="cmis:LastModifiedBy">
<cmis:value>Al Brown</cmis:value>
</cmis:propertyString>
<cmis:propertyString localname="rep-cmis:CreatedBy" pdid="cmis:CreatedBy">
<cmis:value>Al Brown</cmis:value>
</cmis:propertyString>
<cmis:propertyId localname="rep-cmis:ParentId" pdid="cmis:ParentId">
<cmis:value>56b10c11-dbe1-4bd8-a5e4-8dc3dcd58204up</cmis:value>
</cmis:propertyId>
</cmis:properties>
<cmis:allowableActions>
<cmis:canDeleteObject>true</cmis:canDeleteObject>
<cmis:canUpdateProperties>true</cmis:canUpdateProperties>
<cmis:canGetProperties>true</cmis:canGetProperties>
<cmis:canGetRelationships>true</cmis:canGetRelationships>
<cmis:canGetFolderParent>true</cmis:canGetFolderParent>
<cmis:canGetDescendants>true</cmis:canGetDescendants>
<cmis:canMoveObject>true</cmis:canMoveObject>
<cmis:canAddObjectToFolder>true</cmis:canAddObjectToFolder>
<cmis:canRemoveObjectFromFolder>true</cmis:canRemoveObjectFromFolder>
<cmis:canApplyPolicy>true</cmis:canApplyPolicy>
<cmis:canGetAppliedPolicies>true</cmis:canGetAppliedPolicies>
<cmis:canRemovePolicy>true</cmis:canRemovePolicy>
<cmis:canGetChildren>true</cmis:canGetChildren>
<cmis:canCreateFolder>true</cmis:canCreateFolder>
<cmis:canDeleteTree>true</cmis:canDeleteTree>
</cmis:allowableActions>
</cmisra:object>
</atom:entry>
<atom:entry>
<atom:author>
<atom:name>Al Brown</atom:name>
<atom:uri>http://www.ibm.com/</atom:uri>
<atom:email>albertcbrown@us.ibm.com</atom:email>
</atom:author>
<atom:content src="http://cmisexample.oasis-open.org/rep1/400d5852-f94a-4734-802d-0de3b6aa6004"/>
<atom:id>urn:uuid:400d5852-f94a-4734-802d-0de3b6aa6004</atom:id>
<atom:link rel="self" href="http://cmisexample.oasis-open.org/rep1/400d5852-f94a-4734-802d-0de3b6aa6004"/>
<atom:link rel="edit" href="http://cmisexample.oasis-open.org/rep1/400d5852-f94a-4734-802d-0de3b6aa6004"/>
<atom:link type="application/cmis+xml;type=allowableActions" rel="allowableactions" href="http://cmisexample.oasis-open.org/rep1/400d5852-f94a-4734-802d-0de3b6aa6004/allowableactions"/>
<atom:link type="application/atom+xml;type=entry" rel="type" href="http://cmisexample.oasis-open.org/rep1/400d5852-f94a-4734-802d-0de3b6aa6004/type"/>
<atom:published>2009-07-17T09:13:33.062-07:00</atom:published>
<atom:summary type="html">HTML summary of Entry 400d5852-f94a-4734-802d-0de3b6aa6004</atom:summary>
<atom:title type="text">CMIS Example Doc as Invoice type</atom:title>
<atom:updated>2009-07-17T09:13:33.078-07:00</atom:updated>
<atom:link rel="edit-media" href="http://cmisexample.oasis-open.org/rep1/400d5852-f94a-4734-802d-0de3b6aa6004/edit-media"/>
<atom:link rel="alternate" href="http://cmisexample.oasis-open.org/rep1/400d5852-f94a-4734-802d-0de3b6aa6004/alternate"/>
<atom:link type="application/atom+xml;type=feed" rel="parents" href="http://cmisexample.oasis-open.org/rep1/400d5852-f94a-4734-802d-0de3b6aa6004/parents"/>
<atom:link type="application/atom+xml;type=feed" rel="allversions" href="http://cmisexample.oasis-open.org/rep1/400d5852-f94a-4734-802d-0de3b6aa6004/allversions"/>
<atom:link type="application/atom+xml;type=entry" rel="latestversion" href="http://cmisexample.oasis-open.org/rep1/400d5852-f94a-4734-802d-0de3b6aa6004/latestversions"/>
<atom:link length="4123" type="text/plain" rel="stream" href="http://cmisexample.oasis-open.org/rep1/400d5852-f94a-4734-802d-0de3b6aa6004media"/>
<atom:link type="application/atom+xml;type=feed" rel="relationships" href="http://cmisexample.oasis-open.org/rep1/400d5852-f94a-4734-802d-0de3b6aa6004/relationships"/>
<cmisra:object>
<cmis:properties>
<cmis:propertyBoolean localname="rep-cmis:IsImmutable" pdid="cmis:IsImmutable">
<cmis:value>false</cmis:value>
</cmis:propertyBoolean>
<cmis:propertyDateTime localname="rep-cmis:CreationDate" pdid="cmis:CreationDate">
<cmis:value>2009-07-17T09:13:33.078-07:00</cmis:value>
</cmis:propertyDateTime>
<cmis:propertyDateTime localname="rep-cmis:LastModificationDate" pdid="cmis:LastModificationDate">
<cmis:value>2009-07-17T09:13:33.078-07:00</cmis:value>
</cmis:propertyDateTime>
<cmis:propertyId localname="rep-cmis:ObjectId" pdid="cmis:ObjectId">
<cmis:value>400d5852-f94a-4734-802d-0de3b6aa6004</cmis:value>
</cmis:propertyId>
<cmis:propertyId localname="rep-cmis:ObjectTypeId" pdid="cmis:ObjectTypeId">
<cmis:value>invoice</cmis:value>
</cmis:propertyId>
<cmis:propertyId localname="rep-cmis:BaseTypeId" pdid="cmis:BaseTypeId">
<cmis:value>cmis:document</cmis:value>
</cmis:propertyId>
<cmis:propertyString localname="rep-cmis:LastModifiedBy" pdid="cmis:LastModifiedBy">
<cmis:value>Al Brown</cmis:value>
</cmis:propertyString>
<cmis:propertyString localname="rep-cmis:CreatedBy" pdid="cmis:CreatedBy">
<cmis:value>Al Brown</cmis:value>
</cmis:propertyString>
<cmis:propertyBoolean localname="rep-cmis:IsLatestVersion" pdid="cmis:IsLatestVersion">
<cmis:value>true</cmis:value>
</cmis:propertyBoolean>
<cmis:propertyBoolean localname="rep-cmis:IsVersionSeriesCheckedOut" pdid="cmis:IsVersionSeriesCheckedOut">
<cmis:value>false</cmis:value>
</cmis:propertyBoolean>
<cmis:propertyBoolean localname="rep-cmis:IsMajorVersion" pdid="cmis:IsMajorVersion">
<cmis:value>false</cmis:value>
</cmis:propertyBoolean>
<cmis:propertyBoolean localname="rep-cmis:IsLatestMajorVersion" pdid="cmis:IsLatestMajorVersion">
<cmis:value>false</cmis:value>
</cmis:propertyBoolean>
<cmis:propertyString localname="rep-cmis:CheckinComment" pdid="cmis:CheckinComment">
<cmis:value>Checkin comment</cmis:value>
</cmis:propertyString>
<cmis:propertyString localname="rep-cmis:VersionLabel" pdid="cmis:VersionLabel">
<cmis:value>0.1</cmis:value>
</cmis:propertyString>
<cmis:propertyString localname="rep-cmis:ContentStreamMimeType" pdid="cmis:ContentStreamMimeType">
<cmis:value>text/plain</cmis:value>
</cmis:propertyString>
<cmis:propertyString localname="rep-cmis:ContentStreamFileName" pdid="cmis:ContentStreamFileName">
<cmis:value>text.txt</cmis:value>
</cmis:propertyString>
<cmis:propertyInteger localname="rep-cmis:ContentStreamLength" pdid="cmis:ContentStreamLength">
<cmis:value>4234</cmis:value>
</cmis:propertyInteger>
<cmis:propertyString displayname="Keywords for Document" localname="keywords" pdid="keywords">
<cmis:value>document</cmis:value>
<cmis:value>example</cmis:value>
<cmis:value>sample</cmis:value>
<cmis:value>cmis</cmis:value>
</cmis:propertyString>
</cmis:properties>
<cmis:allowableActions>
<cmis:canDeleteObject>true</cmis:canDeleteObject>
<cmis:canUpdateProperties>true</cmis:canUpdateProperties>
<cmis:canGetProperties>true</cmis:canGetProperties>
<cmis:canGetRelationships>true</cmis:canGetRelationships>
<cmis:canGetObjectParents>true</cmis:canGetObjectParents>
<cmis:canMoveObject>true</cmis:canMoveObject>
<cmis:canDeleteContentStream>true</cmis:canDeleteContentStream>
<cmis:canCheckOut>true</cmis:canCheckOut>
<cmis:canCancelCheckOut>true</cmis:canCancelCheckOut>
<cmis:canCheckIn>true</cmis:canCheckIn>
<cmis:canSetContentStream>true</cmis:canSetContentStream>
<cmis:canGetAllVersions>true</cmis:canGetAllVersions>
<cmis:canAddObjectToFolder>true</cmis:canAddObjectToFolder>
<cmis:canRemoveObjectFromFolder>true</cmis:canRemoveObjectFromFolder>
<cmis:canGetContentStream>true</cmis:canGetContentStream>
<cmis:canApplyPolicy>true</cmis:canApplyPolicy>
<cmis:canGetAppliedPolicies>true</cmis:canGetAppliedPolicies>
<cmis:canRemovePolicy>true</cmis:canRemovePolicy>
<cmis:canCreateDocument>true</cmis:canCreateDocument>
</cmis:allowableActions>
</cmisra:object>
</atom:entry>
</atom:feed>

View File

@@ -1,70 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<atom:entry xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200901" xmlns:cmism="http://docs.oasis-open.org/ns/cmis/messaging/200901" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:app="http://www.w3.org/2007/app" xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200901">
<atom:author>
<atom:name>Al Brown</atom:name>
<atom:uri>http://www.ibm.com/</atom:uri>
<atom:email>albertcbrown@us.ibm.com</atom:email>
</atom:author>
<atom:content src="http://cmisexample.oasis-open.org/rep1/86b91347-4039-4363-9171-1b50b2a20f6c"/>
<atom:id>urn:uuid:86b91347-4039-4363-9171-1b50b2a20f6c</atom:id>
<atom:link rel="self" href="http://cmisexample.oasis-open.org/rep1/86b91347-4039-4363-9171-1b50b2a20f6c"/>
<atom:link rel="edit" href="http://cmisexample.oasis-open.org/rep1/86b91347-4039-4363-9171-1b50b2a20f6c"/>
<atom:link type="application/cmis+xml;type=allowableActions" rel="allowableactions" href="http://cmisexample.oasis-open.org/rep1/86b91347-4039-4363-9171-1b50b2a20f6c/allowableactions"/>
<atom:link type="application/atom+xml;type=entry" rel="type" href="http://cmisexample.oasis-open.org/rep1/86b91347-4039-4363-9171-1b50b2a20f6c/type"/>
<atom:published>2009-07-17T09:13:32.937-07:00</atom:published>
<atom:summary type="html">HTML summary of Entry 86b91347-4039-4363-9171-1b50b2a20f6c</atom:summary>
<atom:title type="text">CMIS Example Folder as Customer type</atom:title>
<atom:updated>2009-07-17T09:13:32.937-07:00</atom:updated>
<atom:link type="application/atom+xml;type=feed" rel="relationships" href="http://cmisexample.oasis-open.org/rep1/86b91347-4039-4363-9171-1b50b2a20f6c/relationships"/>
<atom:link type="application/atom+xml;type=entry" rel="up" href="http://cmisexample.oasis-open.org/rep1/86b91347-4039-4363-9171-1b50b2a20f6c/up"/>
<atom:link type="application/atom+xml;type=feed" rel="down" href="http://cmisexample.oasis-open.org/rep1/86b91347-4039-4363-9171-1b50b2a20f6c/children/flat"/>
<atom:link type="application/cmistree+xml" rel="down" href="http://cmisexample.oasis-open.org/rep1/86b91347-4039-4363-9171-1b50b2a20f6c/children/tree"/>
<cmisra:object>
<cmis:properties>
<cmis:propertyBoolean localname="rep-cmis:IsImmutable" pdid="cmis:IsImmutable">
<cmis:value>false</cmis:value>
</cmis:propertyBoolean>
<cmis:propertyDateTime localname="rep-cmis:CreationDate" pdid="cmis:CreationDate">
<cmis:value>2009-07-17T09:13:32.937-07:00</cmis:value>
</cmis:propertyDateTime>
<cmis:propertyDateTime localname="rep-cmis:LastModificationDate" pdid="cmis:LastModificationDate">
<cmis:value>2009-07-17T09:13:32.937-07:00</cmis:value>
</cmis:propertyDateTime>
<cmis:propertyId localname="rep-cmis:ObjectId" pdid="cmis:ObjectId">
<cmis:value>86b91347-4039-4363-9171-1b50b2a20f6c</cmis:value>
</cmis:propertyId>
<cmis:propertyId localname="rep-cmis:ObjectTypeId" pdid="cmis:ObjectTypeId">
<cmis:value>customer</cmis:value>
</cmis:propertyId>
<cmis:propertyId localname="rep-cmis:BaseTypeId" pdid="cmis:BaseTypeId">
<cmis:value>cmis:folder</cmis:value>
</cmis:propertyId>
<cmis:propertyString localname="rep-cmis:LastModifiedBy" pdid="cmis:LastModifiedBy">
<cmis:value>Al Brown</cmis:value>
</cmis:propertyString>
<cmis:propertyString localname="rep-cmis:CreatedBy" pdid="cmis:CreatedBy">
<cmis:value>Al Brown</cmis:value>
</cmis:propertyString>
<cmis:propertyId localname="rep-cmis:ParentId" pdid="cmis:ParentId">
<cmis:value>86b91347-4039-4363-9171-1b50b2a20f6cup</cmis:value>
</cmis:propertyId>
</cmis:properties>
<cmis:allowableActions>
<cmis:canDeleteObject>true</cmis:canDeleteObject>
<cmis:canUpdateProperties>true</cmis:canUpdateProperties>
<cmis:canGetProperties>true</cmis:canGetProperties>
<cmis:canGetRelationships>true</cmis:canGetRelationships>
<cmis:canGetFolderParent>true</cmis:canGetFolderParent>
<cmis:canGetDescendants>true</cmis:canGetDescendants>
<cmis:canMoveObject>true</cmis:canMoveObject>
<cmis:canAddObjectToFolder>true</cmis:canAddObjectToFolder>
<cmis:canRemoveObjectFromFolder>true</cmis:canRemoveObjectFromFolder>
<cmis:canApplyPolicy>true</cmis:canApplyPolicy>
<cmis:canGetAppliedPolicies>true</cmis:canGetAppliedPolicies>
<cmis:canRemovePolicy>true</cmis:canRemovePolicy>
<cmis:canGetChildren>true</cmis:canGetChildren>
<cmis:canCreateFolder>true</cmis:canCreateFolder>
<cmis:canDeleteTree>true</cmis:canDeleteTree>
</cmis:allowableActions>
</cmisra:object>
</atom:entry>

View File

@@ -1,61 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<atom:entry xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200901" xmlns:cmism="http://docs.oasis-open.org/ns/cmis/messaging/200901" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:app="http://www.w3.org/2007/app" xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200901">
<atom:author>
<atom:name>Al Brown</atom:name>
<atom:uri>http://www.ibm.com/</atom:uri>
<atom:email>albertcbrown@us.ibm.com</atom:email>
</atom:author>
<atom:content src="http://cmisexample.oasis-open.org/rep1/7910ee91-6201-4868-bcd9-1c72edf6161f"/>
<atom:id>urn:uuid:7910ee91-6201-4868-bcd9-1c72edf6161f</atom:id>
<atom:link rel="self" href="http://cmisexample.oasis-open.org/rep1/7910ee91-6201-4868-bcd9-1c72edf6161f"/>
<atom:link rel="edit" href="http://cmisexample.oasis-open.org/rep1/7910ee91-6201-4868-bcd9-1c72edf6161f"/>
<atom:link type="application/cmis+xml;type=allowableActions" rel="allowableactions" href="http://cmisexample.oasis-open.org/rep1/7910ee91-6201-4868-bcd9-1c72edf6161f/allowableactions"/>
<atom:link type="application/atom+xml;type=entry" rel="type" href="http://cmisexample.oasis-open.org/rep1/7910ee91-6201-4868-bcd9-1c72edf6161f/type"/>
<atom:published>2009-07-17T09:13:32.953-07:00</atom:published>
<atom:summary type="html">HTML summary of Entry 7910ee91-6201-4868-bcd9-1c72edf6161f</atom:summary>
<atom:title type="text">CMIS Example Policy</atom:title>
<atom:updated>2009-07-17T09:13:32.968-07:00</atom:updated>
<atom:link type="application/atom+xml;type=feed" rel="parents" href="http://cmisexample.oasis-open.org/rep1/7910ee91-6201-4868-bcd9-1c72edf6161f/parents"/>
<atom:link type="application/atom+xml;type=feed" rel="relationships" href="http://cmisexample.oasis-open.org/rep1/7910ee91-6201-4868-bcd9-1c72edf6161f/relationships"/>
<cmisra:object>
<cmis:properties>
<cmis:propertyBoolean localname="rep-cmis:IsImmutable" pdid="cmis:IsImmutable">
<cmis:value>false</cmis:value>
</cmis:propertyBoolean>
<cmis:propertyDateTime localname="rep-cmis:CreationDate" pdid="cmis:CreationDate">
<cmis:value>2009-07-17T09:13:32.968-07:00</cmis:value>
</cmis:propertyDateTime>
<cmis:propertyDateTime localname="rep-cmis:LastModificationDate" pdid="cmis:LastModificationDate">
<cmis:value>2009-07-17T09:13:32.968-07:00</cmis:value>
</cmis:propertyDateTime>
<cmis:propertyId localname="rep-cmis:ObjectId" pdid="cmis:ObjectId">
<cmis:value>7910ee91-6201-4868-bcd9-1c72edf6161f</cmis:value>
</cmis:propertyId>
<cmis:propertyId localname="rep-cmis:ObjectTypeId" pdid="cmis:ObjectTypeId">
<cmis:value>policy</cmis:value>
</cmis:propertyId>
<cmis:propertyId localname="rep-cmis:BaseTypeId" pdid="cmis:BaseTypeId">
<cmis:value>cmis:policy</cmis:value>
</cmis:propertyId>
<cmis:propertyString localname="rep-cmis:LastModifiedBy" pdid="cmis:LastModifiedBy">
<cmis:value>Al Brown</cmis:value>
</cmis:propertyString>
<cmis:propertyString localname="rep-cmis:CreatedBy" pdid="cmis:CreatedBy">
<cmis:value>Al Brown</cmis:value>
</cmis:propertyString>
</cmis:properties>
<cmis:allowableActions>
<cmis:canDeleteObject>true</cmis:canDeleteObject>
<cmis:canUpdateProperties>true</cmis:canUpdateProperties>
<cmis:canGetProperties>true</cmis:canGetProperties>
<cmis:canGetRelationships>true</cmis:canGetRelationships>
<cmis:canMoveObject>true</cmis:canMoveObject>
<cmis:canAddObjectToFolder>true</cmis:canAddObjectToFolder>
<cmis:canRemoveObjectFromFolder>true</cmis:canRemoveObjectFromFolder>
<cmis:canApplyPolicy>true</cmis:canApplyPolicy>
<cmis:canGetAppliedPolicies>true</cmis:canGetAppliedPolicies>
<cmis:canRemovePolicy>true</cmis:canRemovePolicy>
<cmis:canCreatePolicy>true</cmis:canCreatePolicy>
</cmis:allowableActions>
</cmisra:object>
</atom:entry>

View File

@@ -1,8 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<cmis:query xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200901" xmlns:cmism="http://docs.oasis-open.org/ns/cmis/messaging/200901" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:app="http://www.w3.org/2007/app" xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200901">
<cmis:statement>SELECT * FROM Document</cmis:statement>
<cmis:searchAllVersions>true</cmis:searchAllVersions>
<cmis:maxItems>50</cmis:maxItems>
<cmis:skipCount>0</cmis:skipCount>
<x:invalidschema xmlns:x="http://invalid"></x:invalidschema>
</cmis:query>

View File

@@ -1,61 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<atom:entry xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200901" xmlns:cmism="http://docs.oasis-open.org/ns/cmis/messaging/200901" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:app="http://www.w3.org/2007/app" xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200901">
<atom:author>
<atom:name>Al Brown</atom:name>
<atom:uri>http://www.ibm.com/</atom:uri>
<atom:email>albertcbrown@us.ibm.com</atom:email>
</atom:author>
<atom:content src="http://cmisexample.oasis-open.org/rep1/bfe1e986-a166-4abf-b2a2-e164ca954738"/>
<atom:id>urn:uuid:bfe1e986-a166-4abf-b2a2-e164ca954738</atom:id>
<atom:link rel="self" href="http://cmisexample.oasis-open.org/rep1/bfe1e986-a166-4abf-b2a2-e164ca954738"/>
<atom:link rel="edit" href="http://cmisexample.oasis-open.org/rep1/bfe1e986-a166-4abf-b2a2-e164ca954738"/>
<atom:link type="application/cmis+xml;type=allowableActions" rel="allowableactions" href="http://cmisexample.oasis-open.org/rep1/bfe1e986-a166-4abf-b2a2-e164ca954738/allowableactions"/>
<atom:link type="application/atom+xml;type=entry" rel="type" href="http://cmisexample.oasis-open.org/rep1/bfe1e986-a166-4abf-b2a2-e164ca954738/type"/>
<atom:published>2009-07-17T09:13:32.984-07:00</atom:published>
<atom:summary type="html">HTML summary of Entry bfe1e986-a166-4abf-b2a2-e164ca954738</atom:summary>
<atom:title type="text">CMIS Example Relationship as Compound Document type</atom:title>
<atom:updated>2009-07-17T09:13:32.984-07:00</atom:updated>
<atom:link type="application/atom+xml;type=entry" rel="source" href="http://cmisexample.oasis-open.org/rep1/bfe1e986-a166-4abf-b2a2-e164ca954738/source"/>
<atom:link type="application/atom+xml;type=entry" rel="target" href="http://cmisexample.oasis-open.org/rep1/bfe1e986-a166-4abf-b2a2-e164ca954738/target"/>
<cmisra:object>
<cmis:properties>
<cmis:propertyBoolean localname="rep-cmis:IsImmutable" pdid="cmis:IsImmutable">
<cmis:value>false</cmis:value>
</cmis:propertyBoolean>
<cmis:propertyDateTime localname="rep-cmis:CreationDate" pdid="cmis:CreationDate">
<cmis:value>2009-07-17T09:13:32.984-07:00</cmis:value>
</cmis:propertyDateTime>
<cmis:propertyDateTime localname="rep-cmis:LastModificationDate" pdid="cmis:LastModificationDate">
<cmis:value>2009-07-17T09:13:32.984-07:00</cmis:value>
</cmis:propertyDateTime>
<cmis:propertyId localname="rep-cmis:ObjectId" pdid="cmis:ObjectId">
<cmis:value>bfe1e986-a166-4abf-b2a2-e164ca954738</cmis:value>
</cmis:propertyId>
<cmis:propertyId localname="rep-cmis:ObjectTypeId" pdid="cmis:ObjectTypeId">
<cmis:value>compounddocument</cmis:value>
</cmis:propertyId>
<cmis:propertyId localname="rep-cmis:BaseTypeId" pdid="cmis:BaseTypeId">
<cmis:value>cmis:relationship</cmis:value>
</cmis:propertyId>
<cmis:propertyString localname="rep-cmis:LastModifiedBy" pdid="cmis:LastModifiedBy">
<cmis:value>Al Brown</cmis:value>
</cmis:propertyString>
<cmis:propertyString localname="rep-cmis:CreatedBy" pdid="cmis:CreatedBy">
<cmis:value>Al Brown</cmis:value>
</cmis:propertyString>
</cmis:properties>
<cmis:allowableActions>
<cmis:canDeleteObject>true</cmis:canDeleteObject>
<cmis:canUpdateProperties>true</cmis:canUpdateProperties>
<cmis:canGetProperties>true</cmis:canGetProperties>
<cmis:canGetRelationships>true</cmis:canGetRelationships>
<cmis:canMoveObject>true</cmis:canMoveObject>
<cmis:canAddObjectToFolder>true</cmis:canAddObjectToFolder>
<cmis:canRemoveObjectFromFolder>true</cmis:canRemoveObjectFromFolder>
<cmis:canApplyPolicy>true</cmis:canApplyPolicy>
<cmis:canGetAppliedPolicies>true</cmis:canGetAppliedPolicies>
<cmis:canRemovePolicy>true</cmis:canRemovePolicy>
<cmis:canCreateRelationship>true</cmis:canCreateRelationship>
</cmis:allowableActions>
</cmisra:object>
</atom:entry>

View File

@@ -1,74 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<app:service xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200901" xmlns:cmism="http://docs.oasis-open.org/ns/cmis/messaging/200901" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:app="http://www.w3.org/2007/app" xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200901">
<app:workspace>
<atom:title type="text">CMIS Repository</atom:title>
<app:collection href="http://cmisexample.oasis-open.org/rep1//checkedout" cmisra:CollectionType="checkedout">
<atom:title type="text">Checkedout collection</atom:title>
<app:accept>application/atom+xml;type=entry</app:accept>
</app:collection>
<app:collection href="http://cmisexample.oasis-open.org/rep1//query" cmisra:CollectionType="query">
<atom:title type="text">Query collection</atom:title>
<app:accept>application/cmisquery+xml</app:accept>
</app:collection>
<app:collection href="http://cmisexample.oasis-open.org/rep1//rootc" cmisra:CollectionType="root">
<atom:title type="text">Root children collection</atom:title>
</app:collection>
<app:collection href="http://cmisexample.oasis-open.org/rep1//typec" cmisra:CollectionType="types">
<atom:title type="text">Types children collection</atom:title>
</app:collection>
<app:collection href="http://cmisexample.oasis-open.org/rep1//unfiled" cmisra:CollectionType="unfiled">
<atom:title type="text">Unfiled collection</atom:title>
<app:accept>application/atom+xml;type=entry</app:accept>
</app:collection>
<app:collection href="http://cmisexample.oasis-open.org/rep1//changes" cmisra:CollectionType="changes">
<atom:title type="text">changes collection</atom:title>
</app:collection>
<atom:link title="Types Descendants feed" type="application/atom+xml;type=feed" rel="http://docs.oasis-open.org/ns/cmis/link/200901/typesdescendants" href="http://cmisexample.oasis-open.org/rep1//typesdescendants"/>
<atom:link title="Folder Tree feed for root folder" type="application/atom+xml;type=feed" rel="http://docs.oasis-open.org/ns/cmis/link/200901/foldertree" href="http://cmisexample.oasis-open.org/rep1//foldertree"/>
<cmisra:repositoryInfo>
<cmis:repositoryId>repid1</cmis:repositoryId>
<cmis:repositoryName>Repository1</cmis:repositoryName>
<cmis:repositoryRelationship>self</cmis:repositoryRelationship>
<cmis:repositoryDescription>CMIS Repository Description</cmis:repositoryDescription>
<cmis:vendorName>CMIS Vendor 1</cmis:vendorName>
<cmis:productName>CMIS Prototype for VendorX</cmis:productName>
<cmis:productVersion>0.62</cmis:productVersion>
<cmis:rootFolderId>rootfolder</cmis:rootFolderId>
<cmis:latestChangeToken>token-Fri Jul 17 09:13:33 PDT 2009</cmis:latestChangeToken>
<cmis:capabilities>
<cmis:capabilityACL>manage</cmis:capabilityACL>
<cmis:capabilityAllVersionsSearchable>true</cmis:capabilityAllVersionsSearchable>
<cmis:capabilityChanges>all</cmis:capabilityChanges>
<cmis:capabilityChangesOnType>cmis:document</cmis:capabilityChangesOnType>
<cmis:capabilityChangesOnType>cmis:folder</cmis:capabilityChangesOnType>
<cmis:capabilityContentStreamUpdatability>anytime</cmis:capabilityContentStreamUpdatability>
<cmis:capabilityGetDescendants>true</cmis:capabilityGetDescendants>
<cmis:capabilityMultifiling>true</cmis:capabilityMultifiling>
<cmis:capabilityPWCSearchable>true</cmis:capabilityPWCSearchable>
<cmis:capabilityPWCUpdateable>true</cmis:capabilityPWCUpdateable>
<cmis:capabilityQuery>bothcombined</cmis:capabilityQuery>
<cmis:capabilityRenditions>read</cmis:capabilityRenditions>
<cmis:capabilityUnfiling>true</cmis:capabilityUnfiling>
<cmis:capabilityVersionSpecificFiling>true</cmis:capabilityVersionSpecificFiling>
<cmis:capabilityJoin>innerandouter</cmis:capabilityJoin>
</cmis:capabilities>
<cmis:cmisVersionSupported>0.62</cmis:cmisVersionSupported>
<cmis:changesIncomplete>true</cmis:changesIncomplete>
</cmisra:repositoryInfo>
<cmisra:uritemplate>
<cmisra:template>http://cmisexample.oasis-open.org/rep1/entrybyid/{id}</cmisra:template>
<cmisra:type>entrybyid</cmisra:type>
<cmisra:mediatype>application/atom+xml;type=entry</cmisra:mediatype>
</cmisra:uritemplate>
<cmisra:uritemplate>
<cmisra:template>http://cmisexample.oasis-open.org/rep1/folderbypath/{path}</cmisra:template>
<cmisra:type>folderbypath</cmisra:type>
<cmisra:mediatype>application/atom+xml;type=entry</cmisra:mediatype>
</cmisra:uritemplate>
<cmisra:uritemplate>
<cmisra:template>http://cmisexample.oasis-open.org/rep1/query?q={path}&amp;searchAllVersions={searchAllVersions}&amp;maxItems={maxItems}&amp;skipCount={skipCount}</cmisra:template>
<cmisra:type>query</cmisra:type>
<cmisra:mediatype>application/atom+xml;type=entry</cmisra:mediatype>
</cmisra:uritemplate>
</app:workspace>
</app:service>

View File

@@ -1,401 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<atom:entry xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200901" xmlns:cmism="http://docs.oasis-open.org/ns/cmis/messaging/200901" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:app="http://www.w3.org/2007/app" xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200901">
<atom:author>
<atom:name>Al Brown</atom:name>
<atom:uri>http://www.ibm.com/</atom:uri>
<atom:email>albertcbrown@us.ibm.com</atom:email>
</atom:author>
<atom:content>Type Definition for document-invoice</atom:content>
<atom:id>http://cmisexample.oasis-open.org/rep1/type/document-invoice</atom:id>
<atom:link type="application/atom+xml;type=entry" rel="self" href="http://cmisexample.oasis-open.org/rep1/type/document-invoice"/>
<atom:link type="application/atomsvc+xml" rel="service" href="http://cmisexample.oasis-open.org/rep1/type/document-invoice"/>
<atom:link type="application/atom+xml;type=entry" rel="describedby" href="http://cmisexample.oasis-open.org/rep1/type/cmis:document"/>
<atom:link type="application/atom+xml;type=entry" rel="up" href="http://cmisexample.oasis-open.org/rep1/type/document-invoice/parent"/>
<atom:link type="application/atom+xml;type=feed" rel="down" href="http://cmisexample.oasis-open.org/rep1/type/document-invoice/children/flat"/>
<atom:link type="application/cmistree+xml" rel="down" href="http://cmisexample.oasis-open.org/rep1/type/document-invoice/children/tree"/>
<atom:published>2009-07-17T09:13:33.171-07:00</atom:published>
<atom:summary type="html">HTML summary of Type Definition document-invoice</atom:summary>
<atom:title type="text">Type Definition - document-invoice</atom:title>
<atom:updated>2009-07-17T09:13:33.171-07:00</atom:updated>
<app:edited>2009-07-17T09:13:33.171-07:00</app:edited>
<cmisra:type xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="cmis:cmisTypeDocumentDefinitionType">
<cmis:id>dtdocument-invoice</cmis:id>
<cmis:localName>myrepname-document-invoice</cmis:localName>
<cmis:displayName>document-invoice</cmis:displayName>
<cmis:queryName>document-invoice</cmis:queryName>
<cmis:description>Description for type definition document-invoice</cmis:description>
<cmis:baseTypeId>cmis:document</cmis:baseTypeId>
<cmis:parentId>parent</cmis:parentId>
<cmis:creatable>true</cmis:creatable>
<cmis:fileable>true</cmis:fileable>
<cmis:queryable>false</cmis:queryable>
<cmis:fulltextindexed>false</cmis:fulltextindexed>
<cmis:includedInSupertypeQuery>true</cmis:includedInSupertypeQuery>
<cmis:controllablePolicy>true</cmis:controllablePolicy>
<cmis:controllableACL>true</cmis:controllableACL>
<cmis:propertyIdDefinition>
<cmis:id>cmis:BaseTypeId</cmis:id>
<cmis:localName>rep-cmis:BaseTypeId</cmis:localName>
<cmis:displayName>cmis:BaseTypeId</cmis:displayName>
<cmis:description>Description for cmis:BaseTypeId</cmis:description>
<cmis:propertyType>id</cmis:propertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmis:orderable>true</cmis:orderable>
<cmis:openChoice>false</cmis:openChoice>
</cmis:propertyIdDefinition>
<cmis:propertyStringDefinition>
<cmis:id>cmis:Name</cmis:id>
<cmis:localName>rep-cmis:Name</cmis:localName>
<cmis:displayName>cmis:Name</cmis:displayName>
<cmis:description>Description for cmis:Name</cmis:description>
<cmis:propertyType>string</cmis:propertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readwrite</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmis:orderable>true</cmis:orderable>
<cmis:openChoice>false</cmis:openChoice>
<cmis:maxLength>128</cmis:maxLength>
</cmis:propertyStringDefinition>
<cmis:propertyIdDefinition>
<cmis:id>cmis:ObjectId</cmis:id>
<cmis:localName>rep-cmis:ObjectId</cmis:localName>
<cmis:displayName>cmis:ObjectId</cmis:displayName>
<cmis:description>Description for cmis:ObjectId</cmis:description>
<cmis:propertyType>id</cmis:propertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmis:orderable>true</cmis:orderable>
<cmis:openChoice>false</cmis:openChoice>
</cmis:propertyIdDefinition>
<cmis:propertyStringDefinition>
<cmis:id>cmis:ObjectTypeId</cmis:id>
<cmis:localName>rep-cmis:ObjectTypeId</cmis:localName>
<cmis:displayName>cmis:ObjectTypeId</cmis:displayName>
<cmis:description>Description for cmis:ObjectTypeId</cmis:description>
<cmis:propertyType>string</cmis:propertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmis:orderable>true</cmis:orderable>
<cmis:openChoice>false</cmis:openChoice>
<cmis:maxLength>128</cmis:maxLength>
</cmis:propertyStringDefinition>
<cmis:propertyStringDefinition>
<cmis:id>cmis:BaseTypeId</cmis:id>
<cmis:localName>rep-cmis:BaseTypeId</cmis:localName>
<cmis:displayName>cmis:BaseTypeId</cmis:displayName>
<cmis:description>Description for cmis:BaseTypeId</cmis:description>
<cmis:propertyType>string</cmis:propertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmis:orderable>true</cmis:orderable>
<cmis:openChoice>false</cmis:openChoice>
<cmis:maxLength>128</cmis:maxLength>
</cmis:propertyStringDefinition>
<cmis:propertyStringDefinition>
<cmis:id>cmis:CreatedBy</cmis:id>
<cmis:localName>rep-cmis:CreatedBy</cmis:localName>
<cmis:displayName>cmis:CreatedBy</cmis:displayName>
<cmis:description>Description for cmis:CreatedBy</cmis:description>
<cmis:propertyType>string</cmis:propertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmis:orderable>true</cmis:orderable>
<cmis:openChoice>false</cmis:openChoice>
<cmis:maxLength>128</cmis:maxLength>
</cmis:propertyStringDefinition>
<cmis:propertyDateTimeDefinition>
<cmis:id>cmis:CreationDate</cmis:id>
<cmis:localName>rep-cmis:CreationDate</cmis:localName>
<cmis:displayName>cmis:CreationDate</cmis:displayName>
<cmis:description>Description for cmis:CreationDate</cmis:description>
<cmis:propertyType>datetime</cmis:propertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmis:orderable>true</cmis:orderable>
<cmis:openChoice>false</cmis:openChoice>
</cmis:propertyDateTimeDefinition>
<cmis:propertyStringDefinition>
<cmis:id>cmis:LastModifiedBy</cmis:id>
<cmis:localName>rep-cmis:LastModifiedBy</cmis:localName>
<cmis:displayName>cmis:LastModifiedBy</cmis:displayName>
<cmis:description>Description for cmis:LastModifiedBy</cmis:description>
<cmis:propertyType>string</cmis:propertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmis:orderable>true</cmis:orderable>
<cmis:openChoice>false</cmis:openChoice>
<cmis:maxLength>128</cmis:maxLength>
</cmis:propertyStringDefinition>
<cmis:propertyDateTimeDefinition>
<cmis:id>cmis:LastModificationDate</cmis:id>
<cmis:localName>rep-cmis:LastModificationDate</cmis:localName>
<cmis:displayName>cmis:LastModificationDate</cmis:displayName>
<cmis:description>Description for cmis:LastModificationDate</cmis:description>
<cmis:propertyType>datetime</cmis:propertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmis:orderable>true</cmis:orderable>
<cmis:openChoice>false</cmis:openChoice>
</cmis:propertyDateTimeDefinition>
<cmis:propertyStringDefinition>
<cmis:id>cmis:ChangeToken</cmis:id>
<cmis:localName>rep-cmis:ChangeToken</cmis:localName>
<cmis:displayName>cmis:ChangeToken</cmis:displayName>
<cmis:description>Description for cmis:ChangeToken</cmis:description>
<cmis:propertyType>string</cmis:propertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmis:orderable>true</cmis:orderable>
<cmis:openChoice>false</cmis:openChoice>
<cmis:maxLength>128</cmis:maxLength>
</cmis:propertyStringDefinition>
<cmis:propertyBooleanDefinition>
<cmis:id>cmis:IsImmutable</cmis:id>
<cmis:localName>rep-cmis:IsImmutable</cmis:localName>
<cmis:displayName>cmis:IsImmutable</cmis:displayName>
<cmis:description>Description for cmis:IsImmutable</cmis:description>
<cmis:propertyType>boolean</cmis:propertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmis:orderable>true</cmis:orderable>
<cmis:openChoice>false</cmis:openChoice>
</cmis:propertyBooleanDefinition>
<cmis:propertyBooleanDefinition>
<cmis:id>cmis:IsLatestVersion</cmis:id>
<cmis:localName>rep-cmis:IsLatestVersion</cmis:localName>
<cmis:displayName>cmis:IsLatestVersion</cmis:displayName>
<cmis:description>Description for cmis:IsLatestVersion</cmis:description>
<cmis:propertyType>boolean</cmis:propertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmis:orderable>true</cmis:orderable>
<cmis:openChoice>false</cmis:openChoice>
</cmis:propertyBooleanDefinition>
<cmis:propertyBooleanDefinition>
<cmis:id>cmis:IsMajorVersion</cmis:id>
<cmis:localName>rep-cmis:IsMajorVersion</cmis:localName>
<cmis:displayName>cmis:IsMajorVersion</cmis:displayName>
<cmis:description>Description for cmis:IsMajorVersion</cmis:description>
<cmis:propertyType>boolean</cmis:propertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmis:orderable>true</cmis:orderable>
<cmis:openChoice>false</cmis:openChoice>
</cmis:propertyBooleanDefinition>
<cmis:propertyBooleanDefinition>
<cmis:id>cmis:IsLatestMajorVersion</cmis:id>
<cmis:localName>rep-cmis:IsLatestMajorVersion</cmis:localName>
<cmis:displayName>cmis:IsLatestMajorVersion</cmis:displayName>
<cmis:description>Description for cmis:IsLatestMajorVersion</cmis:description>
<cmis:propertyType>boolean</cmis:propertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmis:orderable>true</cmis:orderable>
<cmis:openChoice>false</cmis:openChoice>
</cmis:propertyBooleanDefinition>
<cmis:propertyStringDefinition>
<cmis:id>cmis:VersionLabel</cmis:id>
<cmis:localName>rep-cmis:VersionLabel</cmis:localName>
<cmis:displayName>cmis:VersionLabel</cmis:displayName>
<cmis:description>Description for cmis:VersionLabel</cmis:description>
<cmis:propertyType>string</cmis:propertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmis:orderable>true</cmis:orderable>
<cmis:openChoice>false</cmis:openChoice>
<cmis:maxLength>128</cmis:maxLength>
</cmis:propertyStringDefinition>
<cmis:propertyIdDefinition>
<cmis:id>cmis:VersionSeriesId</cmis:id>
<cmis:localName>rep-cmis:VersionSeriesId</cmis:localName>
<cmis:displayName>cmis:VersionSeriesId</cmis:displayName>
<cmis:description>Description for cmis:VersionSeriesId</cmis:description>
<cmis:propertyType>id</cmis:propertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmis:orderable>true</cmis:orderable>
<cmis:openChoice>false</cmis:openChoice>
</cmis:propertyIdDefinition>
<cmis:propertyBooleanDefinition>
<cmis:id>cmis:IsVersionSeriesCheckedOut</cmis:id>
<cmis:localName>rep-cmis:IsVersionSeriesCheckedOut</cmis:localName>
<cmis:displayName>cmis:IsVersionSeriesCheckedOut</cmis:displayName>
<cmis:description>Description for cmis:IsVersionSeriesCheckedOut</cmis:description>
<cmis:propertyType>boolean</cmis:propertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmis:orderable>true</cmis:orderable>
<cmis:openChoice>false</cmis:openChoice>
</cmis:propertyBooleanDefinition>
<cmis:propertyStringDefinition>
<cmis:id>cmis:VersionSeriesCheckedOutBy</cmis:id>
<cmis:localName>rep-cmis:VersionSeriesCheckedOutBy</cmis:localName>
<cmis:displayName>cmis:VersionSeriesCheckedOutBy</cmis:displayName>
<cmis:description>Description for cmis:VersionSeriesCheckedOutBy</cmis:description>
<cmis:propertyType>string</cmis:propertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmis:orderable>true</cmis:orderable>
<cmis:openChoice>false</cmis:openChoice>
<cmis:maxLength>128</cmis:maxLength>
</cmis:propertyStringDefinition>
<cmis:propertyIdDefinition>
<cmis:id>cmis:VersionSeriesCheckedOutId</cmis:id>
<cmis:localName>rep-cmis:VersionSeriesCheckedOutId</cmis:localName>
<cmis:displayName>cmis:VersionSeriesCheckedOutId</cmis:displayName>
<cmis:description>Description for cmis:VersionSeriesCheckedOutId</cmis:description>
<cmis:propertyType>id</cmis:propertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmis:orderable>true</cmis:orderable>
<cmis:openChoice>false</cmis:openChoice>
</cmis:propertyIdDefinition>
<cmis:propertyStringDefinition>
<cmis:id>cmis:CheckinComment</cmis:id>
<cmis:localName>rep-cmis:CheckinComment</cmis:localName>
<cmis:displayName>cmis:CheckinComment</cmis:displayName>
<cmis:description>Description for cmis:CheckinComment</cmis:description>
<cmis:propertyType>string</cmis:propertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmis:orderable>true</cmis:orderable>
<cmis:openChoice>false</cmis:openChoice>
<cmis:maxLength>128</cmis:maxLength>
</cmis:propertyStringDefinition>
<cmis:propertyIntegerDefinition>
<cmis:id>cmis:ContentStreamLength</cmis:id>
<cmis:localName>rep-cmis:ContentStreamLength</cmis:localName>
<cmis:displayName>cmis:ContentStreamLength</cmis:displayName>
<cmis:description>Description for cmis:ContentStreamLength</cmis:description>
<cmis:propertyType>datetime</cmis:propertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmis:orderable>true</cmis:orderable>
<cmis:openChoice>false</cmis:openChoice>
<cmis:maxValue>9223372036854775807</cmis:maxValue>
<cmis:minValue>-9223372036854775808</cmis:minValue>
</cmis:propertyIntegerDefinition>
<cmis:propertyStringDefinition>
<cmis:id>cmis:ContentStreamMimeType</cmis:id>
<cmis:localName>rep-cmis:ContentStreamMimeType</cmis:localName>
<cmis:displayName>cmis:ContentStreamMimeType</cmis:displayName>
<cmis:description>Description for cmis:ContentStreamMimeType</cmis:description>
<cmis:propertyType>string</cmis:propertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmis:orderable>true</cmis:orderable>
<cmis:openChoice>false</cmis:openChoice>
<cmis:maxLength>128</cmis:maxLength>
</cmis:propertyStringDefinition>
<cmis:propertyStringDefinition>
<cmis:id>cmis:ContentStreamFileName</cmis:id>
<cmis:localName>rep-cmis:ContentStreamFileName</cmis:localName>
<cmis:displayName>cmis:ContentStreamFileName</cmis:displayName>
<cmis:description>Description for cmis:ContentStreamFileName</cmis:description>
<cmis:propertyType>string</cmis:propertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmis:orderable>true</cmis:orderable>
<cmis:openChoice>false</cmis:openChoice>
<cmis:maxLength>128</cmis:maxLength>
</cmis:propertyStringDefinition>
<cmis:propertyStringDefinition>
<cmis:id>custom-customertype</cmis:id>
<cmis:localName>rep-custom-customertype</cmis:localName>
<cmis:displayName>custom-customertype</cmis:displayName>
<cmis:description>Description for custom-customertype</cmis:description>
<cmis:propertyType>string</cmis:propertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readwrite</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmis:orderable>true</cmis:orderable>
<cmis:openChoice>false</cmis:openChoice>
<cmis:defaultValue localname="rep-custom-customertype" pdid="custom-customertype">
<cmis:value>defaultvalue for custom-customertype</cmis:value>
</cmis:defaultValue>
<cmis:maxLength>128</cmis:maxLength>
<cmis:choice displayName="Choice 1">
<cmis:value>choice1value</cmis:value>
</cmis:choice>
<cmis:choice displayName="Choice 2">
<cmis:value>choice2value</cmis:value>
</cmis:choice>
<cmis:choice displayName="Choice 3">
<cmis:value>choice3value</cmis:value>
</cmis:choice>
</cmis:propertyStringDefinition>
<cmis:versionable>true</cmis:versionable>
<cmis:contentStreamAllowed>allowed</cmis:contentStreamAllowed>
</cmisra:type>
</atom:entry>

View File

@@ -1,39 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<atom:entry xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200901" xmlns:cmism="http://docs.oasis-open.org/ns/cmis/messaging/200901" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:app="http://www.w3.org/2007/app" xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200901">
<atom:author>
<atom:name>Al Brown</atom:name>
<atom:uri>http://www.ibm.com/</atom:uri>
<atom:email>albertcbrown@us.ibm.com</atom:email>
</atom:author>
<atom:content>Type Definition for document-invoice</atom:content>
<atom:id>http://cmisexample.oasis-open.org/rep1/type/document-invoice</atom:id>
<atom:link type="application/atom+xml;type=entry" rel="self" href="http://cmisexample.oasis-open.org/rep1/type/document-invoice"/>
<atom:link type="application/atomsvc+xml" rel="service" href="http://cmisexample.oasis-open.org/rep1/type/document-invoice"/>
<atom:link type="application/atom+xml;type=entry" rel="describedby" href="http://cmisexample.oasis-open.org/rep1/type/cmis:document"/>
<atom:link type="application/atom+xml;type=entry" rel="up" href="http://cmisexample.oasis-open.org/rep1/type/document-invoice/parent"/>
<atom:link type="application/atom+xml;type=feed" rel="down" href="http://cmisexample.oasis-open.org/rep1/type/document-invoice/children/flat"/>
<atom:link type="application/cmistree+xml" rel="down" href="http://cmisexample.oasis-open.org/rep1/type/document-invoice/children/tree"/>
<atom:published>2009-07-17T09:13:33.156-07:00</atom:published>
<atom:summary type="html">HTML summary of Type Definition document-invoice</atom:summary>
<atom:title type="text">Type Definition - document-invoice</atom:title>
<atom:updated>2009-07-17T09:13:33.156-07:00</atom:updated>
<app:edited>2009-07-17T09:13:33.156-07:00</app:edited>
<cmisra:type xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="cmis:cmisTypeDocumentDefinitionType">
<cmis:id>dtdocument-invoice</cmis:id>
<cmis:localName>myrepname-document-invoice</cmis:localName>
<cmis:displayName>document-invoice</cmis:displayName>
<cmis:queryName>document-invoice</cmis:queryName>
<cmis:description>Description for type definition document-invoice</cmis:description>
<cmis:baseTypeId>cmis:document</cmis:baseTypeId>
<cmis:parentId>parent</cmis:parentId>
<cmis:creatable>true</cmis:creatable>
<cmis:fileable>true</cmis:fileable>
<cmis:queryable>false</cmis:queryable>
<cmis:fulltextindexed>false</cmis:fulltextindexed>
<cmis:includedInSupertypeQuery>true</cmis:includedInSupertypeQuery>
<cmis:controllablePolicy>true</cmis:controllablePolicy>
<cmis:controllableACL>true</cmis:controllableACL>
<cmis:versionable>true</cmis:versionable>
<cmis:contentStreamAllowed>allowed</cmis:contentStreamAllowed>
</cmisra:type>
</atom:entry>

View File

@@ -1,211 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<atom:entry xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200901" xmlns:cmism="http://docs.oasis-open.org/ns/cmis/messaging/200901" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:app="http://www.w3.org/2007/app" xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200901">
<atom:author>
<atom:name>Al Brown</atom:name>
<atom:uri>http://www.ibm.com/</atom:uri>
<atom:email>albertcbrown@us.ibm.com</atom:email>
</atom:author>
<atom:content>Type Definition for folder-invoice</atom:content>
<atom:id>http://cmisexample.oasis-open.org/rep1/type/folder-invoice</atom:id>
<atom:link type="application/atom+xml;type=entry" rel="self" href="http://cmisexample.oasis-open.org/rep1/type/folder-invoice"/>
<atom:link type="application/atomsvc+xml" rel="service" href="http://cmisexample.oasis-open.org/rep1/type/folder-invoice"/>
<atom:link type="application/atom+xml;type=entry" rel="describedby" href="http://cmisexample.oasis-open.org/rep1/type/cmis:folder"/>
<atom:link type="application/atom+xml;type=entry" rel="up" href="http://cmisexample.oasis-open.org/rep1/type/folder-invoice/parent"/>
<atom:link type="application/atom+xml;type=feed" rel="down" href="http://cmisexample.oasis-open.org/rep1/type/folder-invoice/children/flat"/>
<atom:link type="application/cmistree+xml" rel="down" href="http://cmisexample.oasis-open.org/rep1/type/folder-invoice/children/tree"/>
<atom:published>2009-07-17T09:13:33.187-07:00</atom:published>
<atom:summary type="html">HTML summary of Type Definition folder-invoice</atom:summary>
<atom:title type="text">Type Definition - folder-invoice</atom:title>
<atom:updated>2009-07-17T09:13:33.187-07:00</atom:updated>
<app:edited>2009-07-17T09:13:33.187-07:00</app:edited>
<cmisra:type xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="cmis:cmisTypeFolderDefinitionType">
<cmis:id>dtfolder-invoice</cmis:id>
<cmis:localName>myrepname-folder-invoice</cmis:localName>
<cmis:displayName>folder-invoice</cmis:displayName>
<cmis:queryName>folder-invoice</cmis:queryName>
<cmis:description>Description for type definition folder-invoice</cmis:description>
<cmis:baseTypeId>cmis:document</cmis:baseTypeId>
<cmis:parentId>parent</cmis:parentId>
<cmis:creatable>true</cmis:creatable>
<cmis:fileable>true</cmis:fileable>
<cmis:queryable>false</cmis:queryable>
<cmis:fulltextindexed>false</cmis:fulltextindexed>
<cmis:includedInSupertypeQuery>true</cmis:includedInSupertypeQuery>
<cmis:controllablePolicy>true</cmis:controllablePolicy>
<cmis:controllableACL>true</cmis:controllableACL>
<cmis:propertyIdDefinition>
<cmis:id>cmis:BaseTypeId</cmis:id>
<cmis:localName>rep-cmis:BaseTypeId</cmis:localName>
<cmis:displayName>cmis:BaseTypeId</cmis:displayName>
<cmis:description>Description for cmis:BaseTypeId</cmis:description>
<cmis:propertyType>id</cmis:propertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmis:orderable>true</cmis:orderable>
<cmis:openChoice>false</cmis:openChoice>
</cmis:propertyIdDefinition>
<cmis:propertyStringDefinition>
<cmis:id>cmis:Name</cmis:id>
<cmis:localName>rep-cmis:Name</cmis:localName>
<cmis:displayName>cmis:Name</cmis:displayName>
<cmis:description>Description for cmis:Name</cmis:description>
<cmis:propertyType>string</cmis:propertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readwrite</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmis:orderable>true</cmis:orderable>
<cmis:openChoice>false</cmis:openChoice>
<cmis:maxLength>128</cmis:maxLength>
</cmis:propertyStringDefinition>
<cmis:propertyIdDefinition>
<cmis:id>cmis:ObjectId</cmis:id>
<cmis:localName>rep-cmis:ObjectId</cmis:localName>
<cmis:displayName>cmis:ObjectId</cmis:displayName>
<cmis:description>Description for cmis:ObjectId</cmis:description>
<cmis:propertyType>id</cmis:propertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmis:orderable>true</cmis:orderable>
<cmis:openChoice>false</cmis:openChoice>
</cmis:propertyIdDefinition>
<cmis:propertyStringDefinition>
<cmis:id>cmis:ObjectTypeId</cmis:id>
<cmis:localName>rep-cmis:ObjectTypeId</cmis:localName>
<cmis:displayName>cmis:ObjectTypeId</cmis:displayName>
<cmis:description>Description for cmis:ObjectTypeId</cmis:description>
<cmis:propertyType>string</cmis:propertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmis:orderable>true</cmis:orderable>
<cmis:openChoice>false</cmis:openChoice>
<cmis:maxLength>128</cmis:maxLength>
</cmis:propertyStringDefinition>
<cmis:propertyStringDefinition>
<cmis:id>cmis:BaseTypeId</cmis:id>
<cmis:localName>rep-cmis:BaseTypeId</cmis:localName>
<cmis:displayName>cmis:BaseTypeId</cmis:displayName>
<cmis:description>Description for cmis:BaseTypeId</cmis:description>
<cmis:propertyType>string</cmis:propertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmis:orderable>true</cmis:orderable>
<cmis:openChoice>false</cmis:openChoice>
<cmis:maxLength>128</cmis:maxLength>
</cmis:propertyStringDefinition>
<cmis:propertyStringDefinition>
<cmis:id>cmis:CreatedBy</cmis:id>
<cmis:localName>rep-cmis:CreatedBy</cmis:localName>
<cmis:displayName>cmis:CreatedBy</cmis:displayName>
<cmis:description>Description for cmis:CreatedBy</cmis:description>
<cmis:propertyType>string</cmis:propertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmis:orderable>true</cmis:orderable>
<cmis:openChoice>false</cmis:openChoice>
<cmis:maxLength>128</cmis:maxLength>
</cmis:propertyStringDefinition>
<cmis:propertyDateTimeDefinition>
<cmis:id>cmis:CreationDate</cmis:id>
<cmis:localName>rep-cmis:CreationDate</cmis:localName>
<cmis:displayName>cmis:CreationDate</cmis:displayName>
<cmis:description>Description for cmis:CreationDate</cmis:description>
<cmis:propertyType>datetime</cmis:propertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmis:orderable>true</cmis:orderable>
<cmis:openChoice>false</cmis:openChoice>
</cmis:propertyDateTimeDefinition>
<cmis:propertyStringDefinition>
<cmis:id>cmis:LastModifiedBy</cmis:id>
<cmis:localName>rep-cmis:LastModifiedBy</cmis:localName>
<cmis:displayName>cmis:LastModifiedBy</cmis:displayName>
<cmis:description>Description for cmis:LastModifiedBy</cmis:description>
<cmis:propertyType>string</cmis:propertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmis:orderable>true</cmis:orderable>
<cmis:openChoice>false</cmis:openChoice>
<cmis:maxLength>128</cmis:maxLength>
</cmis:propertyStringDefinition>
<cmis:propertyDateTimeDefinition>
<cmis:id>cmis:LastModificationDate</cmis:id>
<cmis:localName>rep-cmis:LastModificationDate</cmis:localName>
<cmis:displayName>cmis:LastModificationDate</cmis:displayName>
<cmis:description>Description for cmis:LastModificationDate</cmis:description>
<cmis:propertyType>datetime</cmis:propertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmis:orderable>true</cmis:orderable>
<cmis:openChoice>false</cmis:openChoice>
</cmis:propertyDateTimeDefinition>
<cmis:propertyStringDefinition>
<cmis:id>cmis:ChangeToken</cmis:id>
<cmis:localName>rep-cmis:ChangeToken</cmis:localName>
<cmis:displayName>cmis:ChangeToken</cmis:displayName>
<cmis:description>Description for cmis:ChangeToken</cmis:description>
<cmis:propertyType>string</cmis:propertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmis:orderable>true</cmis:orderable>
<cmis:openChoice>false</cmis:openChoice>
<cmis:maxLength>128</cmis:maxLength>
</cmis:propertyStringDefinition>
<cmis:propertyIdDefinition>
<cmis:id>cmis:ParentId</cmis:id>
<cmis:localName>rep-cmis:ParentId</cmis:localName>
<cmis:displayName>cmis:ParentId</cmis:displayName>
<cmis:description>Description for cmis:ParentId</cmis:description>
<cmis:propertyType>id</cmis:propertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmis:orderable>true</cmis:orderable>
<cmis:openChoice>false</cmis:openChoice>
</cmis:propertyIdDefinition>
<cmis:propertyIdDefinition>
<cmis:id>cmis:AllowedChildObjectTypeNames</cmis:id>
<cmis:localName>rep-cmis:AllowedChildObjectTypeNames</cmis:localName>
<cmis:displayName>cmis:AllowedChildObjectTypeNames</cmis:displayName>
<cmis:description>Description for cmis:AllowedChildObjectTypeNames</cmis:description>
<cmis:propertyType>id</cmis:propertyType>
<cmis:cardinality>multi</cmis:cardinality>
<cmis:updatability>readwrite</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmis:orderable>true</cmis:orderable>
<cmis:openChoice>false</cmis:openChoice>
</cmis:propertyIdDefinition>
</cmisra:type>
</atom:entry>

View File

@@ -1,37 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<atom:entry xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200901" xmlns:cmism="http://docs.oasis-open.org/ns/cmis/messaging/200901" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:app="http://www.w3.org/2007/app" xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200901">
<atom:author>
<atom:name>Al Brown</atom:name>
<atom:uri>http://www.ibm.com/</atom:uri>
<atom:email>albertcbrown@us.ibm.com</atom:email>
</atom:author>
<atom:content>Type Definition for folder-invoice</atom:content>
<atom:id>http://cmisexample.oasis-open.org/rep1/type/folder-invoice</atom:id>
<atom:link type="application/atom+xml;type=entry" rel="self" href="http://cmisexample.oasis-open.org/rep1/type/folder-invoice"/>
<atom:link type="application/atomsvc+xml" rel="service" href="http://cmisexample.oasis-open.org/rep1/type/folder-invoice"/>
<atom:link type="application/atom+xml;type=entry" rel="describedby" href="http://cmisexample.oasis-open.org/rep1/type/cmis:folder"/>
<atom:link type="application/atom+xml;type=entry" rel="up" href="http://cmisexample.oasis-open.org/rep1/type/folder-invoice/parent"/>
<atom:link type="application/atom+xml;type=feed" rel="down" href="http://cmisexample.oasis-open.org/rep1/type/folder-invoice/children/flat"/>
<atom:link type="application/cmistree+xml" rel="down" href="http://cmisexample.oasis-open.org/rep1/type/folder-invoice/children/tree"/>
<atom:published>2009-07-17T09:13:33.187-07:00</atom:published>
<atom:summary type="html">HTML summary of Type Definition folder-invoice</atom:summary>
<atom:title type="text">Type Definition - folder-invoice</atom:title>
<atom:updated>2009-07-17T09:13:33.187-07:00</atom:updated>
<app:edited>2009-07-17T09:13:33.187-07:00</app:edited>
<cmisra:type xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="cmis:cmisTypeFolderDefinitionType">
<cmis:id>dtfolder-invoice</cmis:id>
<cmis:localName>myrepname-folder-invoice</cmis:localName>
<cmis:displayName>folder-invoice</cmis:displayName>
<cmis:queryName>folder-invoice</cmis:queryName>
<cmis:description>Description for type definition folder-invoice</cmis:description>
<cmis:baseTypeId>cmis:document</cmis:baseTypeId>
<cmis:parentId>parent</cmis:parentId>
<cmis:creatable>true</cmis:creatable>
<cmis:fileable>true</cmis:fileable>
<cmis:queryable>false</cmis:queryable>
<cmis:fulltextindexed>false</cmis:fulltextindexed>
<cmis:includedInSupertypeQuery>true</cmis:includedInSupertypeQuery>
<cmis:controllablePolicy>true</cmis:controllablePolicy>
<cmis:controllableACL>true</cmis:controllableACL>
</cmisra:type>
</atom:entry>

View File

@@ -1,198 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<atom:entry xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200901" xmlns:cmism="http://docs.oasis-open.org/ns/cmis/messaging/200901" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:app="http://www.w3.org/2007/app" xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200901">
<atom:author>
<atom:name>Al Brown</atom:name>
<atom:uri>http://www.ibm.com/</atom:uri>
<atom:email>albertcbrown@us.ibm.com</atom:email>
</atom:author>
<atom:content>Type Definition for security-policy</atom:content>
<atom:id>http://cmisexample.oasis-open.org/rep1/type/security-policy</atom:id>
<atom:link type="application/atom+xml;type=entry" rel="self" href="http://cmisexample.oasis-open.org/rep1/type/security-policy"/>
<atom:link type="application/atomsvc+xml" rel="service" href="http://cmisexample.oasis-open.org/rep1/type/security-policy"/>
<atom:link type="application/atom+xml;type=entry" rel="describedby" href="http://cmisexample.oasis-open.org/rep1/type/cmis:policy"/>
<atom:link type="application/atom+xml;type=entry" rel="up" href="http://cmisexample.oasis-open.org/rep1/type/security-policy/parent"/>
<atom:link type="application/atom+xml;type=feed" rel="down" href="http://cmisexample.oasis-open.org/rep1/type/security-policy/children/flat"/>
<atom:link type="application/cmistree+xml" rel="down" href="http://cmisexample.oasis-open.org/rep1/type/security-policy/children/tree"/>
<atom:published>2009-07-17T09:13:33.234-07:00</atom:published>
<atom:summary type="html">HTML summary of Type Definition security-policy</atom:summary>
<atom:title type="text">Type Definition - security-policy</atom:title>
<atom:updated>2009-07-17T09:13:33.234-07:00</atom:updated>
<app:edited>2009-07-17T09:13:33.234-07:00</app:edited>
<cmisra:type xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="cmis:cmisTypePolicyDefinitionType">
<cmis:id>dtsecurity-policy</cmis:id>
<cmis:localName>myrepname-security-policy</cmis:localName>
<cmis:displayName>security-policy</cmis:displayName>
<cmis:queryName>security-policy</cmis:queryName>
<cmis:description>Description for type definition security-policy</cmis:description>
<cmis:baseTypeId>cmis:document</cmis:baseTypeId>
<cmis:parentId>parent</cmis:parentId>
<cmis:creatable>true</cmis:creatable>
<cmis:fileable>false</cmis:fileable>
<cmis:queryable>false</cmis:queryable>
<cmis:fulltextindexed>false</cmis:fulltextindexed>
<cmis:includedInSupertypeQuery>true</cmis:includedInSupertypeQuery>
<cmis:controllablePolicy>true</cmis:controllablePolicy>
<cmis:controllableACL>true</cmis:controllableACL>
<cmis:propertyIdDefinition>
<cmis:id>cmis:BaseTypeId</cmis:id>
<cmis:localName>rep-cmis:BaseTypeId</cmis:localName>
<cmis:displayName>cmis:BaseTypeId</cmis:displayName>
<cmis:description>Description for cmis:BaseTypeId</cmis:description>
<cmis:propertyType>id</cmis:propertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmis:orderable>true</cmis:orderable>
<cmis:openChoice>false</cmis:openChoice>
</cmis:propertyIdDefinition>
<cmis:propertyStringDefinition>
<cmis:id>cmis:Name</cmis:id>
<cmis:localName>rep-cmis:Name</cmis:localName>
<cmis:displayName>cmis:Name</cmis:displayName>
<cmis:description>Description for cmis:Name</cmis:description>
<cmis:propertyType>string</cmis:propertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readwrite</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmis:orderable>true</cmis:orderable>
<cmis:openChoice>false</cmis:openChoice>
<cmis:maxLength>128</cmis:maxLength>
</cmis:propertyStringDefinition>
<cmis:propertyIdDefinition>
<cmis:id>cmis:ObjectId</cmis:id>
<cmis:localName>rep-cmis:ObjectId</cmis:localName>
<cmis:displayName>cmis:ObjectId</cmis:displayName>
<cmis:description>Description for cmis:ObjectId</cmis:description>
<cmis:propertyType>id</cmis:propertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmis:orderable>true</cmis:orderable>
<cmis:openChoice>false</cmis:openChoice>
</cmis:propertyIdDefinition>
<cmis:propertyStringDefinition>
<cmis:id>cmis:ObjectTypeId</cmis:id>
<cmis:localName>rep-cmis:ObjectTypeId</cmis:localName>
<cmis:displayName>cmis:ObjectTypeId</cmis:displayName>
<cmis:description>Description for cmis:ObjectTypeId</cmis:description>
<cmis:propertyType>string</cmis:propertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmis:orderable>true</cmis:orderable>
<cmis:openChoice>false</cmis:openChoice>
<cmis:maxLength>128</cmis:maxLength>
</cmis:propertyStringDefinition>
<cmis:propertyStringDefinition>
<cmis:id>cmis:BaseTypeId</cmis:id>
<cmis:localName>rep-cmis:BaseTypeId</cmis:localName>
<cmis:displayName>cmis:BaseTypeId</cmis:displayName>
<cmis:description>Description for cmis:BaseTypeId</cmis:description>
<cmis:propertyType>string</cmis:propertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmis:orderable>true</cmis:orderable>
<cmis:openChoice>false</cmis:openChoice>
<cmis:maxLength>128</cmis:maxLength>
</cmis:propertyStringDefinition>
<cmis:propertyStringDefinition>
<cmis:id>cmis:CreatedBy</cmis:id>
<cmis:localName>rep-cmis:CreatedBy</cmis:localName>
<cmis:displayName>cmis:CreatedBy</cmis:displayName>
<cmis:description>Description for cmis:CreatedBy</cmis:description>
<cmis:propertyType>string</cmis:propertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmis:orderable>true</cmis:orderable>
<cmis:openChoice>false</cmis:openChoice>
<cmis:maxLength>128</cmis:maxLength>
</cmis:propertyStringDefinition>
<cmis:propertyDateTimeDefinition>
<cmis:id>cmis:CreationDate</cmis:id>
<cmis:localName>rep-cmis:CreationDate</cmis:localName>
<cmis:displayName>cmis:CreationDate</cmis:displayName>
<cmis:description>Description for cmis:CreationDate</cmis:description>
<cmis:propertyType>datetime</cmis:propertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmis:orderable>true</cmis:orderable>
<cmis:openChoice>false</cmis:openChoice>
</cmis:propertyDateTimeDefinition>
<cmis:propertyStringDefinition>
<cmis:id>cmis:LastModifiedBy</cmis:id>
<cmis:localName>rep-cmis:LastModifiedBy</cmis:localName>
<cmis:displayName>cmis:LastModifiedBy</cmis:displayName>
<cmis:description>Description for cmis:LastModifiedBy</cmis:description>
<cmis:propertyType>string</cmis:propertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmis:orderable>true</cmis:orderable>
<cmis:openChoice>false</cmis:openChoice>
<cmis:maxLength>128</cmis:maxLength>
</cmis:propertyStringDefinition>
<cmis:propertyDateTimeDefinition>
<cmis:id>cmis:LastModificationDate</cmis:id>
<cmis:localName>rep-cmis:LastModificationDate</cmis:localName>
<cmis:displayName>cmis:LastModificationDate</cmis:displayName>
<cmis:description>Description for cmis:LastModificationDate</cmis:description>
<cmis:propertyType>datetime</cmis:propertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmis:orderable>true</cmis:orderable>
<cmis:openChoice>false</cmis:openChoice>
</cmis:propertyDateTimeDefinition>
<cmis:propertyStringDefinition>
<cmis:id>cmis:ChangeToken</cmis:id>
<cmis:localName>rep-cmis:ChangeToken</cmis:localName>
<cmis:displayName>cmis:ChangeToken</cmis:displayName>
<cmis:description>Description for cmis:ChangeToken</cmis:description>
<cmis:propertyType>string</cmis:propertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmis:orderable>true</cmis:orderable>
<cmis:openChoice>false</cmis:openChoice>
<cmis:maxLength>128</cmis:maxLength>
</cmis:propertyStringDefinition>
<cmis:propertyStringDefinition>
<cmis:id>cmis:PolicyText</cmis:id>
<cmis:localName>rep-cmis:PolicyText</cmis:localName>
<cmis:displayName>cmis:PolicyText</cmis:displayName>
<cmis:description>Description for cmis:PolicyText</cmis:description>
<cmis:propertyType>string</cmis:propertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readwrite</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmis:orderable>true</cmis:orderable>
<cmis:openChoice>false</cmis:openChoice>
<cmis:maxLength>128</cmis:maxLength>
</cmis:propertyStringDefinition>
</cmisra:type>
</atom:entry>

View File

@@ -1,37 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<atom:entry xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200901" xmlns:cmism="http://docs.oasis-open.org/ns/cmis/messaging/200901" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:app="http://www.w3.org/2007/app" xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200901">
<atom:author>
<atom:name>Al Brown</atom:name>
<atom:uri>http://www.ibm.com/</atom:uri>
<atom:email>albertcbrown@us.ibm.com</atom:email>
</atom:author>
<atom:content>Type Definition for security-policy</atom:content>
<atom:id>http://cmisexample.oasis-open.org/rep1/type/security-policy</atom:id>
<atom:link type="application/atom+xml;type=entry" rel="self" href="http://cmisexample.oasis-open.org/rep1/type/security-policy"/>
<atom:link type="application/atomsvc+xml" rel="service" href="http://cmisexample.oasis-open.org/rep1/type/security-policy"/>
<atom:link type="application/atom+xml;type=entry" rel="describedby" href="http://cmisexample.oasis-open.org/rep1/type/cmis:policy"/>
<atom:link type="application/atom+xml;type=entry" rel="up" href="http://cmisexample.oasis-open.org/rep1/type/security-policy/parent"/>
<atom:link type="application/atom+xml;type=feed" rel="down" href="http://cmisexample.oasis-open.org/rep1/type/security-policy/children/flat"/>
<atom:link type="application/cmistree+xml" rel="down" href="http://cmisexample.oasis-open.org/rep1/type/security-policy/children/tree"/>
<atom:published>2009-07-17T09:13:33.218-07:00</atom:published>
<atom:summary type="html">HTML summary of Type Definition security-policy</atom:summary>
<atom:title type="text">Type Definition - security-policy</atom:title>
<atom:updated>2009-07-17T09:13:33.218-07:00</atom:updated>
<app:edited>2009-07-17T09:13:33.218-07:00</app:edited>
<cmisra:type xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="cmis:cmisTypePolicyDefinitionType">
<cmis:id>dtsecurity-policy</cmis:id>
<cmis:localName>myrepname-security-policy</cmis:localName>
<cmis:displayName>security-policy</cmis:displayName>
<cmis:queryName>security-policy</cmis:queryName>
<cmis:description>Description for type definition security-policy</cmis:description>
<cmis:baseTypeId>cmis:document</cmis:baseTypeId>
<cmis:parentId>parent</cmis:parentId>
<cmis:creatable>true</cmis:creatable>
<cmis:fileable>false</cmis:fileable>
<cmis:queryable>false</cmis:queryable>
<cmis:fulltextindexed>false</cmis:fulltextindexed>
<cmis:includedInSupertypeQuery>true</cmis:includedInSupertypeQuery>
<cmis:controllablePolicy>true</cmis:controllablePolicy>
<cmis:controllableACL>true</cmis:controllableACL>
</cmisra:type>
</atom:entry>

View File

@@ -1,26 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns3:entry xmlns:ns1="http://docs.oasis-open.org/ns/cmis/core/200901" xmlns:ns2="http://docs.oasis-open.org/ns/cmis/messaging/200901" xmlns:ns3="http://www.w3.org/2005/Atom" xmlns:ns4="http://www.w3.org/2007/app">
<ns3:author>
<ns3:name>Al Brown</ns3:name>
<ns3:uri>http://www.ibm.com/</ns3:uri>
<ns3:email>albertcbrown@us.ibm.com</ns3:email>
</ns3:author>
<ns3:content src="http://cmisexample.oasis-open.org/rep1/70cfe57f-5d59-4293-9cbc-842107117d65"/>
<ns3:id>urn:uuid:70cfe57f-5d59-4293-9cbc-842107117d65</ns3:id>
<ns3:link rel="self" href="http://cmisexample.oasis-open.org/rep1/70cfe57f-5d59-4293-9cbc-842107117d65"/>
<ns3:link rel="edit" href="http://cmisexample.oasis-open.org/rep1/70cfe57f-5d59-4293-9cbc-842107117d65"/>
<ns3:link type="application/cmis+xml;type=allowableActions" rel="allowableactions" href="http://cmisexample.oasis-open.org/rep1/70cfe57f-5d59-4293-9cbc-842107117d65/allowableactions"/>
<ns3:link type="application/atom+xml;type=entry" rel="type" href="http://cmisexample.oasis-open.org/rep1/70cfe57f-5d59-4293-9cbc-842107117d65/type"/>
<ns3:link rel="edit-media" href="http://cmisexample.oasis-open.org/rep1/70cfe57f-5d59-4293-9cbc-842107117d65/edit-media"/>
<ns3:link rel="alternate" href="http://cmisexample.oasis-open.org/rep1/70cfe57f-5d59-4293-9cbc-842107117d65/alternate"/>
<ns3:link type="application/atom+xml;type=feed" rel="parents" href="http://cmisexample.oasis-open.org/rep1/70cfe57f-5d59-4293-9cbc-842107117d65/parents"/>
<ns3:link type="application/atom+xml;type=feed" rel="allversions" href="http://cmisexample.oasis-open.org/rep1/70cfe57f-5d59-4293-9cbc-842107117d65/allversions"/>
<ns3:link type="application/atom+xml;type=entry" rel="latestversion" href="http://cmisexample.oasis-open.org/rep1/70cfe57f-5d59-4293-9cbc-842107117d65/latestversions"/>
<ns3:link length="4123" type="text/plain" rel="stream" href="http://cmisexample.oasis-open.org/rep1/70cfe57f-5d59-4293-9cbc-842107117d65media"/>
<ns3:link type="application/atom+xml;type=feed" rel="relationships" href="http://cmisexample.oasis-open.org/rep1/70cfe57f-5d59-4293-9cbc-842107117d65/relationships"/>
<ns3:published>2009-04-17T13:50:58.656-07:00</ns3:published>
<ns3:summary type="html">HTML summary of Entry 70cfe57f-5d59-4293-9cbc-842107117d65</ns3:summary>
<ns3:title type="text">CMIS Example Document</ns3:title>
<ns3:updated>2009-04-17T13:50:58.656-07:00</ns3:updated>
<ns1:terminator xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
</ns3:entry>

View File

@@ -1,45 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:app="http://www.w3.org/2007/app" xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200901" xmlns:alf="http://www.alfresco.org" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/">
<author><name>System</name></author>
<generator version="3.0.0 (sea-mist-dev-2 @build-number@)">Alfresco (Labs)</generator>
<icon>http://localhost:80/alfresco/images/logo/AlfrescoLogo16.ico</icon>
<id>urn:uuid:ffddcc48-0c6a-4aa3-b9e2-1121c35f6504</id>
<link rel="self" href="http://localhost:80/alfresco/service/api/path/workspace/SpacesStore/Company%20Home/children"/>
<link rel="first" href="http://localhost:80/alfresco/service/api/path/workspace/SpacesStore/Company%20Home/children?pageNo=1&amp;guest=&amp;format=atomfeed" type="application/atom+xml;type=feed"/>
<link rel="last" href="http://localhost:80/alfresco/service/api/path/workspace/SpacesStore/Company%20Home/children?pageNo=1&amp;guest=&amp;format=atomfeed" type="application/atom+xml;type=feed"/>
<title>Company Home</title>
<updated>2008-07-11T16:51:03.508+01:00</updated>
<opensearch:totalResults>6</opensearch:totalResults>
<opensearch:startIndex>0</opensearch:startIndex>
<opensearch:itemsPerPage>0</opensearch:itemsPerPage>
<entry>
<author><name>System</name></author>
<content>b09bc7f5-19c3-4ad1-9c5d-8f3a95a3417d</content>
<id>urn:uuid:b09bc7f5-19c3-4ad1-9c5d-8f3a95a3417d</id>
<link rel="self" href="http://localhost:80/alfresco/service/api/node/workspace/SpacesStore/b09bc7f5-19c3-4ad1-9c5d-8f3a95a3417d"/>
<link rel="edit" href="http://localhost:80/alfresco/service/api/node/workspace/SpacesStore/b09bc7f5-19c3-4ad1-9c5d-8f3a95a3417d"/>
<link rel="cmis-allowableactions" href="http://localhost:80/alfresco/service/api/node/workspace/SpacesStore/b09bc7f5-19c3-4ad1-9c5d-8f3a95a3417d/permissions"/>
<link rel="cmis-relationships" href="http://localhost:80/alfresco/service/api/node/workspace/SpacesStore/b09bc7f5-19c3-4ad1-9c5d-8f3a95a3417d/associations"/>
<link rel="cmis-parent" href="http://localhost:80/alfresco/service/api/node/workspace/SpacesStore/b09bc7f5-19c3-4ad1-9c5d-8f3a95a3417d/parent"/>
<link rel="cmis-children" href="http://localhost:80/alfresco/service/api/node/workspace/SpacesStore/b09bc7f5-19c3-4ad1-9c5d-8f3a95a3417d/children"/>
<link rel="cmis-descendants" href="http://localhost:80/alfresco/service/api/node/workspace/SpacesStore/b09bc7f5-19c3-4ad1-9c5d-8f3a95a3417d/descendants"/>
<published>2008-07-11T16:51:03.086+01:00</published>
<summary>Site Collaboration Spaces</summary>
<title>Sites</title>
<updated>2008-07-11T16:51:03.854+01:00</updated>
<app:edited>2008-07-11T16:51:03.854+01:00</app:edited>
<alf:icon>http://localhost:80/alfresco/images/icons/space-icon-default-16.gif</alf:icon>
<cmis:object>
<cmis:properties>
<cmis:propertyDateTime id="creationDate"><cmis:value>2008-07-11T16:51:03.086+01:00</cmis:value></cmis:propertyDateTime>
<cmis:propertyDateTime id="lastModificationDate"><cmis:value>2008-07-11T16:51:03.854+01:00</cmis:value></cmis:propertyDateTime>
<cmis:propertyId id="objectId"><cmis:value>workspace://SpacesStore/b09bc7f5-19c3-4ad1-9c5d-8f3a95a3417d</cmis:value></cmis:propertyId>
<cmis:propertyId id="parent"><cmis:value>workspace://SpacesStore/ffddcc48-0c6a-4aa3-b9e2-1121c35f6504</cmis:value></cmis:propertyId>
<cmis:propertyString id="baseType"><cmis:value>document</cmis:value></cmis:propertyString>
<cmis:propertyString id="createdBy"><cmis:value>System</cmis:value></cmis:propertyString>
<cmis:propertyString id="lastModifiedBy"><cmis:value>System</cmis:value></cmis:propertyString>
<cmis:propertyString id="name"><cmis:value>Sites</cmis:value></cmis:propertyString>
</cmis:properties>
</cmis:object>
</entry>
</feed>

File diff suppressed because it is too large Load Diff

View File

@@ -1,48 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema
targetNamespace="http://www.w3.org/XML/1998/namespace"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xml:lang="en">
<xsd:attribute name="lang">
<xsd:simpleType>
<xsd:union memberTypes="xsd:language">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value=""/>
</xsd:restriction>
</xsd:simpleType>
</xsd:union>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="space">
<xsd:simpleType>
<xsd:restriction base="xsd:NCName">
<xsd:enumeration value="default"/>
<xsd:enumeration value="preserve"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="base" type="xsd:anyURI">
<xsd:annotation>
<xsd:documentation>See http://www.w3.org/TR/xmlbase/ for
information about this attribute.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="id" type="xsd:ID">
<xsd:annotation>
<xsd:documentation>See http://www.w3.org/TR/xml-id/ for
information about this attribute.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attributeGroup name="specialAttrs">
<xsd:attribute ref="xml:base"/>
<xsd:attribute ref="xml:lang"/>
<xsd:attribute ref="xml:space"/>
<xsd:attribute ref="xml:id"/>
</xsd:attributeGroup>
</xsd:schema>