Package org.nuxeo.ecm.platform.tag
Class RelationTagService
- java.lang.Object
-
- org.nuxeo.ecm.platform.tag.AbstractTagService
-
- org.nuxeo.ecm.platform.tag.RelationTagService
-
- All Implemented Interfaces:
TagService
@Deprecated public class RelationTagService extends AbstractTagService
Deprecated.since 9.3, useFacetedTagService
insteadImplementation of tag service based on SQL relations
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
RelationTagService.UnrestrictedCanRemoveTagging
Deprecated.protected static class
RelationTagService.UnrestrictedGetDocumentCloud
Deprecated.-
Nested classes/interfaces inherited from class org.nuxeo.ecm.platform.tag.AbstractTagService
AbstractTagService.PAGE_PROVIDERS
-
Nested classes/interfaces inherited from interface org.nuxeo.ecm.platform.tag.TagService
TagService.Feature
-
-
Field Summary
-
Fields inherited from class org.nuxeo.ecm.platform.tag.AbstractTagService
TAG_SANITIZATION_PROP
-
Fields inherited from interface org.nuxeo.ecm.platform.tag.TagService
ID
-
-
Constructor Summary
Constructors Constructor Description RelationTagService()
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
canUntag(CoreSession session, String docId, String label)
Deprecated.Returns whether or not the current session can untag tag on provided document.void
doCopyTags(CoreSession session, String srcDocId, String dstDocId, boolean removeExistingTags)
Deprecated.List<String>
doGetTagDocumentIds(CoreSession session, String label)
Deprecated.Set<String>
doGetTags(CoreSession session, String docId)
Deprecated.Set<String>
doGetTagSuggestions(CoreSession session, String label)
Deprecated.void
doTag(CoreSession session, String docId, String label, String username)
Deprecated.void
doUntag(CoreSession session, String docId, String label)
Deprecated.List<Tag>
getTagCloud(CoreSession session, String docId, String username, Boolean normalize)
Deprecated.Gets the tag cloud for a set of documents (tags with weight corresponding to their popularity).boolean
hasFeature(TagService.Feature feature)
Deprecated.Checks if a feature is available.static void
normalizeCloud(List<Tag> cloud, int min, int max, boolean linear)
Deprecated.boolean
supportsTag(CoreSession session, String docId)
Deprecated.Checks if document support tag.-
Methods inherited from class org.nuxeo.ecm.platform.tag.AbstractTagService
cleanLabel, cleanUsername, copyTags, copyTags, fireUpdateEvent, getDocumentTags, getDocumentTags, getItems, getSuggestions, getSuggestions, getTagDocumentIds, getTagDocumentIds, getTags, isEnabled, isTagSanitizationEnabled, removeTags, replaceTags, tag, tag, untag, untag
-
-
-
-
Constructor Detail
-
RelationTagService
public RelationTagService()
Deprecated.
-
-
Method Detail
-
hasFeature
public boolean hasFeature(TagService.Feature feature)
Deprecated.Description copied from interface:TagService
Checks if a feature is available.
-
supportsTag
public boolean supportsTag(CoreSession session, String docId)
Deprecated.Description copied from interface:TagService
Checks if document support tag.
-
doTag
public void doTag(CoreSession session, String docId, String label, String username)
Deprecated.- Specified by:
doTag
in classAbstractTagService
-
doUntag
public void doUntag(CoreSession session, String docId, String label)
Deprecated.- Specified by:
doUntag
in classAbstractTagService
-
doGetTags
public Set<String> doGetTags(CoreSession session, String docId)
Deprecated.- Specified by:
doGetTags
in classAbstractTagService
-
doCopyTags
public void doCopyTags(CoreSession session, String srcDocId, String dstDocId, boolean removeExistingTags)
Deprecated.- Specified by:
doCopyTags
in classAbstractTagService
-
doGetTagDocumentIds
public List<String> doGetTagDocumentIds(CoreSession session, String label)
Deprecated.- Specified by:
doGetTagDocumentIds
in classAbstractTagService
-
doGetTagSuggestions
public Set<String> doGetTagSuggestions(CoreSession session, String label)
Deprecated.- Specified by:
doGetTagSuggestions
in classAbstractTagService
-
canUntag
public boolean canUntag(CoreSession session, String docId, String label)
Deprecated.Description copied from interface:TagService
Returns whether or not the current session can untag tag on provided document.- Specified by:
canUntag
in interfaceTagService
- Overrides:
canUntag
in classAbstractTagService
- Parameters:
session
- the sessiondocId
- the document idlabel
- the tag, ornull
for all tags- Returns:
- whether or not the current session can untag provided document
- Since:
- 8.4
-
getTagCloud
public List<Tag> getTagCloud(CoreSession session, String docId, String username, Boolean normalize)
Deprecated.Description copied from interface:TagService
Gets the tag cloud for a set of documents (tags with weight corresponding to their popularity).If a docId is passed, only documents under it are considered, otherwise all documents in the database are used.
The cloud is returned unsorted.
- Parameters:
session
- the sessiondocId
- the document id under which to look, ornull
for all documentsusername
- the user name, ornull
for all usersnormalize
- null for no weight normalization (a count is returned),FALSE
for 0-100 normalization,TRUE
for logarithmic 0-100 normalization- Returns:
- the cloud (a list of weighted tags)
-
normalizeCloud
public static void normalizeCloud(List<Tag> cloud, int min, int max, boolean linear)
Deprecated.
-
-