AnsweredAssumed Answered

Constraint Service

Question asked by alfrescot3ster on Jun 22, 2015
Latest reply on Jul 3, 2015 by darionis
Hello guys!

It's monday and I'm here again with a question!

I have a contentModel with a constraint with type "LIST". Now I want to use the Java API to dynamically add values to this constraint (or parameter in the constraint).

<aspect name="doc:baseDocumentType">
         <title>Dokumenttyp</title>
         <constraints>
            <constraint name="doc:constraintDocumentClass" type="LIST">
               <parameter name="documentClasses">
                                       <value>test</value>
               </parameter>
            </constraint>
         </constraints>
      </aspect>


I didn't find a proper service to do this. I have found a getConstraints in the DictionaryService, but no way to add values to a constraint-list or even add a constraint.
The forum and google won't tell me the solution.

Someone got an idea?

Outcomes