|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
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 String |
TAG_SEARCH_RESULT_PAGE
|
Constructor Summary | |
---|---|
TagActionsBean()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final 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 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()
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |