@Name(value="tagActions") @Scope(value=CONVERSATION) public class TagActionsBean extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
DOCUMENTS_IMPORTED |
static String |
SELECTION_EDITED |
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.
|
void |
addTagsOnEvent(List<DocumentModel> documents,
DocumentModel docModel) |
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)
Deprecated.
since 5.7.3. The proxy is tagged itself.
|
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 |
setListLabel(String listLabel) |
void |
setTagLabel(String tagLabel) |
void |
showAddTag(javax.faces.event.ActionEvent event)
Used to decide whether the tagging UI field is shown or not.
|
public static final String TAG_SEARCH_RESULT_PAGE
public static final String SELECTION_EDITED
public static final String DOCUMENTS_IMPORTED
@Factory(value="tagServiceEnabled", scope=APPLICATION) public boolean isTagServiceEnabled() throws ClientException
ClientException
@Factory(value="currentDocumentTags", scope=EVENT) public List<Tag> getDocumentTags() throws ClientException
ClientException
@Deprecated 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 void setListLabel(String listLabel)
public boolean canModifyTag(Tag tag)
public void reset()
public void showAddTag(javax.faces.event.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={"selectionEdited","documentImported"}) public void addTagsOnEvent(List<DocumentModel> documents, DocumentModel docModel) throws ClientException
ClientException
@Observer(value="documentSelectionChanged", create=false) @BypassInterceptors public void documentChanged()
Copyright © 2015 Nuxeo SA. All rights reserved.