@Name(value="select2Actions") @Scope(value=EVENT) public class Select2ActionsBean extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected CoreSession |
dedicatedSession |
protected CoreSession |
documentManager |
protected Map<String,String> |
messages |
protected static String |
SELECT2_RESOURCES_MARKER |
Constructor and Description |
---|
Select2ActionsBean() |
Modifier and Type | Method and Description |
---|---|
protected net.sf.json.JSONObject |
createEntryWithWarnMessage(String label,
String warnMessage) |
protected net.sf.json.JSONObject |
createNotFoundEntry(String id) |
void |
destroy() |
String |
encodeParameters(Widget widget) |
String |
encodeParameters(Widget widget,
Map<String,Serializable> resolvedWidgetProperties) |
String |
encodeParameters(Widget widget,
Map<String,String> defaultParams,
Map<String,Serializable> resolvedWidgetProperties)
Encode widget properties and parameters that Select2 pick them up in a hidden input.
|
String |
encodeParametersForDirectory(Widget widget,
Map<String,Serializable> resolvedWidgetProperties) |
String |
encodeParametersForUserSuggestion(Widget widget,
Map<String,Serializable> resolvedWidgetProperties) |
protected static Map<String,String> |
getContextParameter(DocumentModel doc) |
protected DocumentModelJsonWriter |
getDocumentModelWriter(String schemaNames) |
protected LayoutStore |
getLayoutStore() |
protected net.sf.json.JSONArray |
getMultipleDirectoryEntries(Object value,
String directoryName,
boolean localize,
String keySeparator,
boolean dbl10n,
String labelFieldName) |
protected net.sf.json.JSONArray |
getMultipleUserReference(Object value,
boolean prefixed,
String firstLabelField,
String secondLabelField,
String thirdLabelField,
boolean hideFirstLabel,
boolean hideSecondLabel,
boolean hideThirdLabel,
boolean displayEmailInSuggestion,
boolean hideIcon) |
protected String |
getParentAbsoluteLabel(String entryId,
String keySeparator,
Session session,
QName labelFieldName,
boolean localize,
boolean dbl10n) |
protected CoreSession |
getRepositorySession(String repoName) |
protected net.sf.json.JSONObject |
getSingleDirectoryEntry(String storedReference,
String directoryName,
boolean localize,
String keySeparator,
boolean dbl10n,
String labelFieldName) |
protected net.sf.json.JSONObject |
getSingleUserReference(String storedReference,
boolean prefixed,
String firstLabelField,
String secondLabelField,
String thirdLabelField,
boolean hideFirstLabel,
boolean hideSecondLabel,
boolean hideThirdLabel,
boolean displayEmailInSuggestion,
boolean hideIcon) |
boolean |
isMultiSelection(Widget widget) |
boolean |
mustIncludeResources()
Deprecated.
since 7.10: JSF resources mechanism allows to detect resources already included in the page natively.
|
protected void |
processDocumentNotFound(String id,
org.codehaus.jackson.JsonGenerator jg) |
protected net.sf.json.JSONObject |
resolveDirectoryEntry(String storedReference,
String keySeparator,
Session session,
Schema schema,
String label,
boolean localize,
boolean dbl10n) |
String |
resolveMultipleDirectoryEntries(Object value,
String directoryName,
boolean localize,
String keySeparator,
boolean dbl10n,
String labelFieldName) |
List<String> |
resolveMultipleDirectoryEntryLabels(Object value,
String directoryName,
boolean localize,
String keySeparator,
boolean dbl10n,
String labelFieldName) |
List<String> |
resolveMultipleReferenceLabels(Object value,
String repo,
String operationName,
String idProperty,
String label) |
String |
resolveMultipleReferences(Object value,
String repo,
String operationName,
String idProperty,
String schemaNames) |
String |
resolveMultipleUserReference(Object value,
boolean prefixed,
String firstLabelField,
String secondLabelField,
String thirdLabelField,
boolean hideFirstLabel,
boolean hideSecondLabel,
boolean hideThirdLabel,
boolean displayEmailInSuggestion,
boolean hideIcon) |
List<String> |
resolveMultipleUserReferenceLabels(Object value,
boolean prefixed,
String firstLabelField,
String secondLabelField,
String thirdLabelField,
boolean hideFirstLabel,
boolean hideSecondLabel,
boolean hideThirdLabel,
boolean displayEmailInSuggestion,
boolean hideIcon) |
protected DocumentModel |
resolveReference(String repo,
String storedReference,
String operationName,
String idProperty) |
String |
resolveSingleDirectoryEntry(String storedReference,
String directoryName,
boolean localize,
String keySeparator,
boolean dbl10n,
String labelFieldName) |
String |
resolveSingleDirectoryEntryLabel(String storedReference,
String directoryName,
boolean localize,
String keySeparator,
boolean dbl10n,
String labelFieldName) |
String |
resolveSingleReference(String storedReference,
String repo,
String operationName,
String idProperty,
String schemaNames) |
String |
resolveSingleReferenceLabel(String storedReference,
String repo,
String operationName,
String idProperty,
String label) |
String |
resolveSingleUserReference(String storedReference,
boolean prefixed,
String firstLabelField,
String secondLabelField,
String thirdLabelField,
boolean hideFirstLabel,
boolean hideSecondLabel,
boolean hideThirdLabel,
boolean displayEmailInSuggestion,
boolean hideIcon) |
String |
resolveUserReferenceLabel(String storedReference,
boolean prefixed,
String firstLabelField,
String secondLabelField,
String thirdLabelField,
boolean hideFirstLabel,
boolean hideSecondLabel,
boolean hideThirdLabel,
boolean displayEmailInSuggestion,
boolean hideIcon) |
protected static final String SELECT2_RESOURCES_MARKER
@In(create=true, required=false) protected transient CoreSession documentManager
protected transient CoreSession dedicatedSession
public Select2ActionsBean()
@Destroy public void destroy()
protected static Map<String,String> getContextParameter(DocumentModel doc)
public String encodeParametersForUserSuggestion(Widget widget, Map<String,Serializable> resolvedWidgetProperties)
public String encodeParametersForDirectory(Widget widget, Map<String,Serializable> resolvedWidgetProperties)
public String encodeParameters(Widget widget)
public String encodeParameters(Widget widget, Map<String,Serializable> resolvedWidgetProperties)
public String encodeParameters(Widget widget, Map<String,String> defaultParams, Map<String,Serializable> resolvedWidgetProperties)
widget
- the widgetprotected LayoutStore getLayoutStore()
protected net.sf.json.JSONArray getMultipleDirectoryEntries(Object value, String directoryName, boolean localize, String keySeparator, boolean dbl10n, String labelFieldName)
protected net.sf.json.JSONArray getMultipleUserReference(Object value, boolean prefixed, String firstLabelField, String secondLabelField, String thirdLabelField, boolean hideFirstLabel, boolean hideSecondLabel, boolean hideThirdLabel, boolean displayEmailInSuggestion, boolean hideIcon)
protected CoreSession getRepositorySession(String repoName)
protected net.sf.json.JSONObject getSingleDirectoryEntry(String storedReference, String directoryName, boolean localize, String keySeparator, boolean dbl10n, String labelFieldName)
protected net.sf.json.JSONObject getSingleUserReference(String storedReference, boolean prefixed, String firstLabelField, String secondLabelField, String thirdLabelField, boolean hideFirstLabel, boolean hideSecondLabel, boolean hideThirdLabel, boolean displayEmailInSuggestion, boolean hideIcon)
public boolean isMultiSelection(Widget widget)
@Deprecated public boolean mustIncludeResources()
protected net.sf.json.JSONObject createNotFoundEntry(String id)
protected net.sf.json.JSONObject createEntryWithWarnMessage(String label, String warnMessage)
protected net.sf.json.JSONObject resolveDirectoryEntry(String storedReference, String keySeparator, Session session, Schema schema, String label, boolean localize, boolean dbl10n)
protected String getParentAbsoluteLabel(String entryId, String keySeparator, Session session, QName labelFieldName, boolean localize, boolean dbl10n) throws PropertyException
PropertyException
public String resolveMultipleDirectoryEntries(Object value, String directoryName, boolean localize, String keySeparator, boolean dbl10n, String labelFieldName)
public List<String> resolveMultipleDirectoryEntryLabels(Object value, String directoryName, boolean localize, String keySeparator, boolean dbl10n, String labelFieldName)
public List<String> resolveMultipleReferenceLabels(Object value, String repo, String operationName, String idProperty, String label)
public String resolveMultipleReferences(Object value, String repo, String operationName, String idProperty, String schemaNames) throws IOException
IOException
public String resolveMultipleUserReference(Object value, boolean prefixed, String firstLabelField, String secondLabelField, String thirdLabelField, boolean hideFirstLabel, boolean hideSecondLabel, boolean hideThirdLabel, boolean displayEmailInSuggestion, boolean hideIcon)
public List<String> resolveMultipleUserReferenceLabels(Object value, boolean prefixed, String firstLabelField, String secondLabelField, String thirdLabelField, boolean hideFirstLabel, boolean hideSecondLabel, boolean hideThirdLabel, boolean displayEmailInSuggestion, boolean hideIcon)
protected DocumentModel resolveReference(String repo, String storedReference, String operationName, String idProperty)
protected void processDocumentNotFound(String id, org.codehaus.jackson.JsonGenerator jg)
public String resolveSingleDirectoryEntry(String storedReference, String directoryName, boolean localize, String keySeparator, boolean dbl10n, String labelFieldName)
public String resolveSingleDirectoryEntryLabel(String storedReference, String directoryName, boolean localize, String keySeparator, boolean dbl10n, String labelFieldName)
public String resolveSingleReference(String storedReference, String repo, String operationName, String idProperty, String schemaNames) throws IOException
IOException
public String resolveSingleReferenceLabel(String storedReference, String repo, String operationName, String idProperty, String label)
public String resolveSingleUserReference(String storedReference, boolean prefixed, String firstLabelField, String secondLabelField, String thirdLabelField, boolean hideFirstLabel, boolean hideSecondLabel, boolean hideThirdLabel, boolean displayEmailInSuggestion, boolean hideIcon)
public String resolveUserReferenceLabel(String storedReference, boolean prefixed, String firstLabelField, String secondLabelField, String thirdLabelField, boolean hideFirstLabel, boolean hideSecondLabel, boolean hideThirdLabel, boolean displayEmailInSuggestion, boolean hideIcon)
protected DocumentModelJsonWriter getDocumentModelWriter(String schemaNames)
Copyright © 2017 Nuxeo. All rights reserved.