Class ScriptTaggingService

All Implemented Interfaces:
org.alfresco.processor.ProcessorExtension, Scopeable

public class ScriptTaggingService extends BaseScopableProcessorExtension
Script object representing the tagging service.
Author:
Roy Wetherall
  • Constructor Details

    • ScriptTaggingService

      public ScriptTaggingService()
  • Method Details

    • setServiceRegistry

      public void setServiceRegistry(ServiceRegistry serviceRegistry)
      Sets the Service Registry
      Parameters:
      serviceRegistry - ServiceRegistry
    • getTags

      public String[] getTags(String store)
      Get all the tags available in a store
      Parameters:
      store - store reference
      Returns:
      String[] tag names
    • getPagedTags

      public PagedTagsWrapper getPagedTags(String store, int fromTag, int pageSize)
      Get page of tags with totalRecords info
      Parameters:
      store - String
      fromTag - int
      pageSize - int
      Returns:
      PagedTagsWrapper
    • getTags

      public String[] getTags(String store, String filter)
      Get all the tags available in a store based on a text filter
      Parameters:
      store - store reference
      filter - tag filter
      Returns:
      String[] tag names
    • getPagedTags

      public PagedTagsWrapper getPagedTags(String store, String filter, int fromTag, int pageSize)
    • getTag

      public ScriptNode getTag(String store, String tag)
      Get a tag by name if available in a store
      Parameters:
      store - store reference
      tag - tag name
      Returns:
      ScriptNode tag node, or null if not found
    • createTag

      public ScriptNode createTag(String store, String tag)
      Create a tag in a given store
      Parameters:
      store - store reference
      tag - tag name
      Returns:
      ScriptNode newly created tag node, or null if unable to create
    • deleteTag

      public void deleteTag(String store, String tag)
      delete tag at the given store
      Parameters:
      store - store reference
      tag - tag name