chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From me <dave8...@gmail.com>
Subject Re: Adding the documents with the custom properties.
Date Thu, 30 Aug 2012 22:27:38 GMT
Assuming you are asking about setting a multi-valued property with
createDocument, the Map.Entry value must be a List.

Example (which would be good to add to [2] and/or [3]):

  Map<String, Object> properties = new HashMap<String, Object>();
  properties.put(PropertyIds.OBJECT_TYPE_ID, "Email");
  List values = new ArrayList();
  values.add("Mary");
  values.add("Jane");
  properties.put("To", values);    // assuming To is the prop def's Id attr
  folder.createDocument(properties, ...


If you think the problem is FileNet-specific, please post to [1].

[1] http://www.ibm.com/developerworks/forums/forum.jspa?forumID=2334&start=0
[2] http://chemistry.apache.org/java/examples/example-create-update.html
[3] http://chemistry.apache.org/java/developing/guide.html



On Thu, Aug 30, 2012 at 9:25 AM, Pratyush Sinha <
pratyush.sinha2511@gmail.com> wrote:

> Hi all,
>
> I am developing a CMIS with GWT.
>
> i have customProperty for the cmis:objectTypeId : Email
>
> From, To, received date,sent date, etc.
>
> in hasMap is for type <String,String>
> except From and Document title all the other properties are giving me
> error.
>
> for example : customProperty TO is mutivalued.
>
> So want know that what the properties should be included with the
> customProperties.
>
> Regards.
>
> Pratyush
>

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