cancel
Showing results for 
Search instead for 
Did you mean: 

Add d:contents data to aspect

bsomnath
Champ in-the-making
Champ in-the-making
Hi,

I am new in aspect oriented programming and just start learning myself with Alfresco api, i get some idea about the meta data, where i want to put as aspect, i get stuck when i a want to insert a d:content type to aspect  using addaspect function of node services…

How i move forward…please help me out from here


Thanks
Somnath  :wink:
1 REPLY 1

davidc
Star Contributor
Star Contributor
You define your aspect using the technique described in http://www.alfresco.org/mediawiki/index.php/Data_Dictionary_Guide.  Then you add your aspect to a node using NodeService.addAspect(…).  You can also add aspects via rules (if you don't want to do this programmatically).  Then to write and read content property, use the ContentService.