AnsweredAssumed Answered

custom category properties invisible via NodeService

Question asked by dbevacqua on Jan 24, 2007
Latest reply on Jan 29, 2007 by dbevacqua
Hi

To implement a thesaurus we have extended the type cm:category…

<type name="cms:ThesaurusTerm">
         <title>Thesaurus term</title>
         <parent>cm:category</parent>
         <properties>
            <property name="cms:scopeNote">
               <title>Scope note</title>
               <type>d:text</type>
               <multiple>false</multiple>
           </property>
            <property name="cms:useFor">
               <title>Use for</title>
               <type>d:text</type>
               <multiple>true</multiple>
           </property>
            <property name="cms:termCode">
               <title>Term code</title>
               <type>d:text</type>
               <multiple>false</multiple>
           </property>
       </properties>



</type>

there are a couple of associations defined there too.

We create nodes of type cms:ThesaurusTerm, with no apparent problems. Using the JCR API we can navigate these categories and retrieve the value s of the properties we set….


    + cms:CurrencyILS
       * 1 cm:modifier = admin
       * 5 cm:modified = 2007-01-24T14:37:30.265Z
       * 1 sys:node-uuid = 6b5004ec-abb8-11db-b9ef-f5cb86f258dc
       * 1 cm:creator = admin
       * 3 sys:node-dbid = 1283
       * 1 cms:termCode = ILS
       * 1 sys:store-protocol = workspace
       * 1 cm:name = 6b5004ec-abb8-11db-b9ef-f5cb86f258dc
       * 1 cms:name = ILS Israel
       * 1 sys:store-identifier = SpacesStore
       * 3 cms:id = 12
       * 5 cm:created = 2007-01-24T14:37:30.077Z
       * 1 jcr:uuid = 6b5004ec-abb8-11db-b9ef-f5cb86f258dc
       * 7 jcr:primaryType = cms:Currency
       * 7 jcr:mixinTypes = sys:incompletecm:auditablesys:referenceablemix:referenceable

but when we do something similar with the NodeService…


      + {http://researchcommons.com/cms}CurrencyILS (type={http://www.alfresco.org/model/content/1.0}subcategories)
        -{http://www.alfresco.org/model/content/1.0}modifier= admin
        -{http://www.alfresco.org/model/content/1.0}modified= Wed Jan 24 10:58:03 GMT 2007
        -{http://www.alfresco.org/model/system/1.0}node-uuid= c2e62502-ab99-11db-a7a4-3130f5422c8c
        -{http://www.alfresco.org/model/content/1.0}creator= admin
        -{http://www.alfresco.org/model/system/1.0}node-dbid= 677
        -{http://www.alfresco.org/model/system/1.0}store-protocol= workspace
        -{http://www.alfresco.org/model/content/1.0}name= c2e62502-ab99-11db-a7a4-3130f5422c8c
        -{http://www.alfresco.org/model/system/1.0}store-identifier= SpacesStore
        -{http://www.alfresco.org/model/content/1.0}created= Wed Jan 24 10:58:02 GMT 2007



So it appears that anything outside the cm: and sys: namespaces is invisible to the NodeService.

This only happens with categories.

Is there a reason for this behaviour? Is what we're trying to do with categories that strange? Hope you can help.

Thanks

Dominic

Outcomes