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

java.lang.Object
  extended bycom.bea.security.entitlements.admin.beans.SelectedPermissionSets
All Implemented Interfaces:
java.io.Serializable

public class SelectedPermissionSets
extends java.lang.Object
implements java.io.Serializable

SelectedPermissionSet bean is responsible for providing state information for the PermissionSet popup dialog. For example tracking what permissions sets are associated with a role and having the right set of check boxes selected. When parent checkbox is selected, this also selects the checkbox for children and disabling children would uncheck parent.

See Also:
Serialized Form

Field Summary
static java.lang.String SUCCESS
          Constant to indicate success
 
Constructor Summary
SelectedPermissionSets()
           
 
Method Summary
 java.lang.String changeSelection()
          Handle when a checkbox is checked or unchecked in the UI.
 java.lang.String checkSelectedPermissionSets()
          Gets the currently selected permission sets and select each.
 void clearChecks()
           
 PermissionSetNode getCurrentPermissionSetTree()
          Return the PermissionSet details for selected node
 org.apache.myfaces.custom.tree2.TreeModel getPermissionSetTree()
          Get data for the permission set tree
 PermissionSetNode getSelectedPermissionSet()
          Retrieve current selected Permission Set
 org.apache.myfaces.custom.tree2.HtmlTree getTreeDataObject()
          Returns data object representing Tree
 void processPermissionSetSelect(javax.faces.event.ActionEvent event)
           
 void setLastPsetHierarchyChangeNumber(int number)
          Set the Hierarchy Change number; used to limit refresh
 void setPermissionSetTree(PermissionSetNode fullTree)
          Any update in PermissionSet tree, reset the tree ; called from SessionState
 void setSelectedPermissionSet(PermissionSetNode selectedPermissionSet)
          Set the Selected PermissionSet
 void setTreeDataObject(org.apache.myfaces.custom.tree2.HtmlTree dataObject)
          Set or reset current model for tree
 void setupChecks(TreeNodeWithSelection currentNodes)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SUCCESS

public static final java.lang.String SUCCESS
Constant to indicate success

See Also:
Constant Field Values
Constructor Detail

SelectedPermissionSets

public SelectedPermissionSets()
Method Detail

changeSelection

public java.lang.String changeSelection()
Handle when a checkbox is checked or unchecked in the UI. This logic makes sure that if a parent is selected, all children are also checked, or if a child is unchecked, that all parents are also unchecked.


checkSelectedPermissionSets

public java.lang.String checkSelectedPermissionSets()
Gets the currently selected permission sets and select each.

Returns:
SelectedPermissionSets.SUCCESS on success, exception otherwise

clearChecks

public void clearChecks()

getCurrentPermissionSetTree

public PermissionSetNode getCurrentPermissionSetTree()
Return the PermissionSet details for selected node

Returns:
PermissionSetNode selected PermissionSetNode

getPermissionSetTree

public org.apache.myfaces.custom.tree2.TreeModel getPermissionSetTree()
Get data for the permission set tree

Returns:
TreeModel model for tree

getSelectedPermissionSet

public PermissionSetNode getSelectedPermissionSet()
Retrieve current selected Permission Set

Returns:
PermissionSetNode thats currently selected ; null if none

getTreeDataObject

public org.apache.myfaces.custom.tree2.HtmlTree getTreeDataObject()
Returns data object representing Tree

Returns:
org.apache.myfaces.custom.tree2.HtmlTree

processPermissionSetSelect

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

setLastPsetHierarchyChangeNumber

public void setLastPsetHierarchyChangeNumber(int number)
Set the Hierarchy Change number; used to limit refresh

Parameters:
number -

setPermissionSetTree

public void setPermissionSetTree(PermissionSetNode fullTree)
Any update in PermissionSet tree, reset the tree ; called from SessionState

Parameters:
fullTree - new tree to be updated

setSelectedPermissionSet

public void setSelectedPermissionSet(PermissionSetNode selectedPermissionSet)
Set the Selected PermissionSet

Parameters:
selectedPermissionSet - permission set node to select

setTreeDataObject

public void setTreeDataObject(org.apache.myfaces.custom.tree2.HtmlTree dataObject)
Set or reset current model for tree

Parameters:
dataObject - of type org.apache.myfaces.custom.tree2.HtmlTree

setupChecks

public void setupChecks(TreeNodeWithSelection currentNodes)


Copyright © 2007 BEA Systems Inc. All Rights Reserved.