public class CmsPrincipalSelect extends com.vaadin.ui.CustomComponent implements com.vaadin.v7.ui.Field<java.lang.String>, I_CmsPrincipalSelect
| Modifier and Type | Class and Description |
|---|---|
static interface |
CmsPrincipalSelect.I_PrincipalSelectHandler
Handles the principal selection.
|
static class |
CmsPrincipalSelect.WidgetType
The widget types.
|
com.vaadin.v7.ui.Field.ValueChangeEventcom.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listenercom.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListenercom.vaadin.server.Sizeable.Unitcom.vaadin.v7.data.Buffered.SourceExceptioncom.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.Viewercom.vaadin.ui.HasComponents.ComponentAttachDetachNotifier, com.vaadin.ui.HasComponents.ComponentAttachEvent, com.vaadin.ui.HasComponents.ComponentAttachListener, com.vaadin.ui.HasComponents.ComponentDetachEvent, com.vaadin.ui.HasComponents.ComponentDetachListener| Constructor and Description |
|---|
CmsPrincipalSelect()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(com.vaadin.v7.data.Property.ValueChangeListener listener) |
void |
addValidator(com.vaadin.v7.data.Validator validator) |
void |
addValueChangeListener(com.vaadin.v7.data.Property.ValueChangeListener listener) |
void |
clear() |
protected void |
closeWindow()
Closes the principal select dialog window if present.
|
void |
commit() |
void |
discard() |
void |
focus() |
com.vaadin.v7.data.Property |
getPropertyDataSource() |
java.lang.String |
getRequiredError() |
int |
getTabIndex() |
java.lang.Class<? extends java.lang.String> |
getType() |
java.util.Collection<com.vaadin.v7.data.Validator> |
getValidators() |
java.lang.String |
getValue() |
void |
handlePrincipal(I_CmsPrincipal principal)
Handles a selected principal.
|
boolean |
isBuffered() |
boolean |
isEmpty() |
boolean |
isInvalidAllowed() |
boolean |
isInvalidCommitted() |
boolean |
isModified() |
boolean |
isReadOnly() |
boolean |
isRequired() |
boolean |
isValid() |
void |
removeAllValidators() |
void |
removeListener(com.vaadin.v7.data.Property.ValueChangeListener listener) |
void |
removeValidator(com.vaadin.v7.data.Validator validator) |
void |
removeValueChangeListener(com.vaadin.v7.data.Property.ValueChangeListener listener) |
void |
setBuffered(boolean buffered) |
void |
setIncludeWebOus(boolean include)
Set if web Ous should be included.
|
void |
setInvalidAllowed(boolean invalidValueAllowed) |
void |
setInvalidCommitted(boolean isCommitted) |
void |
setMargin(boolean enabled)
Enable layout margins.
|
void |
setOU(java.lang.String ou)
Set the ou.
|
void |
setOuChangeEnabled(boolean enabled) |
protected void |
setPrincipal(int type,
java.lang.String principalName)
Sets the principal type and name.
|
void |
setPrincipalType(java.lang.String type)
Sets the principal type and clears the name.
|
void |
setPropertyDataSource(com.vaadin.v7.data.Property newDataSource) |
void |
setReadOnly(boolean readOnly) |
void |
setRealPrincipalsOnly(boolean realOnly)
Controls whether only real users/groups or also pseudo-principals like ALL_OTHERS should be shown.
|
void |
setRequired(boolean required) |
void |
setRequiredError(java.lang.String requiredMessage) |
void |
setRoleSelectionAllowed(boolean editRoles)
Enables/disables selection of the 'Roles' prinipal type.
|
void |
setSelectHandler(CmsPrincipalSelect.I_PrincipalSelectHandler selectHandler)
Sets the principal select handler.
|
void |
setTabIndex(int tabIndex) |
void |
setType(java.lang.String type)
Sets the type of principal.
|
void |
setValue(java.lang.String newValue) |
void |
setWidgetType(CmsPrincipalSelect.WidgetType type)
Sets the widget type.
|
void |
validate() |
void |
valueChange(com.vaadin.v7.data.Property.ValueChangeEvent event) |
getComponentCount, getCompositionRoot, getState, getState, iterator, setCompositionRootaddContextClickListener, 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, setHeightUndefined, setIcon, setId, setLocale, setParent, setPrimaryStyleName, setRequiredIndicatorVisible, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidth, setWidthUndefined, writeDesignaddAttachListener, addDetachListener, addExtension, 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, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource, updateDiffstateclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitaddListener, 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, writeDesignaddAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlerpublic CmsPrincipalSelect()
public void addListener(com.vaadin.v7.data.Property.ValueChangeListener listener)
addListener in interface com.vaadin.v7.data.Property.ValueChangeNotifierProperty.ValueChangeNotifier.addListener(com.vaadin.v7.data.Property.ValueChangeListener)public void addValidator(com.vaadin.v7.data.Validator validator)
addValidator in interface com.vaadin.v7.data.Validatablecom.vaadin.data.Validatable#addValidator(com.vaadin.data.Validator)public void addValueChangeListener(com.vaadin.v7.data.Property.ValueChangeListener listener)
addValueChangeListener in interface com.vaadin.v7.data.Property.ValueChangeNotifierProperty.ValueChangeNotifier.addValueChangeListener(com.vaadin.v7.data.Property.ValueChangeListener)public void clear()
clear in interface com.vaadin.v7.ui.Field<java.lang.String>Field.clear()public void commit() throws com.vaadin.v7.data.Buffered.SourceException, com.vaadin.v7.data.Validator.InvalidValueException
commit in interface com.vaadin.v7.data.Bufferedcom.vaadin.v7.data.Buffered.SourceExceptioncom.vaadin.v7.data.Validator.InvalidValueExceptionBuffered.commit()public void discard() throws com.vaadin.v7.data.Buffered.SourceException
discard in interface com.vaadin.v7.data.Bufferedcom.vaadin.v7.data.Buffered.SourceExceptionBuffered.discard()public void focus()
focus in interface com.vaadin.ui.Component.Focusablefocus in class com.vaadin.ui.AbstractComponentAbstractComponent.focus()public com.vaadin.v7.data.Property getPropertyDataSource()
getPropertyDataSource in interface com.vaadin.v7.data.Property.ViewerProperty.Viewer.getPropertyDataSource()public java.lang.String getRequiredError()
getRequiredError in interface com.vaadin.v7.ui.Field<java.lang.String>Field.getRequiredError()public int getTabIndex()
getTabIndex in interface com.vaadin.ui.Component.FocusableComponent.Focusable.getTabIndex()public java.lang.Class<? extends java.lang.String> getType()
getType in interface com.vaadin.v7.data.Property<java.lang.String>Property.getType()public java.util.Collection<com.vaadin.v7.data.Validator> getValidators()
getValidators in interface com.vaadin.v7.data.Validatablecom.vaadin.data.Validatable#getValidators()public java.lang.String getValue()
getValue in interface com.vaadin.v7.data.Property<java.lang.String>Property.getValue()public void handlePrincipal(I_CmsPrincipal principal)
I_CmsPrincipalSelecthandlePrincipal in interface I_CmsPrincipalSelectprincipal - which were selectedI_CmsPrincipalSelect.handlePrincipal(org.opencms.security.I_CmsPrincipal)public boolean isBuffered()
isBuffered in interface com.vaadin.v7.data.BufferedBuffered.isBuffered()public boolean isEmpty()
isEmpty in interface com.vaadin.v7.ui.Field<java.lang.String>Field.isEmpty()public boolean isInvalidAllowed()
isInvalidAllowed in interface com.vaadin.v7.data.Validatablecom.vaadin.data.Validatable#isInvalidAllowed()public boolean isInvalidCommitted()
isInvalidCommitted in interface com.vaadin.v7.data.BufferedValidatableBufferedValidatable.isInvalidCommitted()public boolean isModified()
isModified in interface com.vaadin.v7.data.BufferedBuffered.isModified()public boolean isReadOnly()
isReadOnly in interface com.vaadin.v7.data.Property<java.lang.String>isReadOnly in class com.vaadin.ui.AbstractComponentpublic boolean isRequired()
isRequired in interface com.vaadin.v7.ui.Field<java.lang.String>Field.isRequired()public boolean isValid()
isValid in interface com.vaadin.v7.data.Validatablecom.vaadin.data.Validatable#isValid()public void removeAllValidators()
removeAllValidators in interface com.vaadin.v7.data.Validatablecom.vaadin.data.Validatable#removeAllValidators()public void removeListener(com.vaadin.v7.data.Property.ValueChangeListener listener)
removeListener in interface com.vaadin.v7.data.Property.ValueChangeNotifierProperty.ValueChangeNotifier.removeListener(com.vaadin.v7.data.Property.ValueChangeListener)public void removeValidator(com.vaadin.v7.data.Validator validator)
removeValidator in interface com.vaadin.v7.data.Validatablecom.vaadin.data.Validatable#removeValidator(com.vaadin.data.Validator)public void removeValueChangeListener(com.vaadin.v7.data.Property.ValueChangeListener listener)
removeValueChangeListener in interface com.vaadin.v7.data.Property.ValueChangeNotifierProperty.ValueChangeNotifier.removeValueChangeListener(com.vaadin.v7.data.Property.ValueChangeListener)public void setBuffered(boolean buffered)
setBuffered in interface com.vaadin.v7.data.BufferedBuffered.setBuffered(boolean)public void setIncludeWebOus(boolean include)
include - booleanpublic void setInvalidAllowed(boolean invalidValueAllowed) throws java.lang.UnsupportedOperationException
setInvalidAllowed in interface com.vaadin.v7.data.Validatablejava.lang.UnsupportedOperationExceptioncom.vaadin.data.Validatable#setInvalidAllowed(boolean)public void setInvalidCommitted(boolean isCommitted)
setInvalidCommitted in interface com.vaadin.v7.data.BufferedValidatablecom.vaadin.data.BufferedValidatable#setInvalidCommitted(boolean)public void setMargin(boolean enabled)
enabled - true if margins should be enabled on all sides, false to disable all marginspublic void setOU(java.lang.String ou)
ou - to choose principals forpublic void setOuChangeEnabled(boolean enabled)
public void setPrincipalType(java.lang.String type)
type - the principal typepublic void setPropertyDataSource(com.vaadin.v7.data.Property newDataSource)
setPropertyDataSource in interface com.vaadin.v7.data.Property.ViewerProperty.Viewer.setPropertyDataSource(com.vaadin.v7.data.Property)public void setReadOnly(boolean readOnly)
setReadOnly in interface com.vaadin.v7.data.Property<java.lang.String>setReadOnly in class com.vaadin.ui.AbstractComponentpublic void setRealPrincipalsOnly(boolean realOnly)
realOnly - if true, only real users / groups will be shownpublic void setRequired(boolean required)
setRequired in interface com.vaadin.v7.ui.Field<java.lang.String>Field.setRequired(boolean)public void setRequiredError(java.lang.String requiredMessage)
setRequiredError in interface com.vaadin.v7.ui.Field<java.lang.String>Field.setRequiredError(java.lang.String)public void setRoleSelectionAllowed(boolean editRoles)
editRoles - true if the user should be allowed to select rolespublic void setSelectHandler(CmsPrincipalSelect.I_PrincipalSelectHandler selectHandler)
selectHandler - the principal select handlerpublic void setTabIndex(int tabIndex)
setTabIndex in interface com.vaadin.ui.Component.FocusableComponent.Focusable.setTabIndex(int)public void setType(java.lang.String type)
I_CmsPrincipalSelectsetType in interface I_CmsPrincipalSelecttype - of principalI_CmsPrincipalSelect.setType(java.lang.String)public void setValue(java.lang.String newValue) throws com.vaadin.v7.data.Property.ReadOnlyException
setValue in interface com.vaadin.v7.data.Property<java.lang.String>com.vaadin.v7.data.Property.ReadOnlyExceptionProperty.setValue(java.lang.Object)public void setWidgetType(CmsPrincipalSelect.WidgetType type)
type - the widget typepublic void validate() throws com.vaadin.v7.data.Validator.InvalidValueException
validate in interface com.vaadin.v7.data.Validatablecom.vaadin.v7.data.Validator.InvalidValueExceptioncom.vaadin.data.Validatable#validate()public void valueChange(com.vaadin.v7.data.Property.ValueChangeEvent event)
valueChange in interface com.vaadin.v7.data.Property.ValueChangeListenerProperty.ValueChangeListener.valueChange(com.vaadin.v7.data.Property.ValueChangeEvent)protected void closeWindow()
protected void setPrincipal(int type, java.lang.String principalName)
type - the principal typeprincipalName - the principal name