AnsweredAssumed Answered

add Aspect on custom type by cmis error

Question asked by phong_van on Jun 15, 2017
Latest reply on Jun 19, 2017 by phong_van

Dear everyone,

I'm using alfresco 5 and cmis 1.1. I have model with 2 aspect sc:productRelated and sc:webable .I've writen cmis code to create new document with aspect as:

 

Session cmisSession = getCmisSession();

String fileName = file.getName();

// create a map of properties if one wasn't passed in
if (props == null) {
props = new HashMap<String, Object>();
}
if (props.get("cmis:baseTypeId") == null) {
props.put("cmis:baseTypeId", "cmis:document");
}

// Add the object type ID if it wasn't already
if (props.get("cmis:objectTypeId") == null) {
props.put("cmis:objectTypeId", "D:sc:doc,P:sc:productRelated");
}

 

// Add the name if it wasn't already
if (props.get("cmis:name") == null) {
props.put("cmis:name", fileName);
}
props.put("sc:campaign", "this is my campaign");
props.put("sc:product", "MC High class");
props.put("sc:version", "2.1");

ContentStream contentStream = cmisSession.getObjectFactory().
createContentStream(
fileName,
file.length(),
fileType,
new FileInputStream(file)
);

Document document = null;
try {
document = parentFolder.createDocument(props, contentStream, null);
System.out.println("Created new document: " + document.getId());
} catch (CmisContentAlreadyExistsException ccaee) {
document = (Document) cmisSession.getObjectByPath(parentFolder.getPath() + "/" + fileName);
System.out.println("Document already exists: " + fileName);
}

 

 

when I run that code, document is created on Alfresco but I check sc:productRelated i found that it empty.

Anyone can help? 

 

This is my model.

<?xml version='1.0' encoding='UTF-8'?>
<cmis:type xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200908/" xsi:type="cmis:cmisTypeDocumentDefinitionType">
<cmis:id>D:sc:doc</cmis:id>
<cmis:localName>doc</cmis:localName>
<cmis:localNamespace>http://www.mcredit.com.vn/model/dictionary/1.0</cmis:localNamespace>
<cmis:displayName>Someco Document</cmis:displayName>
<cmis:queryName>sc:doc</cmis:queryName>
<cmis:description>D:sc:doc</cmis:description>
<cmis:baseId>cmis:document</cmis:baseId>
<cmis:parentId>cmis:document</cmis:parentId>
<cmis:creatable>true</cmis:creatable>
<cmis:fileable>true</cmis:fileable>
<cmis:queryable>true</cmis:queryable>
<cmis:fulltextIndexed>true</cmis:fulltextIndexed>
<cmis:includedInSupertypeQuery>true</cmis:includedInSupertypeQuery>
<cmis:controllablePolicy>false</cmis:controllablePolicy>
<cmis:controllableACL>true</cmis:controllableACL>
<cmis:propertyStringDefinition>
<cmis:id>sc:campaign</cmis:id>
<cmis:localName>campaign</cmis:localName>
<cmis:localNamespace>http://www.mcredit.com.vn/model/dictionary/1.0</cmis:localNamespace>
<cmis:displayName>campaign</cmis:displayName>
<cmis:queryName>sc:campaign</cmis:queryName>
<cmis:description>campaign</cmis:description>
<cmis:propertyType>string</cmis:propertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readwrite</cmis:updatability>
<cmis:inherited>false</cmis:inherited>
<cmis:required>false</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmis:orderable>false</cmis:orderable>
<cmis:defaultValue />
</cmis:propertyStringDefinition>
<cmis:propertyIdDefinition>
<cmis:id>alfcmis:nodeRef</cmis:id>
<cmis:localName>nodeRef</cmis:localName>
<cmis:localNamespace>http://www.alfresco.org/model/cmis/1.0/alfcmis</cmis:localNamespace>
<cmis:displayName>Alfresco Node Ref</cmis:displayName>
<cmis:queryName>alfcmis:nodeRef</cmis:queryName>
<cmis:description>Alfresco Node Ref</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>false</cmis:queryable>
<cmis:orderable>false</cmis:orderable>
<cmis:defaultValue />
</cmis:propertyIdDefinition>
<cmis:propertyBooleanDefinition>
<cmis:id>cmis:isImmutable</cmis:id>
<cmis:localName>isImmutable</cmis:localName>
<cmis:localNamespace>http://www.alfresco.org/model/cmis/1.0/cs01</cmis:localNamespace>
<cmis:displayName>Is Immutable</cmis:displayName>
<cmis:queryName>cmis:isImmutable</cmis:queryName>
<cmis:description>Is the document immutable?</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>false</cmis:queryable>
<cmis:orderable>false</cmis:orderable>
<cmis:defaultValue />
</cmis:propertyBooleanDefinition>
<cmis:propertyStringDefinition>
<cmis:id>cmis:versionLabel</cmis:id>
<cmis:localName>versionLabel</cmis:localName>
<cmis:localNamespace>http://www.alfresco.org/model/cmis/1.0/cs01</cmis:localNamespace>
<cmis:displayName>Version Label</cmis:displayName>
<cmis:queryName>cmis:versionLabel</cmis:queryName>
<cmis:description>The version label</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>false</cmis:queryable>
<cmis:orderable>false</cmis:orderable>
<cmis:defaultValue />
</cmis:propertyStringDefinition>
<cmis:propertyIdDefinition>
<cmis:id>cmis:objectTypeId</cmis:id>
<cmis:localName>objectTypeId</cmis:localName>
<cmis:localNamespace>http://www.alfresco.org/model/cmis/1.0/cs01</cmis:localNamespace>
<cmis:displayName>Object Type Id</cmis:displayName>
<cmis:queryName>cmis:objectTypeId</cmis:queryName>
<cmis:description>Id of the object’s type</cmis:description>
<cmis:propertyType>id</cmis:propertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>oncreate</cmis:updatability>
<cmis:inherited>true</cmis:inherited>
<cmis:required>true</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmis:orderable>true</cmis:orderable>
<cmis:defaultValue />
</cmis:propertyIdDefinition>
<cmis:propertyStringDefinition>
<cmis:id>cmis:description</cmis:id>
<cmis:localName>description</cmis:localName>
<cmis:localNamespace>http://www.alfresco.org/model/cmis/1.0/cs01</cmis:localNamespace>
<cmis:displayName>Description</cmis:displayName>
<cmis:queryName>cmis:description</cmis:queryName>
<cmis:description>Description</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>false</cmis:orderable>
<cmis:defaultValue />
</cmis:propertyStringDefinition>
<cmis:propertyStringDefinition>
<cmis:id>cmis:createdBy</cmis:id>
<cmis:localName>createdBy</cmis:localName>
<cmis:localNamespace>http://www.alfresco.org/model/cmis/1.0/cs01</cmis:localNamespace>
<cmis:displayName>Created by</cmis:displayName>
<cmis:queryName>cmis:createdBy</cmis:queryName>
<cmis:description>The authority who created this object</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:defaultValue />
</cmis:propertyStringDefinition>
<cmis:propertyStringDefinition>
<cmis:id>cmis:checkinComment</cmis:id>
<cmis:localName>checkinComment</cmis:localName>
<cmis:localNamespace>http://www.alfresco.org/model/cmis/1.0/cs01</cmis:localNamespace>
<cmis:displayName>Checkin Comment</cmis:displayName>
<cmis:queryName>cmis:checkinComment</cmis:queryName>
<cmis:description>The checkin comment</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>false</cmis:queryable>
<cmis:orderable>false</cmis:orderable>
<cmis:defaultValue />
</cmis:propertyStringDefinition>
<cmis:propertyDateTimeDefinition>
<cmis:id>cmis:creationDate</cmis:id>
<cmis:localName>creationDate</cmis:localName>
<cmis:localNamespace>http://www.alfresco.org/model/cmis/1.0/cs01</cmis:localNamespace>
<cmis:displayName>Creation Date</cmis:displayName>
<cmis:queryName>cmis:creationDate</cmis:queryName>
<cmis:description>The object creation date</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:defaultValue />
</cmis:propertyDateTimeDefinition>
<cmis:propertyBooleanDefinition>
<cmis:id>cmis:isMajorVersion</cmis:id>
<cmis:localName>isMajorVersion</cmis:localName>
<cmis:localNamespace>http://www.alfresco.org/model/cmis/1.0/cs01</cmis:localNamespace>
<cmis:displayName>Is Major Version</cmis:displayName>
<cmis:queryName>cmis:isMajorVersion</cmis:queryName>
<cmis:description>Is this a major version of the document?</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>false</cmis:queryable>
<cmis:orderable>false</cmis:orderable>
<cmis:defaultValue />
</cmis:propertyBooleanDefinition>
<cmis:propertyStringDefinition>
<cmis:id>cmis:contentStreamFileName</cmis:id>
<cmis:localName>contentStreamFileName</cmis:localName>
<cmis:localNamespace>http://www.alfresco.org/model/cmis/1.0/cs01</cmis:localNamespace>
<cmis:displayName>Content Stream Filename</cmis:displayName>
<cmis:queryName>cmis:contentStreamFileName</cmis:queryName>
<cmis:description>The content stream filename</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>false</cmis:orderable>
<cmis:defaultValue />
</cmis:propertyStringDefinition>
<cmis:propertyStringDefinition>
<cmis:id>cmis:name</cmis:id>
<cmis:localName>name</cmis:localName>
<cmis:localNamespace>http://www.alfresco.org/model/cmis/1.0/cs01</cmis:localNamespace>
<cmis:displayName>Name</cmis:displayName>
<cmis:queryName>cmis:name</cmis:queryName>
<cmis:description>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>true</cmis:required>
<cmis:queryable>true</cmis:queryable>
<cmis:orderable>true</cmis:orderable>
<cmis:defaultValue />
</cmis:propertyStringDefinition>
<cmis:propertyBooleanDefinition>
<cmis:id>cmis:isLatestVersion</cmis:id>
<cmis:localName>isLatestVersion</cmis:localName>
<cmis:localNamespace>http://www.alfresco.org/model/cmis/1.0/cs01</cmis:localNamespace>
<cmis:displayName>Is Latest Version</cmis:displayName>
<cmis:queryName>cmis:isLatestVersion</cmis:queryName>
<cmis:description>Is this the latest version of the document?</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>false</cmis:queryable>
<cmis:orderable>false</cmis:orderable>
<cmis:defaultValue />
</cmis:propertyBooleanDefinition>
<cmis:propertyDateTimeDefinition>
<cmis:id>cmis:lastModificationDate</cmis:id>
<cmis:localName>lastModificationDate</cmis:localName>
<cmis:localNamespace>http://www.alfresco.org/model/cmis/1.0/cs01</cmis:localNamespace>
<cmis:displayName>Last Modified Date</cmis:displayName>
<cmis:queryName>cmis:lastModificationDate</cmis:queryName>
<cmis:description>The date this object was last modified</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:defaultValue />
</cmis:propertyDateTimeDefinition>
<cmis:propertyIntegerDefinition>
<cmis:id>cmis:contentStreamLength</cmis:id>
<cmis:localName>contentStreamLength</cmis:localName>
<cmis:localNamespace>http://www.alfresco.org/model/cmis/1.0/cs01</cmis:localNamespace>
<cmis:displayName>Content Stream Length</cmis:displayName>
<cmis:queryName>cmis:contentStreamLength</cmis:queryName>
<cmis:description>The length of the content stream</cmis:description>
<cmis:propertyType>integer</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:defaultValue />
<cmis:maxValue>9223372036854775807</cmis:maxValue>
<cmis:minValue>-9223372036854775808</cmis:minValue>
</cmis:propertyIntegerDefinition>
<cmis:propertyIdDefinition>
<cmis:id>cmis:objectId</cmis:id>
<cmis:localName>objectId</cmis:localName>
<cmis:localNamespace>http://www.alfresco.org/model/cmis/1.0/cs01</cmis:localNamespace>
<cmis:displayName>Object Id</cmis:displayName>
<cmis:queryName>cmis:objectId</cmis:queryName>
<cmis:description>The unique object id (a node ref)</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:defaultValue />
</cmis:propertyIdDefinition>
<cmis:propertyStringDefinition>
<cmis:id>cmis:lastModifiedBy</cmis:id>
<cmis:localName>lastModifiedBy</cmis:localName>
<cmis:localNamespace>http://www.alfresco.org/model/cmis/1.0/cs01</cmis:localNamespace>
<cmis:displayName>Last Modified By</cmis:displayName>
<cmis:queryName>cmis:lastModifiedBy</cmis:queryName>
<cmis:description>The authority who last modified this object</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:defaultValue />
</cmis:propertyStringDefinition>
<cmis:propertyIdDefinition>
<cmis:id>cmis:secondaryObjectTypeIds</cmis:id>
<cmis:localName>secondaryObjectTypeIds</cmis:localName>
<cmis:localNamespace>http://www.alfresco.org/model/cmis/1.0/cs01</cmis:localNamespace>
<cmis:displayName>Secondary Object Type Ids</cmis:displayName>
<cmis:queryName>cmis:secondaryObjectTypeIds</cmis:queryName>
<cmis:description>Ids of the secondary object types for the object</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>false</cmis:orderable>
<cmis:defaultValue />
</cmis:propertyIdDefinition>
<cmis:propertyIdDefinition>
<cmis:id>cmis:contentStreamId</cmis:id>
<cmis:localName>contentStreamId</cmis:localName>
<cmis:localNamespace>http://www.alfresco.org/model/cmis/1.0/cs01</cmis:localNamespace>
<cmis:displayName>Content Stream Id</cmis:displayName>
<cmis:queryName>cmis:contentStreamId</cmis:queryName>
<cmis:description>Id of the stream</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>false</cmis:queryable>
<cmis:orderable>false</cmis:orderable>
<cmis:defaultValue />
</cmis:propertyIdDefinition>
<cmis:propertyStringDefinition>
<cmis:id>cmis:contentStreamMimeType</cmis:id>
<cmis:localName>contentStreamMimeType</cmis:localName>
<cmis:localNamespace>http://www.alfresco.org/model/cmis/1.0/cs01</cmis:localNamespace>
<cmis:displayName>Content Stream MIME Type</cmis:displayName>
<cmis:queryName>cmis:contentStreamMimeType</cmis:queryName>
<cmis:description>The content stream MIME type</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:defaultValue />
</cmis:propertyStringDefinition>
<cmis:propertyIdDefinition>
<cmis:id>cmis:baseTypeId</cmis:id>
<cmis:localName>baseTypeId</cmis:localName>
<cmis:localNamespace>http://www.alfresco.org/model/cmis/1.0/cs01</cmis:localNamespace>
<cmis:displayName>Base Type Id</cmis:displayName>
<cmis:queryName>cmis:baseTypeId</cmis:queryName>
<cmis:description>Id of the base object type for the object</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>false</cmis:orderable>
<cmis:defaultValue />
</cmis:propertyIdDefinition>
<cmis:propertyStringDefinition>
<cmis:id>cmis:changeToken</cmis:id>
<cmis:localName>changeToken</cmis:localName>
<cmis:localNamespace>http://www.alfresco.org/model/cmis/1.0/cs01</cmis:localNamespace>
<cmis:displayName>Change token</cmis:displayName>
<cmis:queryName>cmis:changeToken</cmis:queryName>
<cmis:description>Change Token</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>false</cmis:queryable>
<cmis:orderable>false</cmis:orderable>
<cmis:defaultValue />
</cmis:propertyStringDefinition>
<cmis:propertyBooleanDefinition>
<cmis:id>cmis:isPrivateWorkingCopy</cmis:id>
<cmis:localName>isPrivateWorkingCopy</cmis:localName>
<cmis:localNamespace>http://www.alfresco.org/model/cmis/1.0/cs01</cmis:localNamespace>
<cmis:displayName>Is private working copy</cmis:displayName>
<cmis:queryName>cmis:isPrivateWorkingCopy</cmis:queryName>
<cmis:description>Indicates if this instance is a private working copy</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>false</cmis:queryable>
<cmis:orderable>false</cmis:orderable>
<cmis:defaultValue />
</cmis:propertyBooleanDefinition>
<cmis:propertyStringDefinition>
<cmis:id>cmis:versionSeriesCheckedOutBy</cmis:id>
<cmis:localName>versionSeriesCheckedOutBy</cmis:localName>
<cmis:localNamespace>http://www.alfresco.org/model/cmis/1.0/cs01</cmis:localNamespace>
<cmis:displayName>Version Series Checked Out By</cmis:displayName>
<cmis:queryName>cmis:versionSeriesCheckedOutBy</cmis:queryName>
<cmis:description>The authority who checked out this document version
series</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>false</cmis:queryable>
<cmis:orderable>false</cmis:orderable>
<cmis:defaultValue />
</cmis:propertyStringDefinition>
<cmis:propertyBooleanDefinition>
<cmis:id>cmis:isVersionSeriesCheckedOut</cmis:id>
<cmis:localName>isVersionSeriesCheckedOut</cmis:localName>
<cmis:localNamespace>http://www.alfresco.org/model/cmis/1.0/cs01</cmis:localNamespace>
<cmis:displayName>Is Version Series Checked Out</cmis:displayName>
<cmis:queryName>cmis:isVersionSeriesCheckedOut</cmis:queryName>
<cmis:description>Is the version series checked out?</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>false</cmis:queryable>
<cmis:orderable>false</cmis:orderable>
<cmis:defaultValue />
</cmis:propertyBooleanDefinition>
<cmis:propertyIdDefinition>
<cmis:id>cmis:versionSeriesId</cmis:id>
<cmis:localName>versionSeriesId</cmis:localName>
<cmis:localNamespace>http://www.alfresco.org/model/cmis/1.0/cs01</cmis:localNamespace>
<cmis:displayName>Version series id</cmis:displayName>
<cmis:queryName>cmis:versionSeriesId</cmis:queryName>
<cmis:description>The version series id</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>false</cmis:queryable>
<cmis:orderable>false</cmis:orderable>
<cmis:defaultValue />
</cmis:propertyIdDefinition>
<cmis:propertyBooleanDefinition>
<cmis:id>cmis:isLatestMajorVersion</cmis:id>
<cmis:localName>isLatestMajorVersion</cmis:localName>
<cmis:localNamespace>http://www.alfresco.org/model/cmis/1.0/cs01</cmis:localNamespace>
<cmis:displayName>Is Latest Major Version</cmis:displayName>
<cmis:queryName>cmis:isLatestMajorVersion</cmis:queryName>
<cmis:description>Is this the latest major version of the document?</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>false</cmis:queryable>
<cmis:orderable>false</cmis:orderable>
<cmis:defaultValue />
</cmis:propertyBooleanDefinition>
<cmis:propertyIdDefinition>
<cmis:id>cmis:versionSeriesCheckedOutId</cmis:id>
<cmis:localName>versionSeriesCheckedOutId</cmis:localName>
<cmis:localNamespace>http://www.alfresco.org/model/cmis/1.0/cs01</cmis:localNamespace>
<cmis:displayName>Version Series Checked Out Id</cmis:displayName>
<cmis:queryName>cmis:versionSeriesCheckedOutId</cmis:queryName>
<cmis:description>The checked out version series id</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>false</cmis:queryable>
<cmis:orderable>false</cmis:orderable>
<cmis:defaultValue />
</cmis:propertyIdDefinition>
<cmis:versionable>true</cmis:versionable>
<cmis:contentStreamAllowed>allowed</cmis:contentStreamAllowed>
<e1:mandatoryAspects xmlns:e1="http://www.alfresco.org">
<e1:mandatoryAspect>P:sys:localized</e1:mandatoryAspect>
</e1:mandatoryAspects>
</cmis:type> 

Outcomes