AnsweredAssumed Answered

Set value of protected property

Question asked by h.deselys on Sep 11, 2014
Hello everybody,

I have a custom aspect in which some properties are <protected> in order to prevent users to modify their value. However, I want to be able to set the value at the first place and then lock this value. With the tag <protected>, it is not possible to do that. And values are not always the same so I can't use the <default> tag.

I already made some attempts with the Updatability (org.apache.chemistry.opencmis.commons.enums.Updatability) but with no success. If I can use the ONCREATE enum of this class, it would be perfect but I don't know how to modify this value for a property in my Alfresco through OpenCMIS. I just succeed to retrieve this value in order to make not editable my input text for these property.

How can I do to modify the Updatability of a property at the creation of a document or a folder?

Thanks in advance.

Best regards.

Outcomes