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…
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.