public interface NewFolksonomyService
Modifier and Type | Field and Description |
---|---|
static String |
EXO_TAGGED
Property name EXO_TAGGED
|
static String |
EXO_TAGSTYLE
Property name EXO_TAGSTYLE
|
static String |
EXO_TOTAL
Property name EXO_TOTAL
|
static String |
EXO_UUID
Property name EXO_UUID
|
static int |
GROUP
Property name GROUP
|
static String |
HTML_STYLE_PROP
Property name HTML_STYLE_PROP
|
static int |
PRIVATE
Property name PRIVATE
|
static int |
PUBLIC
Property name PUBLIC
|
static int |
SITE
Property name SITE
|
static String |
TAG_RATE_PROP
Property name TAG_RATE_PROP
|
Modifier and Type | Method and Description |
---|---|
void |
addGroupsTag(String[] tagsName,
javax.jcr.Node documentNode,
String workspace,
String[] roles)
Adds a group tag to a document.
|
void |
addPrivateTag(String[] tagsName,
javax.jcr.Node documentNode,
String workspace,
String userName)
Adds a private tag to a document.
|
void |
addPublicTag(String treePath,
String[] tagsName,
javax.jcr.Node documentNode,
String workspace)
Adds a public tag to a document.
|
void |
addSiteTag(String siteName,
String[] tagsName,
javax.jcr.Node node,
String workspace)
Adds a site tag to a document.
|
void |
addTagPermission(String usersOrGroups)
Adds a given user or group to the list of tag permissions.
|
void |
addTagStyle(String styleName,
String tagRange,
String htmlStyle,
String workspace)
Adds a tag style.
|
boolean |
canEditTag(int scope,
List<String> memberships)
Checks if a given user has the "edit tag" permission.
|
List<javax.jcr.Node> |
getAllDocumentsByTag(String tagPath,
String workspace,
SessionProvider sessionProvider)
Gets all documents which are marked with a given tag.
|
List<javax.jcr.Node> |
getAllGroupTags(String[] role,
String workspace)
Gets all tags of groups that a given user belongs to.
|
List<javax.jcr.Node> |
getAllGroupTags(String role,
String workspace)
Gets all tags of a group that a given user belongs to.
|
List<javax.jcr.Node> |
getAllPrivateTags(String userName)
Gets all private tags of a given user.
|
List<javax.jcr.Node> |
getAllPublicTags(String treePath,
String workspace)
Gets all public tags.
|
List<javax.jcr.Node> |
getAllSiteTags(String siteName,
String workspace)
Gets all site tags.
|
List<String> |
getAllTagNames(String workspace,
int scope,
String value)
Gets names of all tags under a given scope.
|
List<javax.jcr.Node> |
getAllTagStyle(String workspace)
Gets all tag styles of a folksonomy tree.
|
org.exoplatform.services.jcr.ext.distribution.DataDistributionType |
getDataDistributionType()
Gets a type of data distribution.
|
List<javax.jcr.Node> |
getLinkedTagsOfDocument(javax.jcr.Node documentNode,
String workspace)
Gets all tags linked to a given document.
|
List<javax.jcr.Node> |
getLinkedTagsOfDocumentByScope(int scope,
String value,
javax.jcr.Node documentNode,
String workspace)
Get all tags linked to a given document by scope.
|
List<String> |
getTagPermissionList()
Gets a list of users and groups who have the tag permission.
|
String |
getTagStyle(String tagPath,
String workspace)
Gets a tag style.
|
void |
init()
Initializes all tag style plugins.
|
javax.jcr.Node |
modifyPublicTagName(String tagPath,
String newTagName,
String workspace,
String treeTagPath)
Renames a public tag.
|
javax.jcr.Node |
modifyTagName(String tagPath,
String newTagName,
String workspace)
Renames a tag.
|
void |
removeTag(String tagPath,
String workspace)
Removes a tag.
|
void |
removeTagOfDocument(String tagPath,
javax.jcr.Node document,
String workspace)
Removes tag from a given document.
|
void |
removeTagPermission(String usersOrGroups)
Removes a given user or group from the list of tag permissions.
|
void |
removeTagsOfNodeRecursively(javax.jcr.Node node,
String workspace,
String username,
String groups)
Removes all tags linked to the child nodes of a given node.
|
void |
updateTagStyle(String styleName,
String tagRange,
String htmlStyle,
String workspace)
Updates a tag style.
|
static final String TAG_RATE_PROP
static final String HTML_STYLE_PROP
static final String EXO_TOTAL
static final String EXO_TAGGED
static final String EXO_UUID
static final String EXO_TAGSTYLE
static final int PUBLIC
static final int GROUP
static final int SITE
static final int PRIVATE
void addPrivateTag(String[] tagsName, javax.jcr.Node documentNode, String workspace, String userName) throws Exception
tagsName
- The array of tag names.documentNode
- The document node to which the private tag is added.workspace
- Name of the workspace that contains the document node.userName
- The user who added the private tag.Exception
- The exceptionvoid addGroupsTag(String[] tagsName, javax.jcr.Node documentNode, String workspace, String[] roles) throws Exception
tagsName
- The array of tag names.documentNode
- The document node to which the group tag is added.workspace
- Name of the workspace that contains the document node.roles
- Roles of the user who added the group tag.Exception
- The exceptionvoid addPublicTag(String treePath, String[] tagsName, javax.jcr.Node documentNode, String workspace) throws Exception
treePath
- Path of the folksonomy tree.tagsName
- The array of the tag names.documentNode
- The document node to which the public tag is added.workspace
- Name of the workspace that contains the document node.Exception
- The exceptionvoid addSiteTag(String siteName, String[] tagsName, javax.jcr.Node node, String workspace) throws Exception
siteName
- The site name.tagsName
- The array of tag names.node
- The document node to which the site tag is added.workspace
- Name of the workspace that contains the document node.Exception
- The exceptionList<javax.jcr.Node> getAllPrivateTags(String userName) throws Exception
userName
- Name of the given user.Exception
- The exceptionList<javax.jcr.Node> getAllPublicTags(String treePath, String workspace) throws Exception
treePath
- Path of the folksonomy tree.workspace
- Name of the workspace that contains public tags.Exception
- The exceptionList<javax.jcr.Node> getAllGroupTags(String[] role, String workspace) throws Exception
role
- Roles of the given user.workspace
- Name of the workspace that contains tags.Exception
- The exceptionList<javax.jcr.Node> getAllGroupTags(String role, String workspace) throws Exception
role
- Roles of the given user.workspace
- Name of the workspace that contains tags.Exception
- The exceptionList<javax.jcr.Node> getAllSiteTags(String siteName, String workspace) throws Exception
siteName
- The site name.workspace
- Name of the workspace that contains the site tags.Exception
- The exceptionList<javax.jcr.Node> getAllDocumentsByTag(String tagPath, String workspace, SessionProvider sessionProvider) throws Exception
tagPath
- Path of the given tag.workspace
- Name of the workspace that contains the given tag.sessionProvider
- The session provider.Exception
- The exceptionString getTagStyle(String tagPath, String workspace) throws Exception
tagPath
- Path to the tag.workspace
- Name of the workspace that contains the tag.Exception
- The exceptionvoid addTagStyle(String styleName, String tagRange, String htmlStyle, String workspace) throws Exception
styleName
- Name of the tag style.tagRange
- The number of times the tag is used for the tag style.htmlStyle
- The tag style.workspace
- Name of the workspace that contains the tag style.Exception
- The exceptionvoid updateTagStyle(String styleName, String tagRange, String htmlStyle, String workspace) throws Exception
styleName
- Name of the tag style.tagRange
- The number of times the tag is used for the tag style.htmlStyle
- The tag style.workspace
- Name of the workspace that contains the tag style.Exception
- The exceptionList<javax.jcr.Node> getAllTagStyle(String workspace) throws Exception
workspace
- Name of the workspace that contains the tag styles.Exception
- The exceptionvoid init() throws Exception
Exception
- The exceptionvoid removeTagOfDocument(String tagPath, javax.jcr.Node document, String workspace) throws Exception
tagPath
- Path of the tag.document
- The document from which the tag is removed.Exception
- The exceptionvoid removeTag(String tagPath, String workspace) throws Exception
tagPath
- Path of the tag.workspace
- Name of the workspace that contains the removed tag.Exception
- The exceptionjavax.jcr.Node modifyTagName(String tagPath, String newTagName, String workspace) throws Exception
tagPath
- Path of the tag.newTagName
- New name of the tag.workspace
- Name of the workspace that contains the renamed tag.Exception
- The exceptionjavax.jcr.Node modifyPublicTagName(String tagPath, String newTagName, String workspace, String treeTagPath) throws Exception
tagPath
- Path of the public tag.newTagName
- New name of the public tag.workspace
- Name of the workspace that contains the renamed public tag.treeTagPath
- Path of the folksonomy tree.Exception
- The exceptionList<javax.jcr.Node> getLinkedTagsOfDocument(javax.jcr.Node documentNode, String workspace) throws Exception
documentNode
- The document node.workspace
- Name of the workspace that contains all tags.Exception
- The exceptionList<javax.jcr.Node> getLinkedTagsOfDocumentByScope(int scope, String value, javax.jcr.Node documentNode, String workspace) throws Exception
scope
- The tag's scope.documentNode
- The document node.workspace
- Name of the workspace that contains all tags.Exception
- The exceptionvoid removeTagsOfNodeRecursively(javax.jcr.Node node, String workspace, String username, String groups) throws Exception
node
- The given node.workspace
- Name of the workspace that contains all tags.username
- The user who removed all tags.Exception
- The exceptionvoid addTagPermission(String usersOrGroups)
usersOrGroups
- Name of the given user or group.void removeTagPermission(String usersOrGroups)
usersOrGroups
- Name of the user or group.List<String> getTagPermissionList()
boolean canEditTag(int scope, List<String> memberships)
scope
- The tag's scope.memberships
- The memberships.List<String> getAllTagNames(String workspace, int scope, String value) throws Exception
workspace
- Name of the workspace that contains the tags.scope
- The tags' scope.value
- Path of the folksonomy tree.Exception
- The exceptionorg.exoplatform.services.jcr.ext.distribution.DataDistributionType getDataDistributionType()
Copyright © 2003-2017 eXo Platform SAS. All Rights Reserved.