0 Replies Latest reply: Oct 31, 2008 6:18 AM by 596581 RSS

    Using Content DB devkit, how to get the categories attached for folders

    596581
      Hi,



      We attached a category to a folder. Category name is TestCategory.



      Now we tried the following code to get the category values for a folder



      <p>
      String folderName = "/TestCintainer/TestWorkSpcae/TestFolder";
      </p>


      <p>
      We Used the following code to get the requested attributes for folder.



      AttributeRequest[] requestedAttributes = new AttributeRequest[]

      {

      ClientUtils.newAttributeRequest(Attributes.CATEGORIES,

      new AttributeRequest[]

      {

      ClientUtils.newAttributeRequest ( Attributes.CATEGORY_CLASS,

      new AttributeRequest[] { ClientUtils.newAttributeRequest (Attributes.DISPLAY_NAME) } ),

      ClientUtils.newAttributeRequest(Attributes.CUSTOM_ALL),

      })

      };
      </p>


      <p>
      Item folder = fileM.resolvePath(folderName , requestedAttributes);



      But we are unable to get the categories and its values..



      (NOTE: We could use the same code for getting the categories for files.)





      Thank You,

      Eswari
      </p>