public class TypeAccessRightsEditorChip extends AbstractChip implements ClipChip, SpecialSaveChip, SpecialReloadChip, ItemAcceptor, ToolbarProvider, ChangeIndicatorChip
| Modifier and Type | Field and Description |
|---|---|
static String |
ADD_PRINCIPAL_EVENT |
static String |
ADINDICATOR |
static String |
CHANGE_PERMISSION_EVENT |
static String |
JSP_URI |
static String |
PERMISSION_EVENT |
static String |
REMOVE_PRINCIPAL_EVENT |
static String |
RIGHT_EVENT |
static String |
SELECT_PRINCIPAL_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 |
|---|
TypeAccessRightsEditorChip(DisplayState displayState,
Chip parent)
Creates a new TypeAccessRightsEditorChip with the given displaystate and parent.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addPrincipal() |
boolean |
allowsMultipleSelection()
Method from ItemAcceptor interface.
|
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 type of this chip.
|
static String |
getCombinedID(Principal principal)
For a given Principal this method returns a unique string id.
|
ComposedType |
getComposedType()
Returns the type of the item this chip holds.
|
String |
getIcon(Item item) |
protected ItemChip |
getItemChip()
Returns the itemchip which is a parent of this chip.
|
String |
getJSPURI()
Returns the jsp uri for this chip.
|
String |
getPermission(String qualifier,
String right)
For the given qualifier (which is either TYPE or [ADINDICATOR+attributedescriptorqualifier]) and userright string
(READ, CHANGE, etc.) this method returns GRANT, DENY or NONE according to the current permission.
|
Principal |
getPrincipalByCombinedId(String combinedId)
Returns the principal with the given combined id.
|
Set |
getPrincipals()
Returns a list of principals for which userrights are set for the current type.
|
Principal |
getSelectedPrincipal()
Returns the currently selected principal.
|
AbstractToolbarChip |
getToolbar()
Returns the toolbar for this chip.
|
boolean |
hasItem()
Returns true if itemChip.getItem() is not null.
|
void |
initialize()
Initially loads the permission maps, selects the default principal and creates the toolbar.
|
boolean |
isChanged() |
boolean |
isInitialized() |
boolean |
isPrincipalSelected()
Returns true if a principal is selected.
|
boolean |
isSelected(Principal principal)
Returns true if the given principal is currently selected.
|
void |
processEvents(Map events)
Process the various events coming from the editor chip.
|
void |
reload() |
void |
save() |
void |
setChanged(boolean changed) |
void |
setSelectedItems(List items)
Method from ItemAcceptor interface.
|
void |
setSelectedPrincipal(Principal principal)
Sets the currently selected principal.
|
void |
setToolbar(AbstractToolbarChip toolbar)
Sets the toolbar for this chip.
|
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 JSP_URI
public static final String TYPEORFD_EVENT
public static final String PERMISSION_EVENT
public static final String RIGHT_EVENT
public static final String SELECT_PRINCIPAL_EVENT
public static final String ADD_PRINCIPAL_EVENT
public static final String REMOVE_PRINCIPAL_EVENT
public static final String CHANGE_PERMISSION_EVENT
public static final String ADINDICATOR
public static final String TYPE
public TypeAccessRightsEditorChip(DisplayState displayState, Chip parent)
public void initialize()
initialize in interface ClipChippublic boolean isInitialized()
isInitialized in interface ClipChippublic void reload()
reload in interface SpecialReloadChippublic void processEvents(Map events)
processEvents in interface Chipprotected void addPrincipal()
public String getPermission(String qualifier, String right)
public String getJSPURI()
public void save()
save in interface SpecialSaveChippublic void setSelectedItems(List items)
setSelectedItems in interface ItemAcceptorpublic boolean allowsMultipleSelection()
allowsMultipleSelection in interface ItemAcceptorpublic boolean isPrincipalSelected()
public boolean hasItem()
public ComposedType getComposedType()
public Set getPrincipals()
public Principal getPrincipalByCombinedId(String combinedId)
getCombinedID(Principal) for a description of a combined id).public static String getCombinedID(Principal principal)
principal - the Principal for which to create the id stringpublic boolean isSelected(Principal principal)
public Principal getSelectedPrincipal()
public void setSelectedPrincipal(Principal principal)
public AbstractToolbarChip createToolbar()
createToolbar in interface ToolbarProviderpublic AbstractToolbarChip getToolbar()
getToolbar in interface ToolbarProviderpublic void setToolbar(AbstractToolbarChip toolbar)
public String getAttributeDescriptorID(AttributeDescriptor attributeDescriptor)
public Set getAttributeDescriptors()
protected ItemChip getItemChip()
public AccessManager getAccessManager()
public boolean isChanged()
isChanged in interface ChangeIndicatorChippublic void setChanged(boolean changed)
Copyright © 2017 SAP SE. All Rights Reserved.