Class CmsPrincipalSelect
java.lang.Object
com.vaadin.server.AbstractClientConnector
com.vaadin.ui.AbstractComponent
com.vaadin.ui.CustomComponent
org.opencms.ui.dialogs.permissions.CmsPrincipalSelect
- All Implemented Interfaces:
com.vaadin.event.ContextClickEvent.ContextClickNotifier,com.vaadin.event.MethodEventSource,com.vaadin.event.SerializableEventListener,com.vaadin.server.ClientConnector,com.vaadin.server.Sizeable,com.vaadin.shared.Connector,com.vaadin.ui.Component,com.vaadin.ui.Component.Focusable,com.vaadin.ui.HasComponents,com.vaadin.v7.data.Buffered,com.vaadin.v7.data.BufferedValidatable,com.vaadin.v7.data.Property<String>,com.vaadin.v7.data.Property.Editor,com.vaadin.v7.data.Property.ValueChangeListener,com.vaadin.v7.data.Property.ValueChangeNotifier,com.vaadin.v7.data.Property.Viewer,com.vaadin.v7.data.Validatable,com.vaadin.v7.ui.Field<String>,Serializable,Iterable<com.vaadin.ui.Component>,EventListener,I_CmsPrincipalSelect
public class CmsPrincipalSelect
extends com.vaadin.ui.CustomComponent
implements com.vaadin.v7.ui.Field<String>, I_CmsPrincipalSelect
The principal select widget.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceHandles the principal selection.static enumType of principal.static enumThe widget types.Nested classes/interfaces inherited from interface com.vaadin.v7.data.Buffered
com.vaadin.v7.data.Buffered.SourceExceptionNested classes/interfaces inherited from interface com.vaadin.server.ClientConnector
com.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListenerNested classes/interfaces inherited from interface com.vaadin.ui.Component
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.ListenerNested classes/interfaces inherited from interface com.vaadin.v7.ui.Field
com.vaadin.v7.ui.Field.ValueChangeEventNested classes/interfaces inherited from interface com.vaadin.ui.HasComponents
com.vaadin.ui.HasComponents.ComponentAttachDetachNotifier, com.vaadin.ui.HasComponents.ComponentAttachEvent, com.vaadin.ui.HasComponents.ComponentAttachListener, com.vaadin.ui.HasComponents.ComponentDetachEvent, com.vaadin.ui.HasComponents.ComponentDetachListenerNested classes/interfaces inherited from interface com.vaadin.v7.data.Property
com.vaadin.v7.data.Property.Editor, com.vaadin.v7.data.Property.ReadOnlyException, com.vaadin.v7.data.Property.ReadOnlyStatusChangeEvent, com.vaadin.v7.data.Property.ReadOnlyStatusChangeListener, com.vaadin.v7.data.Property.ReadOnlyStatusChangeNotifier, com.vaadin.v7.data.Property.Transactional<T>, com.vaadin.v7.data.Property.ValueChangeListener, com.vaadin.v7.data.Property.ValueChangeNotifier, com.vaadin.v7.data.Property.ViewerNested classes/interfaces inherited from interface com.vaadin.server.Sizeable
com.vaadin.server.Sizeable.Unit -
Field Summary
Fields inherited from class com.vaadin.ui.AbstractComponent
DESIGN_ATTR_PLAIN_TEXTFields inherited from interface com.vaadin.server.Sizeable
SIZE_UNDEFINED, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(com.vaadin.v7.data.Property.ValueChangeListener listener) voidaddValidator(com.vaadin.v7.data.Validator validator) voidaddValueChangeListener(com.vaadin.v7.data.Property.ValueChangeListener listener) voidclear()protected voidCloses the principal select dialog window if present.voidcommit()voiddiscard()voidfocus()com.vaadin.v7.data.PropertyintgetType()Collection<com.vaadin.v7.data.Validator> getValue()voidhandlePrincipal(I_CmsPrincipal principal) Handles a selected principal.booleanbooleanisEmpty()booleanbooleanbooleanbooleanbooleanbooleanisValid()voidvoidremoveListener(com.vaadin.v7.data.Property.ValueChangeListener listener) voidremoveValidator(com.vaadin.v7.data.Validator validator) voidremoveValueChangeListener(com.vaadin.v7.data.Property.ValueChangeListener listener) voidsetBuffered(boolean buffered) voidsetIncludeWebOus(boolean include) Set if web Ous should be included.voidsetInvalidAllowed(boolean invalidValueAllowed) voidsetInvalidCommitted(boolean isCommitted) voidsetMargin(boolean enabled) Enable layout margins.voidSet the ou.voidsetOuChangeEnabled(boolean enabled) protected voidsetPrincipal(int type, String principalName) Sets the principal type and name.voidsetPrincipalType(String type) Sets the principal type and clears the name.voidsetPropertyDataSource(com.vaadin.v7.data.Property newDataSource) voidsetReadOnly(boolean readOnly) voidsetRealPrincipalsOnly(boolean realOnly) Controls whether only real users/groups or also pseudo-principals like ALL_OTHERS should be shown.voidsetRequired(boolean required) voidsetRequiredError(String requiredMessage) voidsetRoleSelectionAllowed(boolean editRoles) Enables/disables selection of the 'Roles' prinipal type.voidsetSelectHandler(CmsPrincipalSelect.I_PrincipalSelectHandler selectHandler) Sets the principal select handler.voidsetTabIndex(int tabIndex) voidvoidSets the widget type.voidvalidate()voidvalueChange(com.vaadin.v7.data.Property.ValueChangeEvent event) Methods inherited from class com.vaadin.ui.CustomComponent
getComponentCount, getCompositionRoot, getState, getState, iterator, setCompositionRootMethods inherited from class com.vaadin.ui.AbstractComponent
addContextClickListener, addListener, addShortcutListener, addStyleName, attach, beforeClientResponse, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, getActionManager, getCaption, getComponentError, getCustomAttributes, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isEnabled, isOrHasAncestor, isRequiredIndicatorVisible, isResponsive, isVisible, readDesign, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setDescription, setEnabled, setHeight, setHeight, setHeightFull, setHeightUndefined, setIcon, setId, setLocale, setParent, setPrimaryStyleName, setRequiredIndicatorVisible, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidth, setWidthFull, setWidthUndefined, writeDesignMethods inherited from class com.vaadin.server.AbstractClientConnector
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource, updateDiffstateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.server.ClientConnector
addAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlerMethods inherited from interface com.vaadin.ui.Component
addListener, addStyleName, addStyleNames, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, readDesign, removeListener, removeStyleName, removeStyleNames, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setStyleName, setStyleName, setVisible, writeDesignMethods inherited from interface com.vaadin.shared.Connector
getConnectorIdMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface com.vaadin.server.Sizeable
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeightFull, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull, setWidthUndefined
-
Constructor Details
-
CmsPrincipalSelect
public CmsPrincipalSelect()Constructor.
-
-
Method Details
-
addListener
- Specified by:
addListenerin interfacecom.vaadin.v7.data.Property.ValueChangeNotifier- See Also:
-
addValidator
- Specified by:
addValidatorin interfacecom.vaadin.v7.data.Validatable- See Also:
-
addValueChangeListener
- Specified by:
addValueChangeListenerin interfacecom.vaadin.v7.data.Property.ValueChangeNotifier- See Also:
-
clear
- Specified by:
clearin interfacecom.vaadin.v7.ui.Field<String>- See Also:
-
commit
public void commit() throws com.vaadin.v7.data.Buffered.SourceException, com.vaadin.v7.data.Validator.InvalidValueException- Specified by:
commitin interfacecom.vaadin.v7.data.Buffered- Throws:
com.vaadin.v7.data.Buffered.SourceExceptioncom.vaadin.v7.data.Validator.InvalidValueException- See Also:
-
discard
- Specified by:
discardin interfacecom.vaadin.v7.data.Buffered- Throws:
com.vaadin.v7.data.Buffered.SourceException- See Also:
-
focus
- Specified by:
focusin interfacecom.vaadin.ui.Component.Focusable- Overrides:
focusin classcom.vaadin.ui.AbstractComponent- See Also:
-
getPropertyDataSource
- Specified by:
getPropertyDataSourcein interfacecom.vaadin.v7.data.Property.Viewer- See Also:
-
getRequiredError
- Specified by:
getRequiredErrorin interfacecom.vaadin.v7.ui.Field<String>- See Also:
-
getTabIndex
- Specified by:
getTabIndexin interfacecom.vaadin.ui.Component.Focusable- See Also:
-
getType
- Specified by:
getTypein interfacecom.vaadin.v7.data.Property<String>- See Also:
-
getValidators
- Specified by:
getValidatorsin interfacecom.vaadin.v7.data.Validatable- See Also:
-
getValue
- Specified by:
getValuein interfacecom.vaadin.v7.data.Property<String>- See Also:
-
handlePrincipal
Description copied from interface:I_CmsPrincipalSelectHandles a selected principal.- Specified by:
handlePrincipalin interfaceI_CmsPrincipalSelect- Parameters:
principal- which were selected- See Also:
-
isBuffered
- Specified by:
isBufferedin interfacecom.vaadin.v7.data.Buffered- See Also:
-
isEmpty
- Specified by:
isEmptyin interfacecom.vaadin.v7.ui.Field<String>- See Also:
-
isInvalidAllowed
- Specified by:
isInvalidAllowedin interfacecom.vaadin.v7.data.Validatable- See Also:
-
isInvalidCommitted
- Specified by:
isInvalidCommittedin interfacecom.vaadin.v7.data.BufferedValidatable- See Also:
-
isModified
- Specified by:
isModifiedin interfacecom.vaadin.v7.data.Buffered- See Also:
-
isReadOnly
- Specified by:
isReadOnlyin interfacecom.vaadin.v7.data.Property<String>- Overrides:
isReadOnlyin classcom.vaadin.ui.AbstractComponent
-
isRequired
- Specified by:
isRequiredin interfacecom.vaadin.v7.ui.Field<String>- See Also:
-
isValid
- Specified by:
isValidin interfacecom.vaadin.v7.data.Validatable- See Also:
-
removeAllValidators
- Specified by:
removeAllValidatorsin interfacecom.vaadin.v7.data.Validatable- See Also:
-
removeListener
- Specified by:
removeListenerin interfacecom.vaadin.v7.data.Property.ValueChangeNotifier- See Also:
-
removeValidator
- Specified by:
removeValidatorin interfacecom.vaadin.v7.data.Validatable- See Also:
-
removeValueChangeListener
- Specified by:
removeValueChangeListenerin interfacecom.vaadin.v7.data.Property.ValueChangeNotifier- See Also:
-
setBuffered
- Specified by:
setBufferedin interfacecom.vaadin.v7.data.Buffered- See Also:
-
setIncludeWebOus
Set if web Ous should be included. Default behavior is true.- Parameters:
include- boolean
-
setInvalidAllowed
- Specified by:
setInvalidAllowedin interfacecom.vaadin.v7.data.Validatable- Throws:
UnsupportedOperationException- See Also:
-
setInvalidCommitted
- Specified by:
setInvalidCommittedin interfacecom.vaadin.v7.data.BufferedValidatable- See Also:
-
setMargin
Enable layout margins. Affects all four sides of the layout. This will tell the client-side implementation to leave extra space around the layout. The client-side implementation decides the actual amount, and it can vary between themes.- Parameters:
enabled-trueif margins should be enabled on all sides, false to disable all margins
-
setOU
Set the ou.- Parameters:
ou- to choose principals for
-
setOuChangeEnabled
-
setPrincipalType
Sets the principal type and clears the name.- Parameters:
type- the principal type
-
setPropertyDataSource
- Specified by:
setPropertyDataSourcein interfacecom.vaadin.v7.data.Property.Viewer- See Also:
-
setReadOnly
- Specified by:
setReadOnlyin interfacecom.vaadin.v7.data.Property<String>- Overrides:
setReadOnlyin classcom.vaadin.ui.AbstractComponent
-
setRealPrincipalsOnly
Controls whether only real users/groups or also pseudo-principals like ALL_OTHERS should be shown.- Parameters:
realOnly- if true, only real users / groups will be shown
-
setRequired
- Specified by:
setRequiredin interfacecom.vaadin.v7.ui.Field<String>- See Also:
-
setRequiredError
- Specified by:
setRequiredErrorin interfacecom.vaadin.v7.ui.Field<String>- See Also:
-
setRoleSelectionAllowed
Enables/disables selection of the 'Roles' prinipal type.- Parameters:
editRoles- true if the user should be allowed to select roles
-
setSelectHandler
Sets the principal select handler.- Parameters:
selectHandler- the principal select handler
-
setTabIndex
- Specified by:
setTabIndexin interfacecom.vaadin.ui.Component.Focusable- See Also:
-
setValue
- Specified by:
setValuein interfacecom.vaadin.v7.data.Property<String>- Throws:
com.vaadin.v7.data.Property.ReadOnlyException- See Also:
-
setWidgetType
Sets the widget type.- Parameters:
type- the widget type
-
validate
- Specified by:
validatein interfacecom.vaadin.v7.data.Validatable- Throws:
com.vaadin.v7.data.Validator.InvalidValueException- See Also:
-
valueChange
- Specified by:
valueChangein interfacecom.vaadin.v7.data.Property.ValueChangeListener- See Also:
-
closeWindow
Closes the principal select dialog window if present. -
setPrincipal
Sets the principal type and name.- Parameters:
type- the principal typeprincipalName- the principal name
-