|
BEA Systems, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--weblogic.servlet.jsp.JspBase
|
+--com.beasys.portal.admin.PortalJspBase
Acts as a base class for all Portal JSP pages. Prescribes methods
which faciltate portal run-time operation. Allows access to the
PortalServiceManager URI, the Portal's working directory,
the Portal's home page, the Portal's current page, and the
PortalProperties PortalManagerinstantiations. Also,
facilitates management of the portal run-time session, by providing
convenience methods for setting and getting session values, and
setting and getting JSP destinations. Implements several constants
interface to reduce the burden of constant referencing by JSP pages.
| Field Summary | |
protected static boolean |
debug
Whether debug mode is on. |
static java.lang.String |
DESTINATION_TAG
A property name denoting the destination to be used with form submission. |
| Fields inherited from class weblogic.servlet.jsp.JspBase |
_servletConfig |
| Fields inherited from interface com.beasys.portal.admin.PortalAdminConstants |
DEFAULT_DESTINATION,
DESTINATION_URI,
FALSE,
IMMUTABLE_PORTAL_PAGE,
PORTAL_COOKIE_TIMEOUT,
PORTAL_GROUP,
PORTAL_LOGGED_IN,
PORTAL_MANAGER_A,
PORTAL_NAME,
PORTAL_PAGE,
PORTAL_PROPERTIES_A,
PORTAL_SESSION_TIMEOUT,
PORTAL_USER,
PROFILE_GROUP,
PROFILE_USER,
TRAFFIC_URI,
TRANSACTION_SERVICE,
TRANSACTION_TIMEOUT,
TRUE,
WORKING_DIR |
| Fields inherited from interface com.beasys.portal.PortalProfileConstants |
PROFILE_ADDRESS,
PROFILE_BANNER_COLOR,
PROFILE_BODY_COLOR,
PROFILE_CITY,
PROFILE_COUNTRY,
PROFILE_EMAIL,
PROFILE_FIRST,
PROFILE_LAST,
PROFILE_PORTLET_BG_COLOR,
PROFILE_PREFIX,
PROFILE_REFRESH,
PROFILE_REMINDER,
PROFILE_SHOW_BORDERS,
PROFILE_STATE,
PROFILE_TIMEZONE,
PROFILE_TITLE_FONT_COLOR,
PROFILE_TITLEBAR_COLOR,
PROFILE_ZIP |
| Fields inherited from interface com.beasys.portal.admin.JspPages |
JSP_ALTERNATE_FOOTER,
JSP_ALTERNATE_HEADER,
JSP_BASE_DIRECTORY,
JSP_BASE_HEADER,
JSP_COLOR_PREFS,
JSP_FOOTER,
JSP_FULL_SCREEN_PORTLET,
JSP_GEN_PREFS,
JSP_HEADER,
JSP_PORTAL,
JSP_PORTAL_CONTENT,
JSP_PORTAL_FRAMEWORK_DIRECTORY,
JSP_PORTLET,
JSP_TITLE_BAR,
JSP_USER_ADD_PORTLETS,
JSP_USER_HELP_FEATURES,
JSP_USER_LAYOUT,
JSP_USER_LOGIN,
JSP_USER_REG,
JSP_USER_REG_SUMMARY |
| Fields inherited from interface com.beasys.portal.admin.JspPages |
JSP_ALTERNATE_FOOTER,
JSP_ALTERNATE_HEADER,
JSP_BASE_DIRECTORY,
JSP_BASE_HEADER,
JSP_COLOR_PREFS,
JSP_FOOTER,
JSP_FULL_SCREEN_PORTLET,
JSP_GEN_PREFS,
JSP_HEADER,
JSP_PORTAL,
JSP_PORTAL_CONTENT,
JSP_PORTAL_FRAMEWORK_DIRECTORY,
JSP_PORTLET,
JSP_TITLE_BAR,
JSP_USER_ADD_PORTLETS,
JSP_USER_HELP_FEATURES,
JSP_USER_LAYOUT,
JSP_USER_LOGIN,
JSP_USER_REG,
JSP_USER_REG_SUMMARY |
| Constructor Summary | |
PortalJspBase()
|
|
| Method Summary | |
static java.lang.String |
cnvrtSC(java.lang.String theInpStr)
Given a string, substitute HTML entities for HTML special characters. |
static java.lang.String |
createURL(javax.servlet.http.HttpServletRequest aRequest,
java.lang.String destination,
java.lang.String parameters)
Creates a portal framework URL from the given request. |
static java.lang.String |
fixupRelativeURL(java.lang.String aURL,
javax.servlet.http.HttpServletRequest aRequest)
With the system using jsp:forward the relative directories may not be set employed correctly. |
static java.lang.String |
getCurrentPage(javax.servlet.http.HttpServletRequest aRequest)
Returns the currently active portal page. |
static java.lang.String |
getDefaultDestination(javax.servlet.http.HttpServletRequest aRequest)
Get the default destination specified in the registration. |
static java.lang.String |
getHomePage(javax.servlet.http.HttpServletRequest aRequest)
Retrieves the portal home page specified by the start-up parameters for the portal. |
static boolean |
getLoggedIn(javax.servlet.http.HttpServletRequest aRequest)
Indicates whether a user is currently logged into the portal. |
static PortalManager |
getPortalManager(javax.servlet.http.HttpServletRequest aRequest)
Retrieves the com.beasys.portal.PortalManager out of the request. |
static java.lang.String |
getPortalPage(javax.servlet.http.HttpServletRequest aRequest)
Deprecated. replaced by getHomePage |
static PortalProperties |
getPortalProperties(javax.servlet.http.HttpServletRequest aRequest)
retrieves the com.beasys.portal.PortalProperties out of the request. |
static java.lang.String |
getRequestURI(javax.servlet.http.HttpServletRequest aRequest)
Retrieves the request URI. |
static java.lang.Object |
getSessionValue(java.lang.String aName,
javax.servlet.http.HttpServletRequest aRequest)
Retrieves a session value. |
static java.lang.String |
getTrafficURI(javax.servlet.http.HttpServletRequest aRequest)
Retrieves the URI of the PortalServiceManager. |
static java.lang.String |
getWorkingDirectory(javax.servlet.http.HttpServletRequest aRequest)
Get the working directory specified in the registration. |
static java.lang.String |
pathFromRequest(javax.servlet.http.HttpServletRequest aRequest)
Get the fully-qualified path of the request URI. |
static void |
putSessionValue(java.lang.String aName,
java.lang.Object aValue,
javax.servlet.http.HttpServletRequest aRequest)
Sets a session value. |
static void |
removeSessionValue(java.lang.String aName,
javax.servlet.http.HttpServletRequest aRequest)
Removes a session value. |
static void |
setAlternateDestination(javax.servlet.http.HttpServletRequest req,
java.lang.String dest)
Deprecated. use setOverrideDestination |
static void |
setLoggedIn(javax.servlet.http.HttpServletRequest aRequest,
javax.servlet.http.HttpServletResponse aResponse,
boolean aBool)
Sets the logged-in state. |
static void |
setOverrideDestination(javax.servlet.http.HttpServletRequest req,
java.lang.String dest)
Sets the alternate forward variable. |
static void |
setSessionValue(java.lang.String aName,
java.lang.Object aValue,
javax.servlet.http.HttpServletRequest aRequest)
Sets a session value. |
| 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 |
| Field Detail |
protected static final boolean debug
public static final java.lang.String DESTINATION_TAG
| Constructor Detail |
public PortalJspBase()
| Method Detail |
public static java.lang.String getTrafficURI(javax.servlet.http.HttpServletRequest aRequest)
PortalServiceManager.aRequest - the javax.servlet.http.HttpServletRequest from which
the PortalServiceManager is obtained.String the URI of the PortalServiceManagerpublic static java.lang.String getWorkingDirectory(javax.servlet.http.HttpServletRequest aRequest)
aRequeset - javax.servlet.http.HttpServletRequest from which
the PortalServiceManager is obtained.String the value of the working directory of the
current portal instantiationpublic static java.lang.String getDefaultDestination(javax.servlet.http.HttpServletRequest aRequest)
the - javax.servlet.http.HttpServletRequest corresponding
to the PortalServiceManagerString the default destination of the portal instantiationpublic static java.lang.String getRequestURI(javax.servlet.http.HttpServletRequest aRequest)
null or empty, the request.getRequestURI() method wil be
called.the - javax.servlet.http.HttpServletRequest for which the URI
is soughtpublic static java.lang.String pathFromRequest(javax.servlet.http.HttpServletRequest aRequest)
aRequest - the javax.servlet.http.HttpServletRequest for which
the fully-qualified path is soughtString the fully qualified path from the request
public static java.lang.String createURL(javax.servlet.http.HttpServletRequest aRequest,
java.lang.String destination,
java.lang.String parameters)
aRequest - The javax.servlet.http.HttpServletRequest used to create the full URL.destination - The desried destination. If the destination is not fully qualified (assumed relative), it will
query the request to prepend the path. NOTE: do not include a query string in the destination.parameters - The parameters. These will be appended to the URL.
public static java.lang.String fixupRelativeURL(java.lang.String aURL,
javax.servlet.http.HttpServletRequest aRequest)
aURL - the url to fixup.aRequest - the associated request.String the fixed-up URL.public static java.lang.String getHomePage(javax.servlet.http.HttpServletRequest aRequest)
aRequest - the http.servlet.http.HttpServletRequest from which
portal information is obtainedString the portal home pagepublic static java.lang.String getPortalPage(javax.servlet.http.HttpServletRequest aRequest)
aRequest - the http.servlet.http.HttpServletRequest from which
portal information is obtainedString the portal pagepublic static java.lang.String getCurrentPage(javax.servlet.http.HttpServletRequest aRequest)
aRequest - the http.servlet.http.HttpServletRequest from which
portal information is obtainedString the current portal page
public static void setAlternateDestination(javax.servlet.http.HttpServletRequest req,
java.lang.String dest)
DESTINATION_TAG
property upon form submission.req - the javax.servlet.http.HttpServletRequest associated with
the form submissiondestination - the JSP page which ultimate processes the request
public static void setOverrideDestination(javax.servlet.http.HttpServletRequest req,
java.lang.String dest)
DESTINATION_TAG
property upon form submission.req - the javax.servlet.http.HttpServletRequest associated with
the form submissiondest - the JSP page which ultimate processes the request
public static void setLoggedIn(javax.servlet.http.HttpServletRequest aRequest,
javax.servlet.http.HttpServletResponse aResponse,
boolean aBool)
aRequest - the javax.servlet.http.HttpServletRequest used
to retrieve the session for updatethe - corresponding javax.servlet.http.HttpServletResponseaBool - designates the true or false logged-in valuepublic static boolean getLoggedIn(javax.servlet.http.HttpServletRequest aRequest)
the - portal javax.servlet.http.HttpServletRequestboolean whether a user is logged in
public static java.lang.Object getSessionValue(java.lang.String aName,
javax.servlet.http.HttpServletRequest aRequest)
PortalServiceManager to avoid naming collisions
when multiple PortalServiceManager objects share the same
session.aName - the name of the session property whose value is soughtaRequest - the javax.servlet.http.HttpServletRequest from
which the session is obtainedObject the new property value
public static void setSessionValue(java.lang.String aName,
java.lang.Object aValue,
javax.servlet.http.HttpServletRequest aRequest)
PortalServiceManager to avoid naming collisions
when multiple PortalServiceManager objects share the same
session.aName - the name of the session property whose value is to be setaValue - the new property valueaRequest - the javax.servlet.http.HttpServletRequest from
which the session is obtained
public static void putSessionValue(java.lang.String aName,
java.lang.Object aValue,
javax.servlet.http.HttpServletRequest aRequest)
PortalServiceManager to avoid naming collisions
when multiple PortalServiceManager objects share the same
session.aName - the name of the session property whose value is to be setaValue - the new property valueaRequest - the javax.servlet.http.HttpServletRequest from
which the session is obtained
public static void removeSessionValue(java.lang.String aName,
javax.servlet.http.HttpServletRequest aRequest)
PortalServiceManager to avoid naming collisions
when multiple PortalServiceManager objects share the same
session.aName - the name of the session property to be removedaValue - the new property valueaRequest - the javax.servlet.http.HttpServletRequest from
which the session is obtained
public static PortalManager getPortalManager(javax.servlet.http.HttpServletRequest aRequest)
throws java.rmi.RemoteException,
PortalCreateException,
PortalException
com.beasys.portal.PortalManager out of the request. If it does not
exist in the request, a PortalManager will be created.the - javax.servlet.http.HttpServletRequest from which the
PortalManager is soughtPortalManager
public static PortalProperties getPortalProperties(javax.servlet.http.HttpServletRequest aRequest)
throws java.rmi.RemoteException,
PortalCreateException,
PortalException
com.beasys.portal.PortalProperties out of the request. If it does not
exist in the request, a PortalProperties will be created.the - javax.servlet.http.HttpServletRequest from which the
PortalProperties is soughtPortalPropertiespublic static java.lang.String cnvrtSC(java.lang.String theInpStr)
theInpStr - the string to be convertedString the string with special chars translated
|
BEA Systems, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||