AnsweredAssumed Answered

Get list of available tags

Question asked by tmitchell on Nov 3, 2010
Latest reply on Nov 3, 2010 by rwetherall
I'm trying to create a webscript that will return a list of the tags used in my repository.

project.tag.list.get.desc.xml:
<webscript>
   <shortname>ProjectTag Search</shortname>
   <description>returns list of tags available in the MADE repository</description>
   <url>/project/search/site/listtags/{site}</url>
   <format default="json">extension</format>
   <authentication>user</authentication>
</webscript>

project.tag.list.get.js:

var tagList = getTags(storeRef("workspace:\/\/SpacesStore"));


From what I see in the documentation this should pull back a list of the tags used in the repository

——————————————————————————————————–
getTags

@NotAuditable
java.util.List getTags(org.alfresco.service.cmr.repository.StoreRef storeRef)

    Get all the tags currently available

    Returns:
        List list of tags
———————————————————————————————————

But it does not work. Any ideas? I'm thinking I'm missing something simple…

T

Outcomes