chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pratyush Sinha <pratyush.sinha2...@gmail.com>
Subject adding Documents with Typedefination property.
Date Fri, 31 Aug 2012 11:32:14 GMT
Hi

I am developing CMIS with GWT

I have to add a Document and its typeDefination property.

Example cmis:name = xyz.txt
cmis:objectTypeId = Email

and the other TypeDefination property l

>From :      dataType : String , Cardinality : SINGLE  ChoiceList : "absent"
   value = String
To:           dataType : String , Cardinality : Multi       ChoiceList :
"absent"    value = List<String>
Cc:           dataType : String , Cardinality : Multi       ChoiceList :
"present"   value = List<String>
Subject:   dataType : String , Cardinality : SINGLE  ChoiceList :
"present"   value = String
SentOn:   dataType : Date,   Cardinality : SINGLE   ChoiceList:  "absent"
 value = Date

 PropertyTable is

Map<String, Object> newDocumentProperties = new HashMap<String, Object>();

newDocumentProperties.put(cmis:objectTypeId,"Email");
newDocumentProperties.put(cmis:name,"azerty");
newDocumentProperties.put( To ,[aaaa,  zzzzz]);
newDocumentProperties.put(From,"qwerty");

for Above properties the document is added

but when i add the below given peoperties  i receive an error

newDocumentProperties.put(Cc,[User]);
newDocumentProperties.put(Subject,"document");
newDocumentProperties.put(Sent On ,Thu Aug 16 00:00:00 UTC 2012);

Property 'Received On' is not valid for this type!

this is only problem when the cardinality is Multi or datatype is  DateTime

How to add these property.

Plz help

Thanks and Regards

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message