@Name(value="tagActions") @Scope(value=CONVERSATION) public class TagActionsBean extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
TAG_SEARCH_RESULT_PAGE |
Constructor and Description |
---|
TagActionsBean() |
Modifier and Type | Method and Description |
---|---|
String |
addTagging()
Performs the tagging on the current document.
|
boolean |
canModifyTag(Tag tag)
Returns true if the current logged user has permission to modify
a tag that is applied on the current document.
|
void |
documentChanged() |
boolean |
getAddTag() |
DocumentModelList |
getChildrenSelectModel() |
static String |
getDocIdForTag(DocumentModel doc)
Gets the doc id to use with the tag service for a given document.
|
List<Tag> |
getDocumentTags()
Returns the list with distinct public tags (or owned by user) that are
applied on the current document.
|
String |
getListLabel() |
List<Tag> |
getPopularCloudOnAllDocuments()
Returns tag cloud info for the whole repository.
|
List<Tag> |
getSuggestions(Object input) |
String |
getTagLabel() |
boolean |
isTagServiceEnabled() |
String |
listDocumentsForTag(String listLabel) |
String |
removeTagging(String label)
Removes a tagging from the current document.
|
void |
reset()
Resets the fields that are used for managing actions related to tagging.
|
void |
setAddTag(boolean addTag) |
void |
setTagLabel(String tagLabel) |
void |
showAddTag(ActionEvent event)
Used to decide whether the tagging UI field is shown or not.
|
public static final String TAG_SEARCH_RESULT_PAGE
@Factory(value="tagServiceEnabled", scope=APPLICATION) public boolean isTagServiceEnabled() throws ClientException
ClientException
@Factory(value="currentDocumentTags", scope=EVENT) public List<Tag> getDocumentTags() throws ClientException
ClientException
public static String getDocIdForTag(DocumentModel doc)
Proxies are not tagged directly, their underlying document is.
public String addTagging() throws ClientException
ClientException
public String removeTagging(String label) throws ClientException
ClientException
@Factory(value="tagCloudOnAllDocuments", scope=EVENT) public List<Tag> getPopularCloudOnAllDocuments() throws ClientException
ClientException
public String listDocumentsForTag(String listLabel) throws ClientException
ClientException
@Factory(value="taggedDocuments", scope=EVENT) public DocumentModelList getChildrenSelectModel() throws ClientException
ClientException
public String getListLabel()
public boolean canModifyTag(Tag tag)
public void reset()
public void showAddTag(ActionEvent event)
public String getTagLabel()
public void setTagLabel(String tagLabel)
public boolean getAddTag()
public void setAddTag(boolean addTag)
public List<Tag> getSuggestions(Object input) throws ClientException
ClientException
@Observer(value="documentSelectionChanged", create=false) @BypassInterceptors public void documentChanged()
Copyright © 2011 Nuxeo SA. All Rights Reserved.