cancel
Showing results for 
Search instead for 
Did you mean: 

protected property

michiel_verkaik
Champ in-the-making
Champ in-the-making
Hi,

I'm looking at the Alfresco content model in contentModel.xml, and I see the following property definition in cm:audible:

            <property name="cm:creator">
               <title>Creator</title>
               <type>d:text</type>
               <protected>true</protected>
               <mandatory enforced="true">true</mandatory>
            </property>

Does anyone know what the <protected>true</protected> tag means?  Can such a property be set through the web services API?

Thanks,

Michiel
4 REPLIES 4

calle
Champ in-the-making
Champ in-the-making
I would also like to know!

debaser
Champ in-the-making
Champ in-the-making
I'm also in great need to get more information on this matter.

I tried to set "Created" and "Creator" to a document with the Web Service API but nothing happened.

I also tried to explicitly set the aspect "auditable" and deleted the "protected"-value in the contentModel without any success…

zaizi
Champ in-the-making
Champ in-the-making
Found this post while looking up the same answer. So ended up looking in the code. For anyone else who ends up here the answer is

Protected: true => system maintained, false => client may maintain

Ainga

ranjeetsi
Star Contributor
Star Contributor
  • Content Model - Defining and Deploying | Alfresco Documentation 
  • true = this property cannot be edited after the value has been set. And it cannot be edited at all from the user interface (that is Alfresco Share). This is usually used for system properties such as cm:created, cm:creator. They are set by the system and can then not be touched. It is sometimes also used in custom content models to make a property read-only after it has been initially set via an API call.
  • false = the property can be updated as many times as you like. This is the default if this element is not specified.
Alfresco Content Services Certified Engineer (ACSCE)