Class ScriptTaggingService

    • Constructor Detail

      • ScriptTaggingService

        public ScriptTaggingService()
    • Method Detail

      • 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
      • 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