@Name(value="tagSelect2Support") @Scope(value=EVENT) public class TagSelect2Support extends Object
Modifier and Type | Field and Description |
---|---|
protected List<Tag> |
currentDocumentTags |
protected CoreSession |
documentManager |
protected org.jboss.seam.faces.FacesMessages |
facesMessages |
protected String |
label |
protected Map<String,String> |
messages |
protected NavigationContext |
navigationContext |
Constructor and Description |
---|
TagSelect2Support() |
Modifier and Type | Method and Description |
---|---|
String |
addTagging()
Performs the tagging on the current document.
|
protected net.sf.json.JSONObject |
encodeCommonParameters(Map<String,Serializable> widgetProperties) |
protected net.sf.json.JSONObject |
encodeCommonParameters(Map<String,Serializable> widgetProperties,
Map<String,String> additionalParameters) |
String |
encodeParameters(Map<String,Serializable> widgetProperties) |
String |
encodeParametersForCurrentDocument(Map<String,Serializable> widgetProperties) |
List<String> |
getDocumentTagStrings() |
String |
getLabel() |
protected TagService |
getTagService() |
void |
listDocumentsForTag() |
String |
removeTagging() |
protected void |
reset() |
String |
resolveDocumentTags() |
String |
resolveTags(List<String> list) |
String |
resolveTags(String[] array) |
void |
setLabel(String label) |
@In(create=true) protected NavigationContext navigationContext
@In(create=true, required=false) protected transient CoreSession documentManager
@In(create=true, required=false) protected transient org.jboss.seam.faces.FacesMessages facesMessages
@In(create=true, value="currentDocumentTags") protected List<Tag> currentDocumentTags
public TagSelect2Support()
@Factory(value="resolveDocumentTags", scope=EVENT) public String resolveDocumentTags()
public String resolveTags(List<String> list)
public String resolveTags(String[] array)
@Factory(value="documentTagIds", scope=EVENT) public List<String> getDocumentTagStrings()
public String addTagging()
public String removeTagging()
protected void reset()
protected TagService getTagService()
public String encodeParameters(Map<String,Serializable> widgetProperties)
public String encodeParametersForCurrentDocument(Map<String,Serializable> widgetProperties)
protected net.sf.json.JSONObject encodeCommonParameters(Map<String,Serializable> widgetProperties)
protected net.sf.json.JSONObject encodeCommonParameters(Map<String,Serializable> widgetProperties, Map<String,String> additionalParameters)
public void listDocumentsForTag()
Copyright © 2017 Nuxeo. All rights reserved.