|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.beasys.commerce.user.jsp.beans.HierarchyManagementBean
Jsp Bean to manage the state of group hierarchies so that they can be rendered correctly.
Field Summary | |
static java.lang.String |
COLLAPSE
for collapse tree action |
static java.lang.String |
CREATE
Constant used to help determine if the bean is used in the create group page |
static java.lang.String |
DELETE
for deleting tree item action |
static java.lang.String |
EDIT
Constant used to help determine if the bean is used in the edit group page |
static java.lang.String |
EXPAND
for expand tree action |
static java.lang.String |
SEARCH
Constant used to help determine if the bean is used in the search group page |
Constructor Summary | |
HierarchyManagementBean()
|
Method Summary | |
void |
addGroupAsExpanded(java.lang.String group)
Add a groupName to the expandedGroups table. |
boolean |
doSearch(java.lang.String group)
Recursive function to do the search through all the subgroups |
java.lang.String |
getCurrentGroupName()
|
java.lang.String |
getDisplayType()
Getting the display type. |
java.lang.String |
getSearchGroup()
|
static UserManager |
getUserManager()
Convenience method to return an instance of the UserManager session bean |
boolean |
isCreatePage()
if the display type is create page, return true |
boolean |
isEditPage()
if the display type is edit page, return true |
boolean |
isExpanded(java.lang.String groupName)
This method checks whether the group passed in is expanded or not - it does it by searching for the group within the Hashtable. |
boolean |
isSearchPage()
if the display type is search page, return true |
void |
removeGroupAsExpanded(java.lang.String group)
Remove the group from the expandedGroups table. |
void |
reset()
Reset the expanded groups hashtable |
boolean |
search(java.lang.String group2Search)
Search for a particular group in the hierarchy. |
void |
setCurrentGroupName(java.lang.String groupName)
|
void |
setDisplayType(java.lang.String type)
Setting the hierarchy display type to a particular value Currently, the hierarchy displays only two display types - list/create & search/edit |
void |
setSearchGroup(java.lang.String group)
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final java.lang.String CREATE
public static final java.lang.String SEARCH
public static final java.lang.String EDIT
public static final java.lang.String EXPAND
public static final java.lang.String COLLAPSE
public static final java.lang.String DELETE
Constructor Detail |
public HierarchyManagementBean()
Method Detail |
public java.lang.String getSearchGroup()
public void setSearchGroup(java.lang.String group)
public java.lang.String getCurrentGroupName()
public void setCurrentGroupName(java.lang.String groupName)
public boolean isExpanded(java.lang.String groupName)
groupName
- the name of the group to checkpublic void setDisplayType(java.lang.String type)
type
- Stringpublic java.lang.String getDisplayType()
public boolean isCreatePage()
public boolean isEditPage()
public boolean isSearchPage()
public void addGroupAsExpanded(java.lang.String group)
group
- Stringpublic void removeGroupAsExpanded(java.lang.String group)
group
- Stringpublic void reset()
public boolean search(java.lang.String group2Search) throws UserManagementException, ToolkitException, javax.ejb.CreateException, java.rmi.RemoteException
public boolean doSearch(java.lang.String group) throws java.rmi.RemoteException, UserManagementException, ToolkitException, javax.ejb.CreateException
String
- grouppublic static UserManager getUserManager() throws UserManagementException, ToolkitException, javax.ejb.CreateException, java.rmi.RemoteException
|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |