public class PrincipalAccessRightsEditorChip extends AbstractChip implements ClipChip, SpecialSaveChip, SpecialReloadChip, ItemAcceptor, ChangeIndicatorChip
| Modifier and Type | Field and Description |
|---|---|
static String |
ADD_TYPE_EVENT |
static String |
ADINDICATOR |
static String |
CHANGE_PERMISSION_EVENT |
static String |
PERMISSION_EVENT |
static String |
REMOVE_TYPE_EVENT |
static String |
RIGHT_EVENT |
static String |
SELECT_TYPE_EVENT |
static String |
TYPE |
static String |
TYPEORFD_EVENT |
CHIP_KEY, FALSE, FRAME_KEY, SHOW_JSP_COMMENTS, TRUE, USE_SOCKET_NAMINGDISPLAY_EVENT, FILTERED_PREFIX| Constructor and Description |
|---|
PrincipalAccessRightsEditorChip(DisplayState displayState,
Chip parent) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowsMultipleSelection() |
boolean |
canChangeRights() |
protected AbstractToolbarChip |
createToolbar()
Creates the toolbar for this chip.
|
AccessManager |
getAccessManager()
Returns the accessmanager instance of the current session.
|
String |
getAttributeDescriptorID(AttributeDescriptor attributeDescriptor)
Returns the attributedescriptor qualifier for the given AttributeDescriptor, which is (ADINDICATOR +
attributedescriptorqualifier).
|
Set |
getAttributeDescriptors()
Returns a sorted set of attributedescriptors of the selected composedtype.
|
String |
getIcon(ComposedType type) |
ItemChip |
getItemChip() |
String |
getJSPURI()
Returns the URI of the JSP that this chip wants to use.
|
String |
getPermission(String id,
String right)
For the given pk (which denotes either a
ComposedType or an AttributeDescriptor) and userright
string (READ, CHANGE, etc.) this method returns GRANT, DENY or NONE according to the current permission. |
Map |
getPermissionMap() |
Principal |
getPrincipal()
Returns the type of the item this chip holds.
|
ComposedType |
getSelectedType() |
AbstractToolbarChip |
getToolbar() |
Set |
getTypes() |
boolean |
hasItem() |
void |
initialize()
Initially loads the permission maps, selects the default principal and creates the toolbar.
|
boolean |
isChanged() |
boolean |
isInitialized() |
boolean |
isSelected(ComposedType type) |
boolean |
isTypeSelected() |
void |
processEvents(Map events)
Handles all incoming requests for this chip.
|
void |
reload() |
void |
save() |
void |
setChanged(boolean changed) |
void |
setItemChip(ItemChip itemChip) |
void |
setPermissionMap(Map permissionMap) |
void |
setSelectedItems(List items) |
void |
setSelectedType(ComposedType selectedType) |
addEventListener, checkValid, clearInfoMessages, clone, containsDisplayEvent, createMenuEntriesForJS, dispose, errorQueueEmpty, getClipboard, getCommandID, getDisplayParameters, getDisplayState, getEventID, getEventURL, getEventValue, getFrame, getID, getInfoMessages, getJaloSession, getLocalizedString, getLocalizedString, getLogger, getMenuEntries, getNameSpace, getNameSpaceFor, getParent, getProposedUniqueName, getProposedUniqueNameFor, getRequestFocus, getSessionIdentifier, getStringValue, getUniqueName, getWindow, goFullScreen, hasVisibleContextMenuEntries, isButtonPushed, isButtonPushed, isErrorQueueEmpty, isValid, leaveFullScreen, notifyEventListeners, notifyEventListeners, postErrorMessage, postInfoMessage, postWindowEvent, refresh, refreshChild, registerUniqueName, removeEventListener, removeInfoMessage, render, render, setClipboard, setParent, setRequestFocus, setValid, setWindowStatus, translateFormFieldToEventName, translateFormFieldToEventValueequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddEventListener, checkValid, dispose, getCommandID, getDisplayParameters, getDisplayState, getEventID, getEventURL, getEventValue, getID, getJaloSession, getMenuEntries, getParent, getUniqueName, goFullScreen, isValid, leaveFullScreen, registerUniqueName, removeEventListener, render, translateFormFieldToEventName, translateFormFieldToEventValuepublic static final String ADINDICATOR
public static final String TYPE
public static final String SELECT_TYPE_EVENT
public static final String REMOVE_TYPE_EVENT
public static final String ADD_TYPE_EVENT
public static final String TYPEORFD_EVENT
public static final String PERMISSION_EVENT
public static final String RIGHT_EVENT
public static final String CHANGE_PERMISSION_EVENT
public PrincipalAccessRightsEditorChip(DisplayState displayState, Chip parent)
public void initialize()
initialize in interface ClipChippublic Principal getPrincipal()
public boolean hasItem()
public boolean isInitialized()
isInitialized in interface ClipChippublic void save()
save in interface SpecialSaveChippublic void reload()
reload in interface SpecialReloadChippublic void processEvents(Map events)
ChipprocessEvents in interface Chippublic String getJSPURI()
Chippublic ItemChip getItemChip()
public void setItemChip(ItemChip itemChip)
public Set getTypes()
public void setSelectedItems(List items)
setSelectedItems in interface ItemAcceptorpublic boolean allowsMultipleSelection()
allowsMultipleSelection in interface ItemAcceptorpublic ComposedType getSelectedType()
public void setSelectedType(ComposedType selectedType)
public boolean isSelected(ComposedType type)
public boolean isTypeSelected()
public String getIcon(ComposedType type)
protected AbstractToolbarChip createToolbar()
public AbstractToolbarChip getToolbar()
public boolean canChangeRights()
public Set getAttributeDescriptors()
public String getPermission(String id, String right)
ComposedType or an AttributeDescriptor) and userright
string (READ, CHANGE, etc.) this method returns GRANT, DENY or NONE according to the current permission.public AccessManager getAccessManager()
public Map getPermissionMap()
public void setPermissionMap(Map permissionMap)
public boolean isChanged()
isChanged in interface ChangeIndicatorChippublic void setChanged(boolean changed)
public String getAttributeDescriptorID(AttributeDescriptor attributeDescriptor)
Copyright © 2017 SAP SE. All Rights Reserved.