com.bea.security.entitlements.admin.beans
Class SessionState

java.lang.Object
  extended bycom.bea.security.entitlements.admin.beans.SessionState
All Implemented Interfaces:
Distributable, java.util.EventListener, java.io.Serializable, javax.servlet.ServletContextListener, Transactable

public class SessionState
extends java.lang.Object
implements java.io.Serializable, javax.servlet.ServletContextListener, Transactable, Distributable

The session state class is the main backing bean of the entitlements administration Console. It will be responsible for storing the state of all the components that keep state across the lifetime of a user session with the system. Session state is configured as part of JSF to store session information across requests. This class provides accessor methods to selected tree nodes and table elements for the users session. This also construts the main applicaiton logic like constructing the navigation tree and facilitates policy distribution.

Author:
narliss
See Also:
Serialized Form

Field Summary
static java.lang.String FILTER_ALL
          Filter all whildcard to use
static java.lang.String NAV_NODE_IDENTITY
           
static java.lang.String NAV_NODE_METAOBJECT_PREFIX
           
static java.lang.String NAV_NODE_PERMISSIONS
           
static java.lang.String NAV_NODE_PREFIX
           
static java.lang.String NAV_NODE_REPORTS
           
static java.lang.String NAV_NODE_ROLES
           
static java.lang.String NAV_NODE_SODS
           
 
Constructor Summary
SessionState()
          Default constructor - used to initialize RBAC Context and populate tree.
 
Method Summary
 java.lang.String cancelModifySODRule()
          Cancel updates to SODs
 java.lang.String cancelNewChild()
          Cancel the new Child operation, re-enable buttons
 java.lang.String cloneNode()
          Clone currently selected node
 boolean commitTransaction()
          Commits transaction for the current cotnext.
 void contextDestroyed(javax.servlet.ServletContextEvent arg0)
          Implementation for ServletContextListener interface
 void contextInitialized(javax.servlet.ServletContextEvent arg0)
          Implementation for ServletContextListener interface
 com.bea.ales.rbac.MetaObject createRootRbacNode(java.lang.String rootName, java.lang.String type, int inheritanceModel)
          Create a new RBAC root object
 java.lang.String disableButtons()
          Disable all buttons on the main window.
 java.lang.String enableButtons()
          Enable all buttons on the main window.
 void exit()
          Exit the EUI UI
 java.lang.String filterRolesToDeny()
          Filter SOD to narrow result
 java.lang.String filterSod()
          Filter SOD to narrow result
 java.lang.String finishedModifyRule()
          Action handler for submit on modify Rule for a selected role node
 void finishPopup(javax.faces.event.ActionEvent event)
          Action listerner for most popups, sets the current popup action based on the UI component in the Action event source.
 SODElement getCurrentSODElement()
          Get currently selected SODElement
 java.util.List getDirectories()
          Return a list of Directories from the
 javax.faces.component.UIData getDirectoryAttributeData()
          Get current data model representing identity attributes
 int getDirectoryAttributeIdx()
          Row id for the currently selected directory attribute
 javax.faces.component.UIData getDirectoryGroupAttributeData()
          Get current data model representing group attributes
 int getDirectoryGroupAttributeIdx()
          Row id for the currently selected group attribute
 javax.faces.component.UIData getDirectoryUserAttributeData()
          Get current data model representing user attributes
 int getDirectoryUserAttributeIdx()
          Row id for the currently selected user attribute
 com.bea.ales.rbac.DistributionStatus getDistributionStatus()
          Return staus of current distribution flag
 java.lang.String getErrMsg()
          Get currently Set Error Message
 java.util.List getFakeDirectories()
           
 java.util.List getFakeDirectoryAttributes()
           
 int getIdentityChangeNumber()
          Get IdentityChangeNumber
 javax.faces.component.UIData getMemberRuleData()
          Geta data object for MemberRule
 int getMemberRuleIndex()
          Get row index of the selected member rule
 javax.faces.component.UIData getMetaAttributeData()
          Return current data model representing custom meta objects Attribute Data
 int getMetaAttributeIdx()
          Row id for the currently selected meta object attribute
 org.apache.myfaces.custom.tree2.TreeModel getNavigationTree()
          Return current navigation tree
 java.lang.String getNewChildName()
          Get new child name during create
 java.lang.String getNodeType()
          Return currently selected node type
 javax.faces.component.UIData getPermissionData()
          Data model for permissions
 int getPermissionIdx()
          Row id for the currently selected permission
 PermissionNode getPermissionNode()
          Get currently selected permission node
 int getPermissionsChangeNumber()
          Get pset perm change Hierarchy number
 java.lang.String getPopupAction()
          Returns the popup action set upon finishPopup
 javax.faces.component.UIData getPsetAttributeData()
          Get data model representing the current permission set attribute data
 int getPsetAttributeIdx()
          Row id for the currently selected permission set attribute
 int getPSetHierarchyChangeNumber()
          Get PermissionSet Hierarchy number
 int getPsetPermHierarchyChangeNumber()
          Get pset perm hierarchy change Hierarchy number
 com.bea.ales.rbac.RBAC_Context getRbacContext()
          Return the RBAC context for the current session, create new if ctx is null
 javax.faces.component.UIData getRoleAttributeData()
          Get current data model representing role attributes
 int getRoleAttributeIdx()
          Row id for the currently selected role attribute
 int getRoleHierarchyChangeNumber()
          Get Role change Hierarchy number
 int getRolePsetHierarchyChangeNumber()
          Get Permission set change Hierarchy number
 java.util.List getRolesToDeny()
          Called during modify of SOD.
 java.lang.String getRolesToDenyFilter()
          Get deny roles filter String
 EUIMetaObjectNode getRootMetaTree()
          Get Root Meta node tree based on the current selectedNode type
 PermissionSetNode getRootPset()
          Get Root Permission Set node
 com.bea.ales.rbac.MetaObject getRootRbacNode(java.lang.String type)
          Retrieve the root RBAC node for custom meta objects if exists, else create and return a root node
 com.bea.ales.rbac.RBAC_PermissionSet getRootRbacPermissionSet()
          Retrieve the root PermissionSet node for tree
 com.bea.ales.rbac.RBAC_Role getRootRbacRole()
          Retrieve the root RBAC Role for tree
 RoleNode getRootRole()
          Get root role node mostly used by copy and clone operations
 IdentityDirectoryNode getSelectedIdentityDirectoryNode()
          Get currently selected Identity Directory node
 IdentityNode getSelectedIdentityNode()
          Get currently selected Identity node
 int getSelectedIdentityTab()
          Return currently selected identity sub tabs
 int getSelectedMetaObjectTab()
          Return currently selected permission set sub tabs
 java.lang.String getSelectedMetaObjectTabName()
          Return currently selected tab name
 EUIMetaObjectNode getSelectedNode()
          Get Currently selected custom node implementation
 PermissionSetNode getSelectedPermissionSetNode()
          Get currently selected Permission Set node
 int getSelectedPermissionSetTab()
          Return currently selected permission set sub tabs
 java.lang.String getSelectedPermissionSetTabName()
          Return currently selected tab name
 SelectedPermissionSets getSelectedPsets()
          Get currently selected Permission sets
 ReportingNode getSelectedReportNode()
          Return currently selected Report Node
 RoleNode getSelectedRoleNode()
          Get currently selected role node
 int getSelectedRoleTab()
          Get currently selected role tab
 java.lang.String getSelectedRoleTabName()
          Return currently selected tab name
 RoleNode getSelectedSODRoleNode()
          Get currently selcted SODRole Node
 java.util.List getSodConflictsResults()
          Return a list of all SOD conflicting reports
 javax.faces.component.UIData getSodData()
          Get Datamodel for SOD
 java.lang.String getSodFilter()
          Retrieve filter string for SOD
 int getSodIdx()
          Indes of currently selected SOD row
 java.util.List getSodList()
          Iterate over the role tree.
 SODNode getSodNode()
          Get current sodNode
 org.apache.myfaces.custom.tree2.TreeModel getSodRoleTree()
          Get tree model for SOD Role
 int getSodsChangeNumber()
          Get SOD number
 int increasePsetPermHierarchyChangeNumber()
          Increment perm hierarchy change Hierarchy number
 java.lang.String initSelectedPermissionSets()
          Initialize the Selected Permission Sets.
 boolean isDisableMainButtons()
          Called from Secure button rendered to see if buttons needs to be disabled
 boolean isDisableTreeButtons()
          Check status for disabling tree button.
 boolean isDisableTreeButtonsNew()
          Check status for disabling "New" button in tree panel.
 boolean isDisableTreeButtonsRemove()
          Check status for disabling "Remove" button in tree panel.
 boolean isEnableRightPane()
           
 boolean isNewSOD()
          -- private
 boolean isPolicyHasChanged()
          Check status of policy changed button
 boolean isTransactionStarted()
          Check for status of current transaction flag
 java.lang.String logOut()
          Logout of the EUI, invalidates session before logout
 java.lang.String moveNode()
          Move currently selected node
 java.lang.String newChildOK()
          Handler for new child creation, starts a transaction, invokes the respective createChild based on the currently selected node
 java.lang.String newSodRule()
          Handler to create a new SOD rule
 void populateNavTreeAfterPsetInit()
           
 void populateNavTreeIdentity()
          Load identity part of the navigation tree to EUI tree
 java.lang.String processDirectoryAttributeRowSelection()
          Set the selected attribute from the attribute table
 java.lang.String processDirectoryGroupAttributeRowSelection()
          Set the selected attribute from the identity group attribute table
 java.lang.String processDirectoryUserAttributeRowSelection()
          Set the selected attribute from the identity user attribute table
 java.lang.String processMemberRuleRowSelection()
          Set the selected member rule from the member rule table
 java.lang.String processMetaAttributeRowSelection()
          Set the selected attribute from the attribute table
 java.lang.String processPermissionRowSelection()
          Set the selected permission from the attribute table
 void processPermPageChange(javax.faces.event.ActionEvent event)
          When the paginator fires we should unselect our row
 java.lang.String processPSetAttributeRowSelection()
          Set the selected attribute from the attribute table
 java.lang.String processRoleAttributeRowSelection()
          Set the selected attribute from the attribute table
 void processSelectAction(javax.faces.event.ActionEvent event)
          This methods is an event listener, the event fires when a node is selected on the navigation tree.It will cause all the data associated with the node selected to be represented by the UI
 void processSelectDestinationNodeAction(javax.faces.event.ActionEvent event)
          This event listener fires when a node is selected on the move node navigation tree.
 java.lang.String processSODRowSelection()
          Handler for currently selected SOD row
 void processSODSelectRoleAction(javax.faces.event.ActionEvent event)
           
 void processTabChange(org.apache.myfaces.custom.tabbedpane.TabChangeEvent arg0)
          Set the selected tab to save the state as other submits happen on the UI
 void processValueChange(javax.faces.event.ValueChangeEvent arg0)
          Set the appropriate reporting node variable
 void refresh()
          Refresh call to repopulate tree
 java.lang.String removeCurrentSodElement()
          Handler to remove a selected SOD element
 java.lang.String removeNode()
          Remove the currently selected node, and reset the update parent flag
 java.lang.String renameNode()
          Rename currently selected node
 java.lang.String revertDistribution()
          Called to revert changes made during session.
 boolean rollbackTransaction()
          Rollback current transaction for current context
 void setCurrentSODElement(SODElement currentSODElement)
          Set or reset current selectd SOD element
 void setDirectoryAttributeData(javax.faces.component.UIData directoryAttributeData)
          Set new model for identity Attributes
 void setDirectoryGroupAttributeData(javax.faces.component.UIData directoryGroupAttributeData)
          Set new model for group Attributes
 void setDirectoryUserAttributeData(javax.faces.component.UIData directoryUserAttributeData)
          Set new model for user Attributes
 void setDisableMainButtons(boolean disableMainButtons)
          Set the disable Main buttons to true, false otherwise
 void setDistributionStatus(com.bea.ales.rbac.DistributionStatus distributionStatus)
          Sets distribution status flag
 void setErrMsg(java.lang.String msg)
          Set new error message
 void setMemberRuleData(javax.faces.component.UIData memberRuleData)
          Set new data for memeber rule
 void setMetaAttributeData(javax.faces.component.UIData metaAttributeData)
          Set new data model for custom meta object attribute Data
 void setNavigationTree(org.apache.myfaces.custom.tree2.TreeModel navigationTree)
          Set new navigation tree
 void setNewChildName(java.lang.String newChildName)
          Set new child name during create
 void setNodeType(java.lang.String nodeType)
          Set a new type for selected node, one of BaseTreeNode nodetype attributes or a custom type node for meta object implementations
 void setPermissionData(javax.faces.component.UIData permissionData)
          Set new data model for permissions
 void setPermissionNode(PermissionNode selectedPermissionNode)
          Call to reset current selected Permission Node.
 void setPolicyHasChanged(boolean policyHasChanged)
          Set new policy changed status
 void setPsetAttributeData(javax.faces.component.UIData psetAttributeData)
          Set new model for permission set attribute data
 void setRoleAttributeData(javax.faces.component.UIData roleAttributeData)
          Set new model for Role Attributes
 java.lang.String setRoleNodePermissionSets()
          Set the permission sets for the current role node.
 void setRolesToDenyFilter(java.lang.String rolesToDenyFilter)
          Set new roles to deny filter
 void setSelectedIdentityDirectoryNode(IdentityDirectoryNode selectedIdentityDirectoryNode)
          Reset currently selected identity directory node.
 void setSelectedIdentityNode(IdentityNode selectedIdentityNode)
          Reset currently selected identity node.
 void setSelectedMetaObjectTab(int selectedMetaObjectTab)
          Change currently selected meta object tab
 void setSelectedNode(EUIMetaObjectNode a_selectedNode)
          Set new EUI meta node for a custom implementation node
 void setSelectedPermissionSetNode(PermissionSetNode selectedPermissionSetNode)
          Reset currently selected permission set node.
 void setSelectedPermissionSetTab(int selectedPermissionSetTab)
          Change currently selected permission set sub tab
 void setSelectedPsets(SelectedPermissionSets selectedPsets)
          Set new set of permission sets as selected
 void setSelectedReportNode(ReportingNode selectedReportNode)
          Selects a new Report node
 void setSelectedRoleNode(RoleNode selectedRoleNode)
          Select a new role node
 void setSelectedRoleTab(int selectedRoleTab)
          Set new tab to display for selected role
 void setSelectedSODRoleNode(RoleNode selectedSODRoleNode)
          Select new SOD Role node
 void setSodData(javax.faces.component.UIData sodData)
          Set new data model for SOD
 void setSodFilter(java.lang.String sodFilter)
          Set new filter string for set
 void setTransactionStarted(boolean transactionStarted)
          Reset current transaction flag
 java.lang.String startDistribution()
          Start Distribution of changes made during current session.
 boolean startTransaction()
          Starts transaction for the current RBAC Context if not started.
 java.lang.String updateSodRule()
          Handler for modification of selected SOD
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILTER_ALL

public static final java.lang.String FILTER_ALL
Filter all whildcard to use

See Also:
Constant Field Values

NAV_NODE_IDENTITY

public static final java.lang.String NAV_NODE_IDENTITY
See Also:
Constant Field Values

NAV_NODE_METAOBJECT_PREFIX

public static final java.lang.String NAV_NODE_METAOBJECT_PREFIX
See Also:
Constant Field Values

NAV_NODE_PERMISSIONS

public static final java.lang.String NAV_NODE_PERMISSIONS
See Also:
Constant Field Values

NAV_NODE_PREFIX

public static final java.lang.String NAV_NODE_PREFIX
See Also:
Constant Field Values

NAV_NODE_REPORTS

public static final java.lang.String NAV_NODE_REPORTS
See Also:
Constant Field Values

NAV_NODE_ROLES

public static final java.lang.String NAV_NODE_ROLES
See Also:
Constant Field Values

NAV_NODE_SODS

public static final java.lang.String NAV_NODE_SODS
See Also:
Constant Field Values
Constructor Detail

SessionState

public SessionState()
Default constructor - used to initialize RBAC Context and populate tree. The function should also load any custom objects defined for metaobject implementation if configured.

Method Detail

cancelModifySODRule

public java.lang.String cancelModifySODRule()
Cancel updates to SODs

Returns:

cancelNewChild

public java.lang.String cancelNewChild()
Cancel the new Child operation, re-enable buttons

Returns:

cloneNode

public java.lang.String cloneNode()
Clone currently selected node

Returns:
null mostly

commitTransaction

public boolean commitTransaction()
Commits transaction for the current cotnext.

Specified by:
commitTransaction in interface Transactable
Returns:
true on success, false otherwise

contextDestroyed

public void contextDestroyed(javax.servlet.ServletContextEvent arg0)
Implementation for ServletContextListener interface

Specified by:
contextDestroyed in interface javax.servlet.ServletContextListener
Parameters:
arg0 - servlet context event

contextInitialized

public void contextInitialized(javax.servlet.ServletContextEvent arg0)
Implementation for ServletContextListener interface

Specified by:
contextInitialized in interface javax.servlet.ServletContextListener
Parameters:
arg0 - servlet context event

createRootRbacNode

public com.bea.ales.rbac.MetaObject createRootRbacNode(java.lang.String rootName,
                                                       java.lang.String type,
                                                       int inheritanceModel)
Create a new RBAC root object

Parameters:
type - meta object type
inheritanceModel - 0 / 1 based on desired inheritance model
rootName - Name of the root node to use
Returns:
MetaObject representing the MetaObject

disableButtons

public java.lang.String disableButtons()
                                throws javax.faces.event.AbortProcessingException
Disable all buttons on the main window. Used when popup windows open

Throws:
javax.faces.event.AbortProcessingException

enableButtons

public java.lang.String enableButtons()
                               throws javax.faces.event.AbortProcessingException
Enable all buttons on the main window. Used when popup windows close

Throws:
javax.faces.event.AbortProcessingException

exit

public void exit()
Exit the EUI UI


filterRolesToDeny

public java.lang.String filterRolesToDeny()
Filter SOD to narrow result

Returns:
"success" on success

filterSod

public java.lang.String filterSod()
Filter SOD to narrow result

Returns:
"success" on success

finishedModifyRule

public java.lang.String finishedModifyRule()
Action handler for submit on modify Rule for a selected role node

Returns:
null

finishPopup

public void finishPopup(javax.faces.event.ActionEvent event)
Action listerner for most popups, sets the current popup action based on the UI component in the Action event source.

Parameters:
event -

getCurrentSODElement

public SODElement getCurrentSODElement()
Get currently selected SODElement

Returns:
currently selected element or null otherwise

getDirectories

public java.util.List getDirectories()
Return a list of Directories from the

Returns:
Array List of SelectItem objects

getDirectoryAttributeData

public javax.faces.component.UIData getDirectoryAttributeData()
Get current data model representing identity attributes

Returns:
UIData current data model

getDirectoryAttributeIdx

public int getDirectoryAttributeIdx()
Row id for the currently selected directory attribute

Returns:
row index

getDirectoryGroupAttributeData

public javax.faces.component.UIData getDirectoryGroupAttributeData()
Get current data model representing group attributes

Returns:
UIData current data model

getDirectoryGroupAttributeIdx

public int getDirectoryGroupAttributeIdx()
Row id for the currently selected group attribute

Returns:
row index

getDirectoryUserAttributeData

public javax.faces.component.UIData getDirectoryUserAttributeData()
Get current data model representing user attributes

Returns:
UIData current data model

getDirectoryUserAttributeIdx

public int getDirectoryUserAttributeIdx()
Row id for the currently selected user attribute

Returns:
row index

getDistributionStatus

public com.bea.ales.rbac.DistributionStatus getDistributionStatus()
Return staus of current distribution flag

Specified by:
getDistributionStatus in interface Distributable
Returns:
true if set, false otherwise

getErrMsg

public java.lang.String getErrMsg()
Get currently Set Error Message

Returns:
String error message set

getFakeDirectories

public java.util.List getFakeDirectories()

getFakeDirectoryAttributes

public java.util.List getFakeDirectoryAttributes()

getIdentityChangeNumber

public int getIdentityChangeNumber()
Get IdentityChangeNumber

Returns:
IdentityChangeNumber

getMemberRuleData

public javax.faces.component.UIData getMemberRuleData()
Geta data object for MemberRule

Returns:
UIData

getMemberRuleIndex

public int getMemberRuleIndex()
Get row index of the selected member rule

Returns:
index of selected row

getMetaAttributeData

public javax.faces.component.UIData getMetaAttributeData()
Return current data model representing custom meta objects Attribute Data

Returns:
UIData current data model

getMetaAttributeIdx

public int getMetaAttributeIdx()
Row id for the currently selected meta object attribute

Returns:
row index

getNavigationTree

public org.apache.myfaces.custom.tree2.TreeModel getNavigationTree()
Return current navigation tree

Returns:
TreeModel representing current Tree

getNewChildName

public java.lang.String getNewChildName()
Get new child name during create

Returns:
Returns the newChildName.

getNodeType

public java.lang.String getNodeType()
Return currently selected node type

Returns:
one of the BaseTreeNode node typeattributes, or a custom type for metaobjects

getPermissionData

public javax.faces.component.UIData getPermissionData()
Data model for permissions

Returns:

getPermissionIdx

public int getPermissionIdx()
Row id for the currently selected permission

Returns:
row index

getPermissionNode

public PermissionNode getPermissionNode()
Get currently selected permission node

Returns:
PermissionNode current selected permission node, null if none selected

getPermissionsChangeNumber

public int getPermissionsChangeNumber()
Get pset perm change Hierarchy number

Returns:
value of perm hierarchy change number

getPopupAction

public java.lang.String getPopupAction()
Returns the popup action set upon finishPopup

Returns:
Returns the popupAction.

getPsetAttributeData

public javax.faces.component.UIData getPsetAttributeData()
Get data model representing the current permission set attribute data

Returns:
current data model

getPsetAttributeIdx

public int getPsetAttributeIdx()
Row id for the currently selected permission set attribute

Returns:
row index

getPSetHierarchyChangeNumber

public int getPSetHierarchyChangeNumber()
Get PermissionSet Hierarchy number

Returns:
value of pset hierachy change number

getPsetPermHierarchyChangeNumber

public int getPsetPermHierarchyChangeNumber()
Get pset perm hierarchy change Hierarchy number

Returns:
value of pset perm hierarchy change number

getRbacContext

public com.bea.ales.rbac.RBAC_Context getRbacContext()
Return the RBAC context for the current session, create new if ctx is null

Returns:

getRoleAttributeData

public javax.faces.component.UIData getRoleAttributeData()
Get current data model representing role attributes

Returns:
UIData current data model

getRoleAttributeIdx

public int getRoleAttributeIdx()
Row id for the currently selected role attribute

Returns:
row index

getRoleHierarchyChangeNumber

public int getRoleHierarchyChangeNumber()
Get Role change Hierarchy number

Returns:
value of role hierachy change number

getRolePsetHierarchyChangeNumber

public int getRolePsetHierarchyChangeNumber()
Get Permission set change Hierarchy number

Returns:
value of Permission set hierachy change number

getRolesToDeny

public java.util.List getRolesToDeny()
Called during modify of SOD.

Returns:
List of Role Nodes to deny

getRolesToDenyFilter

public java.lang.String getRolesToDenyFilter()
Get deny roles filter String

Returns:
current filter set

getRootMetaTree

public EUIMetaObjectNode getRootMetaTree()
Get Root Meta node tree based on the current selectedNode type

Returns:
root meta object tree

getRootPset

public PermissionSetNode getRootPset()
Get Root Permission Set node

Returns:
root permission set node

getRootRbacNode

public com.bea.ales.rbac.MetaObject getRootRbacNode(java.lang.String type)
Retrieve the root RBAC node for custom meta objects if exists, else create and return a root node

Parameters:
type - meta object type
Returns:
MetaObject representing the MetaObject

getRootRbacPermissionSet

public com.bea.ales.rbac.RBAC_PermissionSet getRootRbacPermissionSet()
Retrieve the root PermissionSet node for tree

Returns:
RBAC_PermissionSet root permission set node

getRootRbacRole

public com.bea.ales.rbac.RBAC_Role getRootRbacRole()
Retrieve the root RBAC Role for tree

Returns:
RBAC_Role object representing root role node in tree

getRootRole

public RoleNode getRootRole()
Get root role node mostly used by copy and clone operations

Returns:
root RoleNode

getSelectedIdentityDirectoryNode

public IdentityDirectoryNode getSelectedIdentityDirectoryNode()
Get currently selected Identity Directory node

Returns:
currently selected node, null if none selected

getSelectedIdentityNode

public IdentityNode getSelectedIdentityNode()
Get currently selected Identity node

Returns:
currently selected node, null if none selected

getSelectedIdentityTab

public int getSelectedIdentityTab()
Return currently selected identity sub tabs

Returns:
value would be base on custom JSP extension

getSelectedMetaObjectTab

public int getSelectedMetaObjectTab()
Return currently selected permission set sub tabs

Returns:
value would be base on custom JSP extension

getSelectedMetaObjectTabName

public java.lang.String getSelectedMetaObjectTabName()
Return currently selected tab name

Returns:
Returns the selectedPermissionSetTabName.

getSelectedNode

public EUIMetaObjectNode getSelectedNode()
Get Currently selected custom node implementation

Returns:
currently selected node, null if none selected

getSelectedPermissionSetNode

public PermissionSetNode getSelectedPermissionSetNode()
Get currently selected Permission Set node

Returns:
currently selected node, null if none selected

getSelectedPermissionSetTab

public int getSelectedPermissionSetTab()
Return currently selected permission set sub tabs

Returns:
0 for summary, 1 for permission sets, 2 for attributes tab

getSelectedPermissionSetTabName

public java.lang.String getSelectedPermissionSetTabName()
Return currently selected tab name

Returns:
Returns the selectedPermissionSetTabName.

getSelectedPsets

public SelectedPermissionSets getSelectedPsets()
Get currently selected Permission sets

Returns:
SelectedPermissionSets selected permission sets

getSelectedReportNode

public ReportingNode getSelectedReportNode()
Return currently selected Report Node

Returns:
currently selected report node, null otherwise

getSelectedRoleNode

public RoleNode getSelectedRoleNode()
Get currently selected role node

Returns:
currently selected node, null if none selected

getSelectedRoleTab

public int getSelectedRoleTab()
Get currently selected role tab

Returns:
int : 0 for summary, 1 for Role permission, 2 for member rule, 3 for Role attributes

getSelectedRoleTabName

public java.lang.String getSelectedRoleTabName()
Return currently selected tab name

Returns:
Returns the selectedRoleTabName.

getSelectedSODRoleNode

public RoleNode getSelectedSODRoleNode()
Get currently selcted SODRole Node

Returns:
current selected node

getSodConflictsResults

public java.util.List getSodConflictsResults()
Return a list of all SOD conflicting reports

Returns:
List of Role elements

getSodData

public javax.faces.component.UIData getSodData()
Get Datamodel for SOD

Returns:
current data model

getSodFilter

public java.lang.String getSodFilter()
Retrieve filter string for SOD

Returns:
current filter string to filter SOD

getSodIdx

public int getSodIdx()
Indes of currently selected SOD row

Returns:

getSodList

public java.util.List getSodList()
Iterate over the role tree. For each role node, get the seperation of duties information and add it to our list. The list can't be updated on every call otherwise our datatable won't be selectable in any meaningfull way. Everytime the page is viewed (i.e. navigation tab is clicked or a new SOD rule is added it should be re-requested from teh back end).


getSodNode

public SODNode getSodNode()
Get current sodNode

Returns:

getSodRoleTree

public org.apache.myfaces.custom.tree2.TreeModel getSodRoleTree()
Get tree model for SOD Role

Returns:

getSodsChangeNumber

public int getSodsChangeNumber()
Get SOD number

Returns:
value of SOD change number

increasePsetPermHierarchyChangeNumber

public int increasePsetPermHierarchyChangeNumber()
Increment perm hierarchy change Hierarchy number

Returns:
incremented value of pset perm hierarchy change number

initSelectedPermissionSets

public java.lang.String initSelectedPermissionSets()
Initialize the Selected Permission Sets. This method will take the set of permissions currently associated with the role, and iterate over them turning on checks in the addPset popup for every permission set currently enabled.

Returns:
null mostly

isDisableMainButtons

public boolean isDisableMainButtons()
Called from Secure button rendered to see if buttons needs to be disabled

Returns:
boolean true of set, false otherwise

isDisableTreeButtons

public boolean isDisableTreeButtons()
Check status for disabling tree button.

Returns:
false to disable, true to enable buttons

isDisableTreeButtonsNew

public boolean isDisableTreeButtonsNew()
Check status for disabling "New" button in tree panel.

Returns:
false to disable, true to enable buttons

isDisableTreeButtonsRemove

public boolean isDisableTreeButtonsRemove()
Check status for disabling "Remove" button in tree panel.

Returns:
false to disable, true to enable buttons

isEnableRightPane

public boolean isEnableRightPane()

isNewSOD

public boolean isNewSOD()
-- private

Returns:

isPolicyHasChanged

public boolean isPolicyHasChanged()
Check status of policy changed button

Returns:
statis of policy changed status flag

isTransactionStarted

public boolean isTransactionStarted()
Check for status of current transaction flag

Specified by:
isTransactionStarted in interface Transactable
Returns:
transaction status of true if started, false otherwise

logOut

public java.lang.String logOut()
Logout of the EUI, invalidates session before logout

Returns:

moveNode

public java.lang.String moveNode()
Move currently selected node

Returns:
null mostly

newChildOK

public java.lang.String newChildOK()
Handler for new child creation, starts a transaction, invokes the respective createChild based on the currently selected node

Returns:
null mostly

newSodRule

public java.lang.String newSodRule()
Handler to create a new SOD rule

Returns:
"Success" on success, otherwise exception

populateNavTreeAfterPsetInit

public void populateNavTreeAfterPsetInit()

populateNavTreeIdentity

public void populateNavTreeIdentity()
Load identity part of the navigation tree to EUI tree


processDirectoryAttributeRowSelection

public java.lang.String processDirectoryAttributeRowSelection()
Set the selected attribute from the attribute table


processDirectoryGroupAttributeRowSelection

public java.lang.String processDirectoryGroupAttributeRowSelection()
Set the selected attribute from the identity group attribute table


processDirectoryUserAttributeRowSelection

public java.lang.String processDirectoryUserAttributeRowSelection()
Set the selected attribute from the identity user attribute table


processMemberRuleRowSelection

public java.lang.String processMemberRuleRowSelection()
Set the selected member rule from the member rule table


processMetaAttributeRowSelection

public java.lang.String processMetaAttributeRowSelection()
Set the selected attribute from the attribute table


processPermissionRowSelection

public java.lang.String processPermissionRowSelection()
Set the selected permission from the attribute table


processPermPageChange

public void processPermPageChange(javax.faces.event.ActionEvent event)
When the paginator fires we should unselect our row

Parameters:
event - action event

processPSetAttributeRowSelection

public java.lang.String processPSetAttributeRowSelection()
Set the selected attribute from the attribute table


processRoleAttributeRowSelection

public java.lang.String processRoleAttributeRowSelection()
Set the selected attribute from the attribute table


processSelectAction

public void processSelectAction(javax.faces.event.ActionEvent event)
                         throws javax.faces.event.AbortProcessingException
This methods is an event listener, the event fires when a node is selected on the navigation tree.It will cause all the data associated with the node selected to be represented by the UI

Throws:
javax.faces.event.AbortProcessingException

processSelectDestinationNodeAction

public void processSelectDestinationNodeAction(javax.faces.event.ActionEvent event)
                                        throws javax.faces.event.AbortProcessingException
This event listener fires when a node is selected on the move node navigation tree. Used by the popup for move or clone.

Throws:
javax.faces.event.AbortProcessingException

processSODRowSelection

public java.lang.String processSODRowSelection()
Handler for currently selected SOD row


processSODSelectRoleAction

public void processSODSelectRoleAction(javax.faces.event.ActionEvent event)
                                throws javax.faces.event.AbortProcessingException
Throws:
javax.faces.event.AbortProcessingException

processTabChange

public void processTabChange(org.apache.myfaces.custom.tabbedpane.TabChangeEvent arg0)
                      throws javax.faces.event.AbortProcessingException
Set the selected tab to save the state as other submits happen on the UI

Throws:
javax.faces.event.AbortProcessingException
See Also:
TabChangeListener.processTabChange(org.apache.myfaces.custom.tabbedpane.TabChangeEvent)

processValueChange

public void processValueChange(javax.faces.event.ValueChangeEvent arg0)
                        throws javax.faces.event.AbortProcessingException
Set the appropriate reporting node variable

Parameters:
arg0 - value change event
Throws:
javax.faces.event.AbortProcessingException
See Also:
ValueChangeListener.processValueChange(javax.faces.event.ValueChangeEvent)

refresh

public void refresh()
Refresh call to repopulate tree


removeCurrentSodElement

public java.lang.String removeCurrentSodElement()
Handler to remove a selected SOD element

Returns:
null mostly

removeNode

public java.lang.String removeNode()
Remove the currently selected node, and reset the update parent flag

Returns:
null mostly

renameNode

public java.lang.String renameNode()
Rename currently selected node

Returns:
null mostly

revertDistribution

public java.lang.String revertDistribution()
Called to revert changes made during session. Just rollsback current transaction and reloads the tree.

Specified by:
revertDistribution in interface Distributable
Returns:
String null mostly

rollbackTransaction

public boolean rollbackTransaction()
Rollback current transaction for current context

Specified by:
rollbackTransaction in interface Transactable
Returns:
true on success, false otherwise

setCurrentSODElement

public void setCurrentSODElement(SODElement currentSODElement)
Set or reset current selectd SOD element

Parameters:
currentSODElement - new SOD element

setDirectoryAttributeData

public void setDirectoryAttributeData(javax.faces.component.UIData directoryAttributeData)
Set new model for identity Attributes

Parameters:
directoryAttributeData - new data model to set

setDirectoryGroupAttributeData

public void setDirectoryGroupAttributeData(javax.faces.component.UIData directoryGroupAttributeData)
Set new model for group Attributes

Parameters:
directoryGroupAttributeData - new data model to set

setDirectoryUserAttributeData

public void setDirectoryUserAttributeData(javax.faces.component.UIData directoryUserAttributeData)
Set new model for user Attributes

Parameters:
directoryUserAttributeData - new data model to set

setDisableMainButtons

public void setDisableMainButtons(boolean disableMainButtons)
Set the disable Main buttons to true, false otherwise

Parameters:
disableMainButtons - set true to disable main buttons, false to enable

setDistributionStatus

public void setDistributionStatus(com.bea.ales.rbac.DistributionStatus distributionStatus)
Sets distribution status flag

Specified by:
setDistributionStatus in interface Distributable
Parameters:
distributionStatus - status to set

setErrMsg

public void setErrMsg(java.lang.String msg)
Set new error message

Parameters:
msg - - message to set

setMemberRuleData

public void setMemberRuleData(javax.faces.component.UIData memberRuleData)
Set new data for memeber rule

Parameters:
memberRuleData - new data to set

setMetaAttributeData

public void setMetaAttributeData(javax.faces.component.UIData metaAttributeData)
Set new data model for custom meta object attribute Data

Parameters:
metaAttributeData - new data model to set

setNavigationTree

public void setNavigationTree(org.apache.myfaces.custom.tree2.TreeModel navigationTree)
Set new navigation tree

Parameters:
navigationTree - new TreeModel to set or reset

setNewChildName

public void setNewChildName(java.lang.String newChildName)
Set new child name during create

Parameters:
newChildName - The newChildName to set.

setNodeType

public void setNodeType(java.lang.String nodeType)
Set a new type for selected node, one of BaseTreeNode nodetype attributes or a custom type node for meta object implementations

Parameters:
nodeType - BaseTreeNode node type constants or custom type

setPermissionData

public void setPermissionData(javax.faces.component.UIData permissionData)
Set new data model for permissions

Parameters:
permissionData -

setPermissionNode

public void setPermissionNode(PermissionNode selectedPermissionNode)
Call to reset current selected Permission Node.

Parameters:
selectedPermissionNode - new node to select

setPolicyHasChanged

public void setPolicyHasChanged(boolean policyHasChanged)
Set new policy changed status

Parameters:
policyHasChanged - policy change status

setPsetAttributeData

public void setPsetAttributeData(javax.faces.component.UIData psetAttributeData)
Set new model for permission set attribute data

Parameters:
psetAttributeData - new model to set

setRoleAttributeData

public void setRoleAttributeData(javax.faces.component.UIData roleAttributeData)
Set new model for Role Attributes

Parameters:
roleAttributeData - new data model to set

setRoleNodePermissionSets

public java.lang.String setRoleNodePermissionSets()
Set the permission sets for the current role node. This is called When when addPset.jsp's ok button is executed.


setRolesToDenyFilter

public void setRolesToDenyFilter(java.lang.String rolesToDenyFilter)
Set new roles to deny filter

Parameters:
rolesToDenyFilter - new filter string

setSelectedIdentityDirectoryNode

public void setSelectedIdentityDirectoryNode(IdentityDirectoryNode selectedIdentityDirectoryNode)
Reset currently selected identity directory node.

Parameters:
selectedIdentityDirectoryNode - new node to select

setSelectedIdentityNode

public void setSelectedIdentityNode(IdentityNode selectedIdentityNode)
Reset currently selected identity node.

Parameters:
selectedIdentityNode - new node to select

setSelectedMetaObjectTab

public void setSelectedMetaObjectTab(int selectedMetaObjectTab)
Change currently selected meta object tab

Parameters:
selectedMetaObjectTab -

setSelectedNode

public void setSelectedNode(EUIMetaObjectNode a_selectedNode)
Set new EUI meta node for a custom implementation node


setSelectedPermissionSetNode

public void setSelectedPermissionSetNode(PermissionSetNode selectedPermissionSetNode)
Reset currently selected permission set node.

Parameters:
selectedPermissionSetNode - new node to select

setSelectedPermissionSetTab

public void setSelectedPermissionSetTab(int selectedPermissionSetTab)
Change currently selected permission set sub tab

Parameters:
selectedPermissionSetTab - new tab to set

setSelectedPsets

public void setSelectedPsets(SelectedPermissionSets selectedPsets)
Set new set of permission sets as selected

Parameters:
selectedPsets - new set to be selected

setSelectedReportNode

public void setSelectedReportNode(ReportingNode selectedReportNode)
Selects a new Report node

Parameters:
selectedReportNode -

setSelectedRoleNode

public void setSelectedRoleNode(RoleNode selectedRoleNode)
Select a new role node


setSelectedRoleTab

public void setSelectedRoleTab(int selectedRoleTab)
Set new tab to display for selected role

Parameters:
selectedRoleTab - 0 for summary, 1 for Role permission, 2 for member rule, 3 for Role attributes

setSelectedSODRoleNode

public void setSelectedSODRoleNode(RoleNode selectedSODRoleNode)
Select new SOD Role node

Parameters:
selectedSODRoleNode - new node to select

setSodData

public void setSodData(javax.faces.component.UIData sodData)
Set new data model for SOD

Parameters:
sodData - new data model

setSodFilter

public void setSodFilter(java.lang.String sodFilter)
Set new filter string for set

Parameters:
sodFilter - filter to set

setTransactionStarted

public void setTransactionStarted(boolean transactionStarted)
Reset current transaction flag

Specified by:
setTransactionStarted in interface Transactable
Parameters:
transactionStarted -

startDistribution

public java.lang.String startDistribution()
Start Distribution of changes made during current session. This gets initated on submit of "Save Changes" for example. Retrives policy distribtion and distributes policy asynchronously via a new thread. Also updates the distribution status.

Specified by:
startDistribution in interface Distributable
Returns:
null mostly

startTransaction

public boolean startTransaction()
Starts transaction for the current RBAC Context if not started.

Specified by:
startTransaction in interface Transactable
Returns:
true on start, false otherwise

updateSodRule

public java.lang.String updateSodRule()
Handler for modification of selected SOD

Returns:
null mostly


Copyright © 2007 BEA Systems Inc. All Rights Reserved.