|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.ecm.platform.tag.web.TagActionsBean
@Name(value="tagActions") @Scope(value=CONVERSATION) public class TagActionsBean
This Seam bean provides support for tagging related actions which can be made on the current document.
Field Summary | |
---|---|
static java.lang.String |
TAG_SEARCH_RESULT_PAGE
|
Constructor Summary | |
---|---|
TagActionsBean()
|
Method Summary | |
---|---|
java.lang.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 java.lang.String |
getDocIdForTag(DocumentModel doc)
Gets the doc id to use with the tag service for a given document. |
java.util.List<Tag> |
getDocumentTags()
Returns the list with distinct public tags (or owned by user) that are applied on the current document. |
java.lang.String |
getListLabel()
|
java.util.List<Tag> |
getPopularCloudOnAllDocuments()
Returns tag cloud info for the whole repository. |
java.util.List<Tag> |
getSuggestions(java.lang.Object input)
|
java.lang.String |
getTagLabel()
|
boolean |
isTagServiceEnabled()
|
java.lang.String |
listDocumentsForTag(java.lang.String listLabel)
|
java.lang.String |
removeTagging(java.lang.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(java.lang.String tagLabel)
|
void |
showAddTag(javax.faces.event.ActionEvent event)
Used to decide whether the tagging UI field is shown or not. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String TAG_SEARCH_RESULT_PAGE
Constructor Detail |
---|
public TagActionsBean()
Method Detail |
---|
@Factory(value="tagServiceEnabled", scope=APPLICATION) public boolean isTagServiceEnabled() throws ClientException
ClientException
@Factory(value="currentDocumentTags", scope=EVENT) public java.util.List<Tag> getDocumentTags() throws ClientException
ClientException
public static java.lang.String getDocIdForTag(DocumentModel doc)
Proxies are not tagged directly, their underlying document is.
public java.lang.String addTagging() throws ClientException
ClientException
public java.lang.String removeTagging(java.lang.String label) throws ClientException
ClientException
@Factory(value="tagCloudOnAllDocuments", scope=EVENT) public java.util.List<Tag> getPopularCloudOnAllDocuments() throws ClientException
ClientException
public java.lang.String listDocumentsForTag(java.lang.String listLabel) throws ClientException
ClientException
@Factory(value="taggedDocuments", scope=EVENT) public DocumentModelList getChildrenSelectModel() throws ClientException
ClientException
public java.lang.String getListLabel()
public boolean canModifyTag(Tag tag) throws ClientException
ClientException
public void reset()
public void showAddTag(javax.faces.event.ActionEvent event)
public java.lang.String getTagLabel()
public void setTagLabel(java.lang.String tagLabel)
public boolean getAddTag()
public void setAddTag(boolean addTag)
public java.util.List<Tag> getSuggestions(java.lang.Object input) throws ClientException
ClientException
@Observer(value="documentSelectionChanged", create=false) @BypassInterceptors public void documentChanged()
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |