OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

cmis message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: leveraging generic atom schema


***********************
Warning: Your file, CMIS Schema 62b.zip, contains more than 32 files after decompression and cannot be scanned.
Warning: Your file, CMIS Schema atom 62b.zip, contains more than 32 files after decompression and cannot be scanned.
***********************

Here's the project using generic atom.

The examples xml are basically the same. The differences are:

1. cmis:terminator is no longer there
2. I had to add a cmis:children element to incorporate atom:entry inside atom:entry as the generic schema (even though it is non-normative) does not allow atom markup there. Example from jaxb:
// folder1 has a couple of docs
CmisAtomChildren cat = new CmisAtomChildren();
cat.getEntry().add(
getAtomEntryType(UUID.randomUUID().toString(),
EnumBaseObjectType.DOCUMENT, "invoice", false, true,
false, "CMIS Example Doc as Invoice type"));
cat.getEntry().add(
getAtomEntryType(UUID.randomUUID().toString(),
EnumBaseObjectType.DOCUMENT, "invoice", false, true,
false, "CMIS Example Doc as Invoice type"));
// save
JAXBElement<CmisAtomChildren> kids = raFactory.createChildren(cat);
e.getAnyOther().add(kids);

jaxb differences:
1. adding cmisObjectType is now:
e.getAnyOther().add(coreFactory.createObject(cot));
2. attributes are a bit more painful:
act.getOtherAttributes().put(
new QName("http://docs.oasis-open.org/ns/cmis/restatom/200901",
"CollectionType"), cType.value());
The QName has to be created. I would suggest collectionType moved to be an element rather than attribute.

-Al

(See attached file: CMIS Schema 62b.zip)(See attached file: CMIS Schema atom 62b.zip)
Al Brown
Emerging Standards and Industry Frameworks
CMIS: https://w3.tap.ibm.com/w3ki07/display/ECMCMIS/Home
Industry Frameworks: https://w3.tap.ibm.com/w3ki07/display/ECMIF/Home

Office 714 327 3453
Mobile 714 263 6441
Email albertcbrown@us.ibm.com
CONFIDENTIAL NOTICE: The contents of this message, including any attachments, are confidential and are intended solely for the use of the person or entity to whom the message was addressed. If you are not the intended recipient of this message, please be advised that any dissemination, distribution, or use of the contents of this message is strictly prohibited. If you received this message in error, please notify the sender. Please also permanently delete all copies of the original message and any attached documentation.

CMIS Schema 62b.zip

CMIS Schema atom 62b.zip



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]