update tag in opencmis

236 views
Skip to first unread message

positivefresh

unread,
Apr 12, 2013, 1:13:02 PM4/12/13
to alfresco-open...@googlegroups.com
from a  opencmis client I try to add a noderef to alfresco docs,  like this way:
 

             fdoc.addAspect("P:cm:taggable");
            List<String> tagsta = new ArrayList<String>();
            tagsta.add("workspace://SpacesStore/14f2adea-15ac-46c0-bf28-33377ddb33sdf");  //<--- from
            try{
                HashMap<String, Object> propertiestags = new HashMap<String, Object>();
                propertiestags.put("P:cm:taggable", tagsta);
               
                fdoc.updateProperties(propertiestags);
  
            }catch (IllegalArgumentException  e) {
                System.out.println("faild <-------------" + e.getMessage());
            }

return this fail:  Property 'P:cm:taggable' is not valid for this type or one of the secondary types! 


i try with 'cm:taggable' and not work as well.






Ref: workspace://SpacesStore/14f2adea-15ac-46c0-bf28-33377ddb33sdf
primary: /cm:categoryRoot/cm:generalclassifiable/cm:Tags/cm:estoesunacategoriapuestapormi
Tipe: cm:category
Properties
Name
Tipy
Value
Residual
cm:name
d:text
thismycategorytest
false
sys:node-dbid
d:long
1638
false
sys:store-identifier
d:text
SpacesStore
false
sys:locale
d:locale
es_ES
false
sys:node-uuid
d:text
14f2adea-15ac-46c0-bf28-33377ddb33sdf     
false
cm:modified
d:datetime
11 abr 2013 11:00:37 GMT+0100 (WEST)
false
cm:created
d:datetime
11 abr 2013 11:00:37 GMT+0100 (WEST)
false
sys:store-protocol
d:text
workspace
false
cm:creator
d:text
alfdes
false
cm:modifier
d:text
alfdes
false



other solution?  thanks

positivefresh ok

unread,
Apr 17, 2013, 1:59:49 PM4/17/13
to alfresco-open...@googlegroups.com
i solve it. i going to respond to my self, ...like this is imposible in cmis maybe thats it works in a web-service and later call from cmis remote client.... 


2013/4/12 positivefresh <positi...@gmail.com>

--
You received this message because you are subscribed to a topic in the Google Groups "Alfresco OpenCMIS Extension" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/alfresco-opencmis-extension/nVkpaqqSJW4/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to alfresco-opencmis-e...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages