|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.widgets.A_CmsWidget
org.opencms.widgets.A_CmsSelectWidget
org.opencms.widgets.CmsSelectWidget
org.opencms.widgets.CmsSelectGroupWidget
public class CmsSelectGroupWidget
Provides a widget for group selection select boxes.
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.
Field Summary | |
---|---|
protected static String |
CONFIGURATION_GROUPFILTER
Configuration option key: group filter. |
protected static String |
CONFIGURATION_GROUPS
Configuration option key: groups. |
protected static String |
CONFIGURATION_INCLUDESUBOUS
Configuration option key: include sub OUs. |
protected static String |
CONFIGURATION_OUFQN
Configuration option key: OU fully qualified name. |
Fields inherited from class org.opencms.widgets.A_CmsWidget |
---|
HELP_POSTFIX, LABEL_PREFIX |
Constructor Summary | |
---|---|
CmsSelectGroupWidget()
Creates a new group select widget. |
|
CmsSelectGroupWidget(String configuration)
Creates a group select widget with the specified select options. |
Method Summary | |
---|---|
I_CmsWidget |
newInstance()
Creates a duplicate of this widget instance. |
protected List<CmsSelectWidgetOption> |
parseSelectOptions(CmsObject cms,
I_CmsWidgetDialog widgetDialog,
I_CmsWidgetParameter param)
Returns the select options for the widget, generated from the configured input fields of the XML content. |
Methods inherited from class org.opencms.widgets.CmsSelectWidget |
---|
getDialogWidget, getWidgetStringValue |
Methods inherited from class org.opencms.widgets.A_CmsSelectWidget |
---|
addSelectOption, getConfiguration, getSelectedValue, getSelectedValues, getSelectOptions, setSelectOptions |
Methods inherited from class org.opencms.widgets.A_CmsWidget |
---|
equals, getDialogHtmlEnd, getDialogIncludes, getDialogInitCall, getDialogInitMethod, getHelpBubble, getHelpKey, getHelpText, getJsHelpMouseHandler, getJSIncludeFile, getLabelKey, hashCode, setConfiguration, setEditorValue |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final String CONFIGURATION_GROUPFILTER
protected static final String CONFIGURATION_GROUPS
protected static final String CONFIGURATION_INCLUDESUBOUS
protected static final String CONFIGURATION_OUFQN
Constructor Detail |
---|
public CmsSelectGroupWidget()
public CmsSelectGroupWidget(String configuration)
configuration
- the configuration (possible options) for the group select boxMethod Detail |
---|
public I_CmsWidget newInstance()
I_CmsWidget
newInstance
in interface I_CmsWidget
newInstance
in class CmsSelectWidget
I_CmsWidget.newInstance()
protected List<CmsSelectWidgetOption> parseSelectOptions(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param)
parseSelectOptions
in class A_CmsSelectWidget
cms
- the current users OpenCms contextwidgetDialog
- the dialog of this widgetparam
- the widget parameter of this dialog
A_CmsSelectWidget.parseSelectOptions(org.opencms.file.CmsObject, org.opencms.widgets.I_CmsWidgetDialog, org.opencms.widgets.I_CmsWidgetParameter)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |