chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jens Hübel <jhue...@opentext.com>
Subject RE: svn commit: r1098638 - /chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/types/DocumentTypeCreationHelper.java
Date Tue, 10 May 2011 15:22:52 GMT
Hmmm,

looking at section 2.1.4.3.3 Property Definitions line 1357, I really don't see that updatability
is enforced as read-only.

@Florian: Florian, I think you pointed out that the original implementation does not behave
correctly. Can you refer to the spec? Or did I misunderstand and changed the wrong place?

Jens


-----Original Message-----
From: Florent Guillaume [mailto:fg@nuxeo.com] 
Sent: Dienstag, 10. Mai 2011 16:37
To: jens@apache.org
Cc: dev@chemistry.apache.org
Subject: Re: svn commit: r1098638 - /chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/types/DocumentTypeCreationHelper.java

Why?

On Mon, May 2, 2011 at 6:04 PM,  <jens@apache.org> wrote:
> Author: jens
> Date: Mon May  2 16:04:49 2011
> New Revision: 1098638
>
> URL: http://svn.apache.org/viewvc?rev=1098638&view=rev
> Log:
> make cmis:contentStreamFileName read-only for InMemory
>
> Modified:
>    chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/types/DocumentTypeCreationHelper.java
>
> Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/types/DocumentTypeCreationHelper.java
> URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/types/DocumentTypeCreationHelper.java?rev=1098638&r1=1098637&r2=1098638&view=diff
> ==============================================================================
> --- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/types/DocumentTypeCreationHelper.java
(original)
> +++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/types/DocumentTypeCreationHelper.java
Mon May  2 16:04:49 2011
> @@ -194,6 +194,7 @@ public class DocumentTypeCreationHelper
>
>         propS = PropertyCreationHelper.createStringDefinition(PropertyIds.CONTENT_STREAM_FILE_NAME,
>                 "CMIS Content Stream File Name Property");
> +        propS.setUpdatability(Updatability.READONLY);
>         propertyDefinitions.put(propS.getId(), propS);
>
>         propId = PropertyCreationHelper.createIdDefinition(PropertyIds.CONTENT_STREAM_ID,
"CMIS Stream Id Property");
>
>
>



-- 
Florent Guillaume, Director of R&D, Nuxeo
Open Source, Java EE based, Enterprise Content Management (ECM)
http://www.nuxeo.com   http://www.nuxeo.org   +33 1 40 33 79 87

Mime
View raw message