<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Aspect details in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/aspect-details/m-p/20731#M9746</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a few questions about aspects:&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;LI&gt;I can get a list of aspects applied to a node by using NodeService#getAspects().&amp;nbsp; Now how do I distinguish between mandatory and non-mandatory aspects?&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;What will I have to do to search properties added through aspects?&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;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)?&amp;nbsp; Or does this happen automatically (inside Alfresco code)?&amp;nbsp; If the latter, then how and where?&amp;nbsp; What happens if a mandatory aspect is not added to a node?&lt;/LI&gt;&lt;/UL&gt;&lt;SPAN&gt;I can get metadata about defined aspects from the DictionaryService, right?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Dec 2005 01:07:48 GMT</pubDate>
    <dc:creator>hsjawanda</dc:creator>
    <dc:date>2005-12-30T01:07:48Z</dc:date>
    <item>
      <title>Aspect details</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/aspect-details/m-p/20731#M9746</link>
      <description>Hi all,I have a few questions about aspects:I can get a list of aspects applied to a node by using NodeService#getAspects().&amp;nbsp; 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 th</description>
      <pubDate>Fri, 30 Dec 2005 01:07:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/aspect-details/m-p/20731#M9746</guid>
      <dc:creator>hsjawanda</dc:creator>
      <dc:date>2005-12-30T01:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: Aspect details</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/aspect-details/m-p/20732#M9747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;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? &lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;You can get the aspects for the type using something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;dictionaryService.getType(nodeService.getType(nodeRef)).getDefaultAspects();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;where dictionaryService and nodeService are the respective beans.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;What will I have to do to search properties added through aspects? &lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;These will be indexed and you should be able to search for them.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 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?&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Default aspect will be added . If aspects have mandatory properties and these have default values, these will be added. If there are unset mandatory properties, which do not have defaults, you will get integrity violations. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2006 09:56:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/aspect-details/m-p/20732#M9747</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2006-01-04T09:56:56Z</dc:date>
    </item>
  </channel>
</rss>

