Package org.alfresco.repo.tagging.script
Class ScriptTaggingService
java.lang.Object
org.alfresco.repo.processor.BaseProcessorExtension
org.alfresco.repo.jscript.BaseScopableProcessorExtension
org.alfresco.repo.tagging.script.ScriptTaggingService
- All Implemented Interfaces:
org.alfresco.processor.ProcessorExtension,Scopeable
Script object representing the tagging service.
- Author:
- Roy Wetherall
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate a tag in a given storevoiddelete tag at the given storegetPagedTags(String store, int fromTag, int pageSize) Get page of tags with totalRecords infogetPagedTags(String store, String filter, int fromTag, int pageSize) Get a tag by name if available in a storeString[]Get all the tags available in a storeString[]Get all the tags available in a store based on a text filtervoidsetServiceRegistry(ServiceRegistry serviceRegistry) Sets the Service RegistryMethods inherited from class org.alfresco.repo.jscript.BaseScopableProcessorExtension
getScope, setScopeMethods inherited from class org.alfresco.repo.processor.BaseProcessorExtension
getExtensionName, register, setExtensionName, setProcessor
-
Constructor Details
-
ScriptTaggingService
public ScriptTaggingService()
-
-
Method Details
-
setServiceRegistry
Sets the Service Registry- Parameters:
serviceRegistry- ServiceRegistry
-
getTags
Get all the tags available in a store- Parameters:
store- store reference- Returns:
- String[] tag names
-
getPagedTags
Get page of tags with totalRecords info- Parameters:
store- StringfromTag- intpageSize- int- Returns:
- PagedTagsWrapper
-
getTags
Get all the tags available in a store based on a text filter- Parameters:
store- store referencefilter- tag filter- Returns:
- String[] tag names
-
getPagedTags
-
getTag
Get a tag by name if available in a store- Parameters:
store- store referencetag- tag name- Returns:
- ScriptNode tag node, or null if not found
-
createTag
Create a tag in a given store- Parameters:
store- store referencetag- tag name- Returns:
- ScriptNode newly created tag node, or null if unable to create
-
deleteTag
delete tag at the given store- Parameters:
store- store referencetag- tag name
-