Skip to Content
author's profile photo Former Member
Former Member

Update readbyme

Hi,

I want wo update the readbyme property. When I save the updated Property, I get a following Exception:

com.sapportals.wcm.repository.PropertyReadOnlyException.

Here my Source:

IResource datei = ...

IPropertyName propName = (IPropertyName)new PropertyName("http://sapportals.com/xmlns/cm/acc_stat", "readbyme");

IProperty prop = datei.getProperty(propName);

IMutableProperty mProp = prop.getMutable();

mProp.setBooleanValue(true);

datei.setProperty(mProp);

Anybody an idea?

Regards,

Gerhard

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Dec 15, 2004 at 01:26 PM

    Hi Gerhard,

    this ends up within method setExternalProperty in com.sapportals.wcm.repository.manager.cm.persistence.db.PropertyHandler.setExternalProperty (Line 489).

    Within this method, in table cm_properties the value of FlagIsReadOnly is checked.

    I just tried to build the example, creating a test file - and after this, there was exactly one entry with FlagIsReadOnly set to 1 (true). I have some 8000 entries...

    Maybe one should look up into PersistenceDB class if this is set somewhere... Just look around to understand how the check is done...

    Hope it helps

    Detlev

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.