Is it possible to create aspects without creating a custom content model ?
Hi Riadh Azzouz
You need to create your model where you must define your custom aspects, types, constraints,...
Hi
What I mean is, do I need to create the tag <types> and put under it a custom content ?
Or I can create aspects without creating a <type>. ?
Thanks.
Types and aspects are diferents elements in Alfresco world. If you want to create custom aspects, in you custom model you will have to declare you custom aspect into <aspects></aspects> tags. It isn’t necessary to create any <type> tag for creating aspects.
Hi,
You can directly create aspect without type.
Aspect and Type both are different thing.
Managing custom types, aspects, and properties | Alfresco Documentation
You can create aspect and type 2 ways.
1)Using model manager - Content modeling with Model Manager | Alfresco Documentation
2)Create xxx.xml file - Content Model Tutorials | Alfresco Documentation
Thanks,
Sanjay
Thanks
Hi,
Are there any examples about how to access these aspects in java ?
Thanks.
Hi,
You can get aspect property in java using nodeService.
Ex.
nodeService.hasAspect(nodeRef, model.aspect);
nodeService.getProperties(nodeRef);
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.