public class CmsSelectGroupWidget extends CmsSelectWidget
This widget is configurable with the following options:
groupfilter: regular expression to filter available groupsgroups: comma separated list of group names to show in the select box. Note:
if this configuration option if used,
groupfilter and includesubous are not considered anymore.includesubous: boolean flag to indicate if sub OUs should be scanned for groups to selectoufqn: the fully qualified name of the OU to read the groups from
<mapping element="..." mapto="permission:GROUP:+r+v|GROUP.ALL_OTHERS:|GROUP.Projectmanagers:+r+v+w+c" />
This means that the +r+v permission is written for the principal GROUP on the resource.
Additionally two permissions are written as default: for ALL_OTHERS, no allowed permission is set,
for Projectmanagers, "+r+v+w+c" is set.
A_CmsWidget.CmsDummyWidgetDialog| 限定符和类型 | 字段和说明 |
|---|---|
protected static java.lang.String |
CONFIGURATION_GROUPFILTER
Configuration option key: group filter.
|
protected static java.lang.String |
CONFIGURATION_GROUPS
Configuration option key: groups.
|
protected static java.lang.String |
CONFIGURATION_INCLUDESUBOUS
Configuration option key: include sub OUs.
|
protected static java.lang.String |
CONFIGURATION_OUFQN
Configuration option key: OU fully qualified name.
|
CONFIGURATION_HEIGHTHELP_POSTFIX, LABEL_PREFIX| 构造器和说明 |
|---|
CmsSelectGroupWidget()
Creates a new group select widget.
|
CmsSelectGroupWidget(java.lang.String configuration)
Creates a group select widget with the specified select options.
|
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.String |
getConfiguration(CmsObject cms,
A_CmsXmlContentValue schemaType,
CmsMessages messages,
CmsResource resource,
java.util.Locale contentLocale)
Returns the configuration string for the ADE content editor widget.
|
java.util.List<java.lang.String> |
getCssResourceLinks(CmsObject cms)
Returns a list of CSS resources required by the widget.
|
java.lang.String |
getInitCall()
Returns the java script initialization call.
|
java.util.List<java.lang.String> |
getJavaScriptResourceLinks(CmsObject cms)
Returns a list of java script resources required by the widget.
|
boolean |
isInternal()
Returns if this is an internal widget.
|
I_CmsWidget |
newInstance()
Creates a duplicate of this widget instance.
|
protected java.util.List<CmsSelectWidgetOption> |
parseSelectOptions(CmsObject cms,
CmsMessages messages,
I_CmsWidgetParameter param)
Returns the list of configured select options, parsing the configuration String if required.
|
protected java.util.List<CmsSelectWidgetOption> |
parseSelectOptions(CmsObject cms,
I_CmsWidgetDialog widgetDialog,
I_CmsWidgetParameter param)
Returns the list of configured select options, parsing the configuration String if required.
|
getDialogWidget, getWidgetName, getWidgetStringValueaddSelectOption, getConfiguration, getDefaultDisplayType, getHeight, getResourcePath, getSelectedValue, getSelectedValues, getSelectOptions, setConfiguration, setSelectOptionsequals, getDialogHtmlEnd, getDialogIncludes, getDialogInitCall, getDialogInitMethod, getHelpBubble, getHelpKey, getHelpText, getJsHelpMouseHandler, getJSIncludeFile, getLabelKey, hashCode, isCompactViewEnabled, setEditorValuegetDialogHtmlEnd, getDialogIncludes, getDialogInitCall, getDialogInitMethod, getHelpBubble, getHelpText, isCompactViewEnabled, setEditorValueprotected static final java.lang.String CONFIGURATION_GROUPFILTER
protected static final java.lang.String CONFIGURATION_GROUPS
protected static final java.lang.String CONFIGURATION_INCLUDESUBOUS
protected static final java.lang.String CONFIGURATION_OUFQN
public CmsSelectGroupWidget()
public CmsSelectGroupWidget(java.lang.String configuration)
configuration - the configuration (possible options) for the group select boxpublic java.lang.String getConfiguration(CmsObject cms, A_CmsXmlContentValue schemaType, CmsMessages messages, CmsResource resource, java.util.Locale contentLocale)
I_CmsADEWidgetgetConfiguration 在接口中 I_CmsADEWidgetgetConfiguration 在类中 A_CmsSelectWidgetcms - the OpenCms contextschemaType - the schema typemessages - the messagesresource - the edited resourcecontentLocale - the content localeI_CmsADEWidget.getConfiguration(org.opencms.file.CmsObject, org.opencms.xml.types.A_CmsXmlContentValue, org.opencms.i18n.CmsMessages, org.opencms.file.CmsResource, java.util.Locale)public java.util.List<java.lang.String> getCssResourceLinks(CmsObject cms)
A_CmsSelectWidgetgetCssResourceLinks 在接口中 I_CmsADEWidgetgetCssResourceLinks 在类中 A_CmsSelectWidgetcms - the current OpenCms contextI_CmsADEWidget.getCssResourceLinks(org.opencms.file.CmsObject)public java.lang.String getInitCall()
A_CmsSelectWidgetgetInitCall 在接口中 I_CmsADEWidgetgetInitCall 在类中 A_CmsSelectWidgetI_CmsADEWidget.getInitCall()public java.util.List<java.lang.String> getJavaScriptResourceLinks(CmsObject cms)
A_CmsSelectWidgetgetJavaScriptResourceLinks 在接口中 I_CmsADEWidgetgetJavaScriptResourceLinks 在类中 A_CmsSelectWidgetcms - the current OpenCms contextI_CmsADEWidget.getJavaScriptResourceLinks(org.opencms.file.CmsObject)public boolean isInternal()
A_CmsSelectWidgetOnly widgets belonging to the OpenCms core should be marked as internal.
isInternal 在接口中 I_CmsADEWidgetisInternal 在类中 A_CmsSelectWidgettrue if this is an internal widgetI_CmsADEWidget.isInternal()public I_CmsWidget newInstance()
I_CmsWidgetnewInstance 在接口中 I_CmsWidgetnewInstance 在类中 CmsSelectWidgetI_CmsWidget.newInstance()protected java.util.List<CmsSelectWidgetOption> parseSelectOptions(CmsObject cms, CmsMessages messages, I_CmsWidgetParameter param)
The list elements are of type .
The configuration String is parsed only once and then stored internally.CmsSelectWidgetOption
cms - the current users OpenCms contextmessages - the messages of this dialogparam - the widget parameter of this dialogCmsSelectWidgetOptionprotected java.util.List<CmsSelectWidgetOption> parseSelectOptions(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param)
A_CmsSelectWidget
The list elements are of type .
The configuration String is parsed only once and then stored internally.CmsSelectWidgetOption
parseSelectOptions 在类中 A_CmsSelectWidgetcms - the current users OpenCms contextwidgetDialog - the dialog of this widgetparam - the widget parameter of this dialogA_CmsSelectWidget.parseSelectOptions(org.opencms.file.CmsObject, org.opencms.widgets.I_CmsWidgetDialog, org.opencms.widgets.I_CmsWidgetParameter)