public class CmsPermissionView extends com.vaadin.ui.CssLayout
| Modifier and Type | Class and Description |
|---|---|
static interface |
CmsPermissionView.PermissionChangeHandler
Permission change handler.
|
com.vaadin.ui.Layout.AlignmentHandler, com.vaadin.ui.Layout.MarginHandler, com.vaadin.ui.Layout.SpacingHandlercom.vaadin.ui.HasComponents.ComponentAttachDetachNotifier, com.vaadin.ui.HasComponents.ComponentAttachEvent, com.vaadin.ui.HasComponents.ComponentAttachListener, com.vaadin.ui.HasComponents.ComponentDetachEvent, com.vaadin.ui.HasComponents.ComponentDetachListenercom.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.DetachListener| Constructor and Description |
|---|
CmsPermissionView(CmsAccessControlEntry entry,
boolean editable,
boolean isFolder,
java.lang.String inheritedFrom,
CmsPermissionView.PermissionChangeHandler changeHandler)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
getEntryType(int flags,
boolean all)
Determines the type of the current access control entry.
|
java.lang.String |
getPrincipalName()
Gets the name of the principal.
|
protected java.lang.String[] |
getTypes(boolean all)
Returns a String array with the possible entry types.
|
protected int[] |
getTypesInt()
Returns an int array with possible entry types.
|
void |
hideDeniedColumn()
Hides the denied permissions column.
|
protected java.lang.Boolean |
isAllowed(CmsPermissionSet p,
int value)
Checks if a certain permission of a permission set is allowed.
|
protected java.lang.Boolean |
isDenied(CmsPermissionSet p,
int value)
Checks if a certain permission of a permission set is denied.
|
boolean |
isEditable()
Checks if view is editable.
|
protected java.lang.Boolean |
isOverWritingInherited(int flags)
Check if the current permissions are overwriting the inherited ones.
|
protected java.lang.Boolean |
isResponsible(int flags)
Check if the user is a responsible for the resource.
|
addComponent, addComponent, addComponentAsFirst, addLayoutClickListener, beforeClientResponse, getComponent, getComponentCount, getComponentIndex, getCss, getState, getState, iterator, readDesign, removeComponent, removeLayoutClickListener, replaceComponent, writeDesignaddComponentAttachListener, addComponentDetachListener, addComponents, fireComponentAttachEvent, fireComponentDetachEvent, getComponentIterator, moveComponentsFrom, removeAllComponents, removeComponentAttachListener, removeComponentDetachListener, setHeight, setWidthaddContextClickListener, addListener, addShortcutListener, addStyleName, attach, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, focus, getActionManager, getCaption, getComponentError, getCustomAttributes, 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, setHeightUndefined, setIcon, setId, setLocale, setParent, setPrimaryStyleName, setReadOnly, setRequiredIndicatorVisible, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidthUndefinedaddAttachListener, 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, waitaddComponents, getComponentIterator, moveComponentsFrom, removeAllComponentsaddListener, 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, setVisibleaddAttachListener, addDetachListener, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlerpublic CmsPermissionView(CmsAccessControlEntry entry, boolean editable, boolean isFolder, java.lang.String inheritedFrom, CmsPermissionView.PermissionChangeHandler changeHandler)
entry - the access control entryeditable - the editable flagisFolder - the is folder flaginheritedFrom - the inherited from pathchangeHandler - the change handlerpublic java.lang.String getPrincipalName()
public void hideDeniedColumn()
public boolean isEditable()
protected java.lang.String getEntryType(int flags, boolean all)
flags - the value of the current flagsall - to include all types, or just user and groupsprotected java.lang.String[] getTypes(boolean all)
all - to include all types, or just user, groups and rolesprotected int[] getTypesInt()
protected java.lang.Boolean isAllowed(CmsPermissionSet p, int value)
p - the current CmsPermissionSetvalue - the int value of the permission to checkprotected java.lang.Boolean isDenied(CmsPermissionSet p, int value)
p - the current CmsPermissionSetvalue - the int value of the permission to checkprotected java.lang.Boolean isOverWritingInherited(int flags)
flags - value of all flags of the current entryprotected java.lang.Boolean isResponsible(int flags)
flags - value of all flags of the current entry