Quantcast
Channel: Alfresco Forums - Other APIs
Viewing all articles
Browse latest Browse all 74

What is where_id parameter on CMLAddAspect?

$
0
0

Hi,

I'm adding custom aspects throw java webservice client, doing something like this:

NamedValue[] customProps =new NamedValue[2];
customProps[0]= Utils.createNamedValue("{example}AAA","111");
customProps[1]= Utils.createNamedValue("{example}BBB","222");
CMLAddAspect addCustomAspect1 =new CMLAddAspect("{example}my_aspect1", customProps,null,"1"); 
NamedValue[] customProps2 =new NamedValue[1];
customProps2 [0]= Utils.createNamedValue("{example}CCC","333");
CMLAddAspect addCustomAspect2 =new CMLAddAspect("{example}my_aspect2", customProps2 ,null,"2"); 
cml.setAddAspect(new CMLAddAspect[]{ addCustomAspect1 , addCustomAspect2 });

My question is... What means the last parameter of CMLAddAspect? The API say that is a String where_id. On examples I allways see null or "1". But if I add various aspects, I need to put "1" and "2" to specify what is what? Better always "1"? Or whats means?

Thanks a lot!

4.2.e


Viewing all articles
Browse latest Browse all 74

Trending Articles