public class InitialRightsEditor extends RightsComponent
,
Serialized FormModifier and Type | Class and Description |
---|---|
protected class |
InitialRightsEditor.BoxModelItem
An item in the Initialrights ComboBox Model.
|
protected class |
InitialRightsEditor.InitialRightsCellRenderer
Custom Cell Renderer, creates a cell in the Rights Table.
|
protected class |
InitialRightsEditor.InitialRightsGroupsListModel
The Model for the Userlist.
|
protected class |
InitialRightsEditor.InitialRightsTableModel
The Table Model for the initial rights view
|
protected class |
InitialRightsEditor.InitialRightsTableMouseListener
The table mouse listener.
|
protected class |
InitialRightsEditor.RightsBoxModel
Custom class for the Combo Box in this InitialRightsEditor
Adds an "ALL" entry to the beginning of the List
|
protected class |
InitialRightsEditor.RightsHolder
Support Class to manage the rights
|
RightsComponent.ACLGroupIDComparator, RightsComponent.ACLGroupNameComparator, RightsComponent.GroupsListModel, RightsComponent.IDComparator, RightsComponent.IDSortComparator, RightsComponent.ListMouseListener, RightsComponent.RightGroupIDComparator, RightsComponent.RightGroupNameComparator, RightsComponent.RightsTableModel, RightsComponent.TableCellRenderer, RightsComponent.TableMouseListener
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
protected javax.swing.JComboBox |
ref_combo |
protected InitialRightsEditor.RightsHolder |
rholder |
aclGroupIdComparator, aclGroupNameComparator, addRoles, aeID, borderTitle, deleteRights, groups, idComparator, idSort, idSortComparator, list, listPopup, makesSense, readOnlyMode, RIGHT_STRINGS, rightGroupIdComparator, rightGroupNameComparator, roleTitle, splitter, table, tablePopup, tPanel
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
InitialRightsEditor(OdsxSelectHelper.NameId[] groups,
int makesSense,
InitialRight[] rights,
java.lang.String roleTitle,
InstanceElement ieObj)
Creates a new instance of the InitialRightsEditor
|
Modifier and Type | Method and Description |
---|---|
void |
addNewRoles()
Add the selected role from list to rights table.
|
protected void |
addRightsForRoles(T_LONGLONG[] groups,
T_LONGLONG refAid)
Add blank rights for a selection of groups.
|
void |
commit(RightsHolderInterface holder,
ApplicationElement groupAe,
java.util.HashMap groupMap)
Commit the changes (Transaction must be activated before.)
|
protected void |
createIRPanel()
Creates additional UI Elements for this Editor
|
protected void |
deleteRights(int[] idx)
Delete rights.
|
int[] |
findMultipleRightsForGroup(T_LONGLONG id)
Find rights index using the group id.
|
int |
findRightsForGroup(T_LONGLONG id)
Find rights index using the group id.
|
java.lang.String |
getBorderTitle()
get the border title.
|
InitialRight[] |
getInitialRights()
Get the initial rights.
|
T_LONGLONG |
getRefAID(int idx)
Get the Referencing AID of the rights set
|
java.lang.String |
getRightsGroupName(int idx)
Get the group name belongs to a right
|
int |
getRightsLength()
Get the total number of available rights.
|
InitialRight[] |
getRightsToAdd()
Get all rights to be add.
|
InitialRight[] |
getRightsToRemove()
Get all rights to be removed.
|
InitialRight[] |
getRightsToSet()
Get all rights to be add.
|
int |
getRightsValue(int idx)
Get the right value belongs to right.
|
void |
initialize()
Initialize the Init Rights Dialog
|
void |
setInitialRights(InitialRight[] rights)
Set the initial rights.
|
void |
setRightsValue(int idx,
int rights)
Set the right value belongs to right.
|
void |
setRightsValue(int idx,
int rights,
T_LONGLONG refaid)
Set the right value belongs to right.
|
protected void |
sort()
Sort the internal arrays.
|
cloneACL, cloneRight, createButtonPanel, createListPopup, createPanel, createTablePopup, deleteRights, getAeID, getGroupForId, getGroupName, getGroupName, getListPopup, getRightString, getTablePopup, hasRight, makesSense, setAeID, setBorderTitle, setGroups, setSensitivity, toggleRight, updateUI
getAccessibleContext, getUI, getUIClassID, paramString, setUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
protected javax.swing.JComboBox ref_combo
protected InitialRightsEditor.RightsHolder rholder
public InitialRightsEditor(OdsxSelectHelper.NameId[] groups, int makesSense, InitialRight[] rights, java.lang.String roleTitle, InstanceElement ieObj)
groups
- a list of availabl user groupsmakesSense
- a bit mask that signals what right makes currently senserights
- the initial rightsroleTitle
- the Title for the user group columnieObj
- the instance object if this Editor is bound to an instance element.public void addNewRoles()
addNewRoles
in class RightsComponent
protected void addRightsForRoles(T_LONGLONG[] groups, T_LONGLONG refAid)
addRightsForRoles
in class RightsComponent
public void commit(RightsHolderInterface holder, ApplicationElement groupAe, java.util.HashMap groupMap) throws AoException
aeObj
- the application element.groupAe
- The application element belongs to aousergroup.groupMap
- the map to cache the group instance elements.AoException
protected void createIRPanel()
protected void deleteRights(int[] idx)
deleteRights
in class RightsComponent
public int[] findMultipleRightsForGroup(T_LONGLONG id)
id
- the group idpublic int findRightsForGroup(T_LONGLONG id)
findRightsForGroup
in class RightsComponent
public java.lang.String getBorderTitle()
getBorderTitle
in class RightsComponent
public InitialRight[] getInitialRights()
public T_LONGLONG getRefAID(int idx)
idx
- the indexpublic java.lang.String getRightsGroupName(int idx)
getRightsGroupName
in class RightsComponent
public int getRightsLength()
getRightsLength
in class RightsComponent
public InitialRight[] getRightsToAdd()
public InitialRight[] getRightsToRemove()
public InitialRight[] getRightsToSet()
public int getRightsValue(int idx)
getRightsValue
in class RightsComponent
public void initialize()
initialize
in class RightsComponent
public void setInitialRights(InitialRight[] rights)
public void setRightsValue(int idx, int rights)
setRightsValue
in class RightsComponent
public void setRightsValue(int idx, int rights, T_LONGLONG refaid)
idx
- the indexrights
- the rights to be setrefaid
- the referencing AID for this right setprotected void sort()
sort
in class RightsComponent