|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.custom.tree2.TreeNodeBase
com.bea.security.entitlements.admin.rbac.TreeNodeWithSelection
com.bea.security.entitlements.admin.rbac.BaseTreeNode
com.bea.security.entitlements.admin.rbac.AttributableEntitlementNode
com.bea.security.entitlements.admin.rbac.PermissionNode
Permission represents a right to perform an operation on an object. Node represents an RBAC_Permission object.
Field Summary |
Fields inherited from class com.bea.security.entitlements.admin.rbac.BaseTreeNode |
IDENTITY_DIRECTORY_NODE, IDENTITY_NODE, NAVIGATION_NODE, PERMISSION_NODE, PERMISSION_SET_NODE, REPORTING_NODE, RESOURCE_NODE, ROLE_NODE, SOD_NODE |
Constructor Summary | |
PermissionNode(java.lang.String name,
boolean isLeaf)
Constructor to create a new PermissionNode |
Method Summary | |
java.lang.String |
cancelModifyAttribute()
When canceling the modification of the attribute of permission, If the new rule is canceled, make sure we delete the rule. |
java.lang.String |
cancelModifyPermission()
When canceling the modification of a permission, If the new rule is canceled, make sure we delete the rule. |
java.lang.String |
filterPermissions()
Filter permissions |
java.lang.String |
finishedModifyAttribute()
When finished modifying a permission attribute, make sure that if it was a new attribute we re-set our state back to false so that on cancel, we don't accidentally delete an existing rule. |
java.lang.String |
finishedModifyPermission()
When finished modifying a permission, make sure that if it was a new rule we re-set our state back to false so that on cancel, we don't accidentally delete an existing rule. |
java.util.List |
getAllPermissions(java.lang.String filter)
Get all permissions for this node, for a given filter |
javax.faces.component.UIData |
getAttributeData()
Get Attribute Data associate for this node |
java.util.List |
getAttributes()
Return a list Attributes associated to this node |
int |
getAttrIdx()
Get Attribute id |
int |
getAttrUIIdx()
Get row index for the attribute in this node |
AttributeElement |
getCurrentAttribute()
Get Current attribute for this node |
PermissionElement |
getCurrentPermission()
Get current selected permission for this node |
TreeNodeWithSelection |
getNodeByName(java.lang.String name)
Retrieve node with a given name |
java.lang.String |
getNodeType()
Return permission node type constant |
PermissionElement |
getPermByName(java.lang.String name)
Retrieve permission element for a given name |
java.lang.String |
getPermissionFilter()
Return permission filter for this node |
int |
getPermissionIdx()
Get permission nodes row index |
java.util.List |
getPermissions()
Get a list of permissions for this node, for already set filter |
org.apache.myfaces.custom.tree2.TreeModel |
getResourceTreeModel()
Get model associate to this TreeModel |
boolean |
isDisableModifyPermissionOK()
Disable/Enable Modify permission OK button in modify permisions page |
boolean |
isNewPerm()
Is this a new permission node |
java.lang.String |
newAttributeAction()
Create a new permission to be edited in the UI. |
java.lang.String |
newPermAction()
Create a new permission to be edited in the UI. |
java.lang.String |
processAttrRowSelection()
Set the selected attribute from the attribute table |
void |
processResourceSelect(javax.faces.event.ActionEvent event)
This event listener fires when a node is selected on the permission set tree. |
java.lang.String |
removeCurrentAttribute()
Removes currently selected Attribute from permission. |
void |
removeCurrentAttributeFromList()
Remove the currently selected Attribute from the list |
java.lang.String |
removeCurrentPermission()
|
java.lang.String |
removeCurrentPermissionFromList()
Remove permission from this node |
void |
setAttributeData(javax.faces.component.UIData attributeData)
Set a new data model for this node |
void |
setAttributes(java.util.List attributes)
Set a new set of attributes for this node |
void |
setAttrIdx(int attrIdx)
set row index for this attribute |
void |
setCurrentAttribute(AttributeElement currentAttribute)
Set current attribute to set for this node |
void |
setCurrentPermission(PermissionElement currentPermission)
Set a new Permission for this node |
void |
setNewPerm(boolean newPerm)
Set this permission node to say its new |
void |
setPermissionFilter(java.lang.String filter)
Set filter for this new permission node |
void |
setPermissionIdx(int permissionIdx)
Set a new permission node row index |
void |
setPermissions(java.util.List permissions)
Set a new set of permissions to this node |
Methods inherited from class com.bea.security.entitlements.admin.rbac.AttributableEntitlementNode |
isNewAttribute, setNewAttribute |
Methods inherited from class com.bea.security.entitlements.admin.rbac.TreeNodeWithSelection |
compareTo, getParent, isSelected, removeNode, setChildrenSelectedRecursively, setNeedUpdateChildren, setParent, setSelected |
Methods inherited from class org.apache.myfaces.custom.tree2.TreeNodeBase |
getChildCount, getChildren, getDescription, getIdentifier, getType, isLeaf, setDescription, setIdentifier, setLeaf, setType |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PermissionNode(java.lang.String name, boolean isLeaf)
name
- Name of the Permission to useisLeaf
- true if leaf, false otherwiseMethod Detail |
public java.lang.String cancelModifyAttribute()
cancelModifyAttribute
in class AttributableEntitlementNode
public java.lang.String cancelModifyPermission()
public java.lang.String filterPermissions()
public java.lang.String finishedModifyAttribute()
public java.lang.String finishedModifyPermission()
public java.util.List getAllPermissions(java.lang.String filter)
filter
- to narrow the permission results
public javax.faces.component.UIData getAttributeData()
public java.util.List getAttributes()
public int getAttrIdx()
public int getAttrUIIdx()
public AttributeElement getCurrentAttribute()
getCurrentAttribute
in class AttributableEntitlementNode
public PermissionElement getCurrentPermission()
public TreeNodeWithSelection getNodeByName(java.lang.String name)
getNodeByName
in class TreeNodeWithSelection
name
- Name to recurse
public java.lang.String getNodeType()
getNodeType
in class BaseTreeNode
public PermissionElement getPermByName(java.lang.String name)
public java.lang.String getPermissionFilter()
public int getPermissionIdx()
public java.util.List getPermissions()
public org.apache.myfaces.custom.tree2.TreeModel getResourceTreeModel()
public boolean isDisableModifyPermissionOK()
public boolean isNewPerm()
public java.lang.String newAttributeAction()
newAttributeAction
in class AttributableEntitlementNode
public java.lang.String newPermAction()
public java.lang.String processAttrRowSelection()
public void processResourceSelect(javax.faces.event.ActionEvent event) throws javax.faces.event.AbortProcessingException
event
- ActionEvent on select
javax.faces.event.AbortProcessingException
public java.lang.String removeCurrentAttribute()
public void removeCurrentAttributeFromList()
removeCurrentAttributeFromList
in class AttributableEntitlementNode
public java.lang.String removeCurrentPermission()
public java.lang.String removeCurrentPermissionFromList()
public void setAttributeData(javax.faces.component.UIData attributeData)
attributeData
- new UIData model to setpublic void setAttributes(java.util.List attributes)
setAttributes
in class AttributableEntitlementNode
attributes
- public void setAttrIdx(int attrIdx)
setAttrIdx
in class AttributableEntitlementNode
attrIdx
- attribute row index to set for this nodepublic void setCurrentAttribute(AttributeElement currentAttribute)
setCurrentAttribute
in class AttributableEntitlementNode
currentAttribute
- AttributeElement to setpublic void setCurrentPermission(PermissionElement currentPermission)
currentPermission
- new permission to setpublic void setNewPerm(boolean newPerm)
newPerm
- true if new, false otherwisepublic void setPermissionFilter(java.lang.String filter)
filter
- public void setPermissionIdx(int permissionIdx)
permissionIdx
- public void setPermissions(java.util.List permissions)
permissions
- List of PermissionElement objects
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |