AnsweredAssumed Answered

Aspect details

Question asked by hsjawanda on Dec 30, 2005
Latest reply on Jan 4, 2006 by andy
Hi all,

I have a few questions about aspects:
  • I can get a list of aspects applied to a node by using NodeService#getAspects().  Now how do I distinguish between mandatory and non-mandatory aspects?

  • What will I have to do to search properties added through aspects?

  • When programatically creating a node that has at least one mandatory aspect associated with it, is it the responsibility of the caller to add the mandatory aspect(s)?  Or does this happen automatically (inside Alfresco code)?  If the latter, then how and where?  What happens if a mandatory aspect is not added to a node?
I can get metadata about defined aspects from the DictionaryService, right?