BEA Systems, Inc.

com.beasys.commerce.user.jsp
Class JspHierarchyBase

java.lang.Object
  |
  +--weblogic.servlet.jsp.JspBase
        |
        +--com.beasys.commerce.axiom.jsp.JspBase
              |
              +--com.beasys.commerce.axiom.jsp.ToolsJspBase
                    |
                    +--com.beasys.commerce.user.jsp.JspHierarchyBase

public abstract class JspHierarchyBase
extends ToolsJspBase

Base class for JSP pages that need to display group hierarchy trees. This provides functions to retrieve group information and generate HTML to display the tree view of parent-child group relationships, along with the appropriate links based on the page context (create, delete, search, ... )


Fields inherited from class com.beasys.commerce.axiom.jsp.ToolsJspBase
debug
 
Fields inherited from class com.beasys.commerce.axiom.jsp.JspBase
debug, DESTINATION_TAG
 
Fields inherited from class weblogic.servlet.jsp.JspBase
_servletConfig
 
Constructor Summary
JspHierarchyBase()
           
 
Method Summary
 java.lang.String[] getTopLevelGroupNames()
          Method which returns the top level group as an array of strings
 java.lang.String printCreateGroupRow(java.lang.String groupName, HierarchyManagementBean hierarchyManagementBean, javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request)
          Print the most basic element in the hierarchy - the group, when in the Create Group page
 java.lang.String printEditGroupRow(java.lang.String groupName, HierarchyManagementBean hierarchyManagementBean, javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request)
          Print the most basic element in the hierarchy - the group, when in the Group page
 java.lang.String printExpandedGroup(java.lang.String groupName, int position, HierarchyManagementBean hierarchyManagementBean, javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request)
          If a particular group is expanded, print it in a separate table to format it correctly.
 java.lang.String printSearchGroupRow(java.lang.String groupName, HierarchyManagementBean hierarchyManagementBean, javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request)
          Print the most basic element in the hierarchy - the group, when in the Search Group Page
 java.lang.String printSubGroups(java.lang.String groupName, int position, HierarchyManagementBean hierarchyManagementBean, javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request)
          Generate the HTML to display a list of subgroups of the given group.
 
Methods inherited from class com.beasys.commerce.axiom.jsp.ToolsJspBase
fixupRelativeURL, reconcileFile, reconcileFile
 
Methods inherited from class com.beasys.commerce.axiom.jsp.JspBase
cnvrtSC, createURL, escapeQuotes, getCurrentPage, getDefaultDestination, getDefaultSuccessor, getHomePage, getLoggedIn, getRepositoryDirectory, getRequestURI, getServletConfig, getSessionValue, getTrafficURI, getTrafficURINoContext, getWorkingDirectory, pathFromRequest, putSessionValue, removeSessionValue, setAlternateDestination, setLoggedIn, setOverrideDestination, setSessionValue, setSuccessor, setUser, setUserAndSuccessor
 
Methods inherited from class weblogic.servlet.jsp.JspBase
_jspService, destroy, getServletConfig, getServletInfo, init, jspDestroy, jspInit, service
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JspHierarchyBase

public JspHierarchyBase()
Method Detail

printSubGroups

public java.lang.String printSubGroups(java.lang.String groupName,
                                       int position,
                                       HierarchyManagementBean hierarchyManagementBean,
                                       javax.servlet.http.HttpServletResponse response,
                                       javax.servlet.http.HttpServletRequest request)
                                throws java.rmi.RemoteException,
                                       UserManagementException,
                                       ToolkitException,
                                       javax.ejb.CreateException
Generate the HTML to display a list of subgroups of the given group. This method is called recursively as needed, depending on which nodes of the tree are expanded.
Parameters:
groupName - the current group
position - which level of indention in the tree this group is in
hierarchyManagementBean - the jsp bean containing current state info
response - the current HttpServletResponse
request - the current HttpServletRequest
Returns:
the generated HTML

printExpandedGroup

public java.lang.String printExpandedGroup(java.lang.String groupName,
                                           int position,
                                           HierarchyManagementBean hierarchyManagementBean,
                                           javax.servlet.http.HttpServletResponse response,
                                           javax.servlet.http.HttpServletRequest request)
                                    throws java.rmi.RemoteException,
                                           UserManagementException,
                                           ToolkitException,
                                           javax.ejb.CreateException
If a particular group is expanded, print it in a separate table to format it correctly.
Parameters:
groupName - the group to display
position - the number of levels of indention
hierarchyManagementBean - the jsp bean containing current state info
response - the current HttpServletResponse
request - the current HttpServletRequest
Returns:
the generated HTML

printCreateGroupRow

public java.lang.String printCreateGroupRow(java.lang.String groupName,
                                            HierarchyManagementBean hierarchyManagementBean,
                                            javax.servlet.http.HttpServletResponse response,
                                            javax.servlet.http.HttpServletRequest request)
Print the most basic element in the hierarchy - the group, when in the Create Group page
Parameters:
groupName - String
hierarchyManagementBean - the jsp bean containing current state info
response - the current HttpServletResponse
request - the current HttpServletRequest
Returns:
the generated HTML

printEditGroupRow

public java.lang.String printEditGroupRow(java.lang.String groupName,
                                          HierarchyManagementBean hierarchyManagementBean,
                                          javax.servlet.http.HttpServletResponse response,
                                          javax.servlet.http.HttpServletRequest request)
                                   throws UserManagementException,
                                          ToolkitException,
                                          javax.ejb.CreateException,
                                          java.rmi.RemoteException
Print the most basic element in the hierarchy - the group, when in the Group page
Parameters:
groupName - String
hierarchyManagementBean - the jsp bean containing current state info
response - the current HttpServletResponse
request - the current HttpServletRequest
Returns:
the generated HTML

printSearchGroupRow

public java.lang.String printSearchGroupRow(java.lang.String groupName,
                                            HierarchyManagementBean hierarchyManagementBean,
                                            javax.servlet.http.HttpServletResponse response,
                                            javax.servlet.http.HttpServletRequest request)
                                     throws UserManagementException,
                                            ToolkitException,
                                            javax.ejb.CreateException,
                                            java.rmi.RemoteException
Print the most basic element in the hierarchy - the group, when in the Search Group Page
Parameters:
groupName - String
hierarchyManagementBean - the jsp bean containing current state info
response - the current HttpServletResponse
request - the current HttpServletRequest
Returns:
the generated HTML

getTopLevelGroupNames

public java.lang.String[] getTopLevelGroupNames()
                                         throws java.rmi.RemoteException,
                                                UserManagementException,
                                                ToolkitException,
                                                javax.ejb.CreateException
Method which returns the top level group as an array of strings

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved