Class CmsPermissionDialog
- java.lang.Object
-
- com.vaadin.server.AbstractClientConnector
-
- com.vaadin.ui.AbstractComponent
-
- com.vaadin.ui.AbstractComponentContainer
-
- com.vaadin.ui.AbstractLayout
-
- com.vaadin.ui.AbstractOrderedLayout
-
- com.vaadin.ui.VerticalLayout
-
- org.opencms.ui.components.CmsBasicDialog
-
- org.opencms.ui.dialogs.permissions.CmsPermissionDialog
-
- All Implemented Interfaces:
com.vaadin.event.ContextClickEvent.ContextClickNotifier
,com.vaadin.event.LayoutEvents.LayoutClickNotifier
,com.vaadin.event.MethodEventSource
,com.vaadin.server.ClientConnector
,com.vaadin.server.Sizeable
,com.vaadin.shared.Connector
,com.vaadin.ui.Component
,com.vaadin.ui.ComponentContainer
,com.vaadin.ui.HasComponents
,com.vaadin.ui.HasComponents.ComponentAttachDetachNotifier
,com.vaadin.ui.Layout
,com.vaadin.ui.Layout.AlignmentHandler
,com.vaadin.ui.Layout.MarginHandler
,com.vaadin.ui.Layout.SpacingHandler
,java.io.Serializable
,java.lang.Iterable<com.vaadin.ui.Component>
,CmsPermissionView.PermissionChangeHandler
,CmsPrincipalSelect.I_PrincipalSelectHandler
public class CmsPermissionDialog extends CmsBasicDialog implements CmsPermissionView.PermissionChangeHandler, CmsPrincipalSelect.I_PrincipalSelectHandler
The permission dialog.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opencms.ui.components.CmsBasicDialog
CmsBasicDialog.DialogWidth
-
Nested 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.DetachListener
-
Nested 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.Listener
-
Nested 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.ComponentDetachListener
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String[]
PRINCIPAL_TYPES
The possible types of new access control entries.protected static int[]
PRINCIPAL_TYPES_INT
The possible type values of access control entries.
-
Constructor Summary
Constructors Constructor Description CmsPermissionDialog(I_CmsDialogContext context)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CmsPermissionView
buildPermissionEntryForm(CmsAccessControlEntry entry, boolean editable, boolean extendedView, CmsUUID inheritRes)
Creates an HTML input form for the current access control entry.void
deletePermissionSet(java.lang.String principalType, java.lang.String principalName)
Called to delete a permission set.protected java.lang.String
getConnectedResource(CmsAccessControlEntry entry, java.util.Map<CmsUUID,java.lang.String> parents)
Returns the resource on which the specified access control entry was set.void
onPrincipalSelect(java.lang.String principalType, java.lang.String principalName)
Called to select a principal.void
onViewChange()
Called on view changes, allowing for resizing or centering.void
setPermissions(CmsPermissionBean bean)
Sets a changed permission set.-
Methods inherited from class org.opencms.ui.components.CmsBasicDialog
addButton, addButton, createButtonCancel, createButtonClose, createButtonOK, createResourceListPanel, createResourceListPanelDirectly, displayResourceInfo, displayResourceInfo, displayResourceInfo, displayResourceInfoDirectly, enableMaxHeight, getInfoResources, initActionHandler, prepareWindow, prepareWindow, readDesign, setAbove, setActionHandler, setBelow, setContent, setContentMinHeight, setContentVisibility, setWindowMinFullHeight
-
Methods inherited from class com.vaadin.ui.VerticalLayout
addComponentsAndExpand, getState, getState
-
Methods inherited from class com.vaadin.ui.AbstractOrderedLayout
addComponent, addComponent, addComponentAsFirst, addLayoutClickListener, getComponent, getComponentAlignment, getComponentCount, getComponentIndex, getCustomAttributes, getDefaultComponentAlignment, getExpandRatio, getMargin, isSpacing, iterator, removeComponent, removeLayoutClickListener, replaceComponent, setComponentAlignment, setDefaultComponentAlignment, setExpandRatio, setMargin, setMargin, setSpacing, writeDesign
-
Methods inherited from class com.vaadin.ui.AbstractComponentContainer
addComponentAttachListener, addComponentDetachListener, addComponents, fireComponentAttachEvent, fireComponentDetachEvent, getComponentIterator, moveComponentsFrom, removeAllComponents, removeComponentAttachListener, removeComponentDetachListener, setHeight, setWidth
-
Methods inherited from class com.vaadin.ui.AbstractComponent
addContextClickListener, addListener, addShortcutListener, addStyleName, attach, beforeClientResponse, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, focus, getActionManager, getCaption, getComponentError, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isEnabled, isOrHasAncestor, isReadOnly, isRequiredIndicatorVisible, isResponsive, isVisible, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setDescription, setEnabled, setHeight, setHeightFull, setHeightUndefined, setIcon, setId, setLocale, setParent, setPrimaryStyleName, setReadOnly, setRequiredIndicatorVisible, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidthFull, setWidthUndefined
-
Methods 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, updateDiffstate
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods 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, setErrorHandler
-
Methods inherited from interface com.vaadin.ui.Component
addListener, addStyleName, addStyleNames, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, removeListener, removeStyleName, removeStyleNames, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setStyleName, setStyleName, setVisible
-
Methods inherited from interface com.vaadin.ui.ComponentContainer
addComponents, getComponentIterator, moveComponentsFrom, removeAllComponents
-
-
-
-
Field Detail
-
PRINCIPAL_TYPES
protected static final java.lang.String[] PRINCIPAL_TYPES
The possible types of new access control entries.
-
PRINCIPAL_TYPES_INT
protected static final int[] PRINCIPAL_TYPES_INT
The possible type values of access control entries.
-
-
Constructor Detail
-
CmsPermissionDialog
public CmsPermissionDialog(I_CmsDialogContext context)
Constructor.- Parameters:
context
- the dialog context.
-
-
Method Detail
-
deletePermissionSet
public void deletePermissionSet(java.lang.String principalType, java.lang.String principalName)
Description copied from interface:CmsPermissionView.PermissionChangeHandler
Called to delete a permission set.- Specified by:
deletePermissionSet
in interfaceCmsPermissionView.PermissionChangeHandler
- Parameters:
principalType
- the principal typeprincipalName
- the principal name- See Also:
CmsPermissionView.PermissionChangeHandler.deletePermissionSet(java.lang.String, java.lang.String)
-
onPrincipalSelect
public void onPrincipalSelect(java.lang.String principalType, java.lang.String principalName)
Description copied from interface:CmsPrincipalSelect.I_PrincipalSelectHandler
Called to select a principal.- Specified by:
onPrincipalSelect
in interfaceCmsPrincipalSelect.I_PrincipalSelectHandler
- Parameters:
principalType
- the principal typeprincipalName
- the principal name- See Also:
CmsPrincipalSelect.I_PrincipalSelectHandler.onPrincipalSelect(java.lang.String, java.lang.String)
-
onViewChange
public void onViewChange()
Description copied from interface:CmsPermissionView.PermissionChangeHandler
Called on view changes, allowing for resizing or centering.- Specified by:
onViewChange
in interfaceCmsPermissionView.PermissionChangeHandler
- See Also:
CmsPermissionView.PermissionChangeHandler.onViewChange()
-
setPermissions
public void setPermissions(CmsPermissionBean bean)
Description copied from interface:CmsPermissionView.PermissionChangeHandler
Sets a changed permission set.- Specified by:
setPermissions
in interfaceCmsPermissionView.PermissionChangeHandler
- Parameters:
bean
- bean for permission- See Also:
CmsPermissionView.PermissionChangeHandler.setPermissions(org.opencms.ui.dialogs.permissions.CmsPermissionBean)
-
buildPermissionEntryForm
protected CmsPermissionView buildPermissionEntryForm(CmsAccessControlEntry entry, boolean editable, boolean extendedView, CmsUUID inheritRes)
Creates an HTML input form for the current access control entry.- Parameters:
entry
- the current access control entryeditable
- boolean to determine if the form is editableextendedView
- boolean to determine if the view is selectable with DHTMLinheritRes
- the resource name from which the ace is inherited- Returns:
- StringBuffer with HTML code of the form
-
getConnectedResource
protected java.lang.String getConnectedResource(CmsAccessControlEntry entry, java.util.Map<CmsUUID,java.lang.String> parents)
Returns the resource on which the specified access control entry was set.- Parameters:
entry
- the current access control entryparents
- the parent resources to determine the connected resource- Returns:
- the resource name of the corresponding resource
-
-