Package org.nuxeo.ecm.platform.tag
Class FacetedTagService
java.lang.Object
org.nuxeo.ecm.platform.tag.AbstractTagService
org.nuxeo.ecm.platform.tag.FacetedTagService
- All Implemented Interfaces:
TagService
Implementation of the tag service based on facet
- Since:
- 9.3
-
Nested Class Summary
Nested classes/interfaces inherited from class org.nuxeo.ecm.platform.tag.AbstractTagService
AbstractTagService.PAGE_PROVIDERS
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Context data to disable versioning, used by NoVersioningFacetedTagFilter.static final String
static final String
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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canUntag
(CoreSession session, String docId, String label) Returns whether or not the current session can untag tag on provided document.void
doCopyTags
(CoreSession session, String srcDocId, String dstDocId, boolean removeExistingTags) doGetTagDocumentIds
(CoreSession session, String label) doGetTags
(CoreSession session, String docId) doGetTagSuggestions
(CoreSession session, String label) void
doTag
(CoreSession session, String docId, String label, String username) void
doUntag
(CoreSession session, String docId, String label) protected List<Map<String,
Serializable>> getTags
(DocumentModel docModel) protected void
saveDocument
(CoreSession session, DocumentModel doc) protected void
setTags
(DocumentModel docModel, List<Map<String, Serializable>> tags) boolean
supportsTag
(CoreSession session, String docId) Checks if document support tag.Methods inherited from class org.nuxeo.ecm.platform.tag.AbstractTagService
cleanLabel, cleanUsername, copyTags, copyTags, fireUpdateEvent, getItems, getSuggestions, getTagDocumentIds, getTags, isEnabled, isTagSanitizationEnabled, removeTags, replaceTags, tag, untag
-
Field Details
-
LABEL_PROPERTY
- See Also:
-
USERNAME_PROPERTY
- See Also:
-
DISABLE_VERSIONING
Context data to disable versioning, used by NoVersioningFacetedTagFilter.- Since:
- 9.10
- See Also:
-
-
Constructor Details
-
FacetedTagService
public FacetedTagService()
-
-
Method Details
-
supportsTag
Description copied from interface:TagService
Checks if document support tag. -
saveDocument
-
doTag
- Specified by:
doTag
in classAbstractTagService
-
doUntag
- Specified by:
doUntag
in classAbstractTagService
-
canUntag
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
-
doGetTags
- Specified by:
doGetTags
in classAbstractTagService
-
doCopyTags
public void doCopyTags(CoreSession session, String srcDocId, String dstDocId, boolean removeExistingTags) - Specified by:
doCopyTags
in classAbstractTagService
-
doGetTagDocumentIds
- Specified by:
doGetTagDocumentIds
in classAbstractTagService
-
doGetTagSuggestions
- Specified by:
doGetTagSuggestions
in classAbstractTagService
-
getTags
-
setTags
-