FacetedTagService
instead@Deprecated public class RelationTagService extends AbstractTagService
Modifier and Type | Class and Description |
---|---|
protected static class |
RelationTagService.UnrestrictedCanRemoveTagging
Deprecated.
|
protected static class |
RelationTagService.UnrestrictedGetDocumentCloud
Deprecated.
|
AbstractTagService.PAGE_PROVIDERS
TagService.Feature
ID
Constructor and Description |
---|
RelationTagService()
Deprecated.
|
Modifier and Type | Method and 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.
|
cleanLabel, cleanUsername, copyTags, copyTags, fireUpdateEvent, getDocumentTags, getDocumentTags, getItems, getSuggestions, getSuggestions, getTagDocumentIds, getTagDocumentIds, getTags, isEnabled, removeTags, replaceTags, tag, tag, untag, untag
public RelationTagService()
public boolean hasFeature(TagService.Feature feature)
TagService
public boolean supportsTag(CoreSession session, String docId)
TagService
public void doTag(CoreSession session, String docId, String label, String username)
doTag
in class AbstractTagService
public void doUntag(CoreSession session, String docId, String label)
doUntag
in class AbstractTagService
public Set<String> doGetTags(CoreSession session, String docId)
doGetTags
in class AbstractTagService
public void doCopyTags(CoreSession session, String srcDocId, String dstDocId, boolean removeExistingTags)
doCopyTags
in class AbstractTagService
public List<String> doGetTagDocumentIds(CoreSession session, String label)
doGetTagDocumentIds
in class AbstractTagService
public Set<String> doGetTagSuggestions(CoreSession session, String label)
doGetTagSuggestions
in class AbstractTagService
public boolean canUntag(CoreSession session, String docId, String label)
TagService
canUntag
in interface TagService
canUntag
in class AbstractTagService
session
- the sessiondocId
- the document idlabel
- the tag, or null
for all tagspublic List<Tag> getTagCloud(CoreSession session, String docId, String username, Boolean normalize)
TagService
If a docId is passed, only documents under it are considered, otherwise all documents in the database are used.
The cloud is returned unsorted.
session
- the sessiondocId
- the document id under which to look, or null
for all documentsusername
- the user name, or null
for all usersnormalize
- null for no weight normalization (a count is returned), FALSE
for 0-100 normalization,
TRUE
for logarithmic 0-100 normalizationpublic static void normalizeCloud(List<Tag> cloud, int min, int max, boolean linear)
Copyright © 2018 Nuxeo. All rights reserved.