Constraint Service

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2015 02:20 AM
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).
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?
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?
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2015 03:30 AM
AFAIK, there is no easy solution for this. You may find this interesting
http://summit.alfresco.com/boston/sessions/lightning-talks-2
check Dynamic Datalist Driven Constraints in Share, Tony Parzgnat.
And also this:
http://ecmarchitect.com/archives/2008/08/13/845
https://forums.alfresco.com/forum/general/non-technical-alfresco-discussion/jean-barmash-blog-032120...
https://forums.alfresco.com/forum/developer-discussions/repository-services/custom-constraint-032620...
What about ListOfValuesConstraint#getAllowedValues()?
Please let us know if you find a solution.
http://summit.alfresco.com/boston/sessions/lightning-talks-2
check Dynamic Datalist Driven Constraints in Share, Tony Parzgnat.
And also this:
http://ecmarchitect.com/archives/2008/08/13/845
https://forums.alfresco.com/forum/general/non-technical-alfresco-discussion/jean-barmash-blog-032120...
https://forums.alfresco.com/forum/developer-discussions/repository-services/custom-constraint-032620...
What about ListOfValuesConstraint#getAllowedValues()?
Please let us know if you find a solution.
