public interface SocialTagManager extends TagManager
SocialTagManager
is an extension to TagManager
interface for Adobe Social.TagManager.FindResults
Modifier and Type | Method and Description |
---|---|
void |
addTagsTo(Resource resource,
Tag[] tags)
Add on or multiple tags to a resource.
|
boolean |
canCreateUserGeneratedTag(String tagID)
Verifies if the user, of the current session, can create a tag in the user generated space.
|
Tag |
createUserGeneratedTag(String tagID)
Creates a tag or namespace in the use generated space.
|
void |
flagForModeration(Tag tag)
Flags the given tag for moderation.
|
Tag[] |
getUserGeneratedNamespaces()
Retrieves all available tag namespaces, in the user generated space, as array.
|
boolean |
isFlaggedForModeration(String tagID)
Returns true if the given tag was marked for moderation.
|
boolean |
isUserGeneratedTag(String tagID)
Verifies the creator of tag was indeed a user, not an admin nor moderator.
|
void |
removeAllTagsFrom(Resource resource)
Removes all tags from a resource.
|
void |
removeModerationFlag(Tag tag)
Removes the moderation flag of a tag.
|
void |
removeTagsFrom(Resource resource,
Tag[] tags)
Removes one or multiple tags from a resource.
|
Tag |
resolveRawTagByPath(String absPath)
Returns the tag based on the resource at the given exact repository path.
|
Tag[] |
searchWordsToTags(String[] searchWords,
boolean isUserGenerated)
Resolves search words to tags.
|
Tag[] |
searchWordsToTags(String[] searchWords,
boolean isUserGenerated,
Locale locale)
Resolves search words to tags, while taking in consideration of the locale.
|
canCreateTag, canCreateTagByTitle, canCreateTagByTitle, createTag, createTag, createTagByTitle, createTagByTitle, createTagByTitle, deleteTag, deleteTag, find, find, find, find, findByTitle, getNamespaces, getNamespacesIter, getSession, getTags, getTagsForSubtree, mergeTag, moveTag, resolve, resolveByTitle, resolveByTitle, setTags, setTags
boolean isUserGeneratedTag(String tagID)
tagID
- can be the name/ID mytag
or namespace:group/tag
or the absolute path to
resource.boolean isFlaggedForModeration(String tagID)
tagID
- can be the name/ID mytag
or namespace:group/tag
or the absolute path to
resource.void flagForModeration(Tag tag)
tag
- a user generated tagvoid removeModerationFlag(Tag tag)
tag
- a user generated tag that was flaggedboolean canCreateUserGeneratedTag(String tagID) throws InvalidTagFormatException
TagManager
's canCreateTag, which is not for user generated tags.tagID
- can be the name/ID mytag
or namespace:group/tag
or the absolute path to
resource.InvalidTagFormatException
- if tagID doen't adhere to formating rulesTag createUserGeneratedTag(String tagID) throws InvalidTagFormatException
tagID
- Can be the absolute path or tag name/ID such as myTag
or
namespace:group/myTag
. Namespaces can also be defined as absolute path or by the
name/ID syntax as such myNameSpace:
InvalidTagFormatException
- if tagID doen't adhere to formating rulesTag[] getUserGeneratedNamespaces()
void addTagsTo(Resource resource, Tag[] tags)
resource
- an existing resource that may already have tagstags
- an array of tagsvoid removeTagsFrom(Resource resource, Tag[] tags)
resource
- an resource an existing resourcetags
- an array of tagsvoid removeAllTagsFrom(Resource resource)
resource
- the tags to remove all its tagsTag resolveRawTagByPath(String absPath)
absPath
- absolute path to tag resource, such as /etc/tags/namespace/mytag
SocialTagImpl
instance for the tag resources stored at the given path, null
if
not foundTag[] searchWordsToTags(String[] searchWords, boolean isUserGenerated)
searchWords
- an array of search terms which a user enteredisUserGenerated
- whether to resolve in the user generated path, if true
, otherwise in the
base CQ path.Tag[] searchWordsToTags(String[] searchWords, boolean isUserGenerated, Locale locale)
searchWords
- an array of search terms which a user enteredisUserGenerated
- whether to resolve in the user generated path, if true
, otherwise in the
base CQ path.locale
- the local to use while resolving the tags."Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"