com.bea.netuix.servlets.manager
Class AppContext

java.lang.Object
  extended by com.bea.netuix.servlets.manager.AppContext
All Implemented Interfaces
Serializable

public class AppContext
extends Object
implements Serializable

The AppContext is created once per request and provides convenience methods for application-wide request-scoped parameters.

See Also
Serialized Form

Constructor Summary
AppContext()
           
 
Method Summary
static boolean appContextSet(javax.servlet.http.HttpServletRequest request)
          Has a portal servlet set the AppContext on this request?
static AppContext getAppContext(javax.servlet.http.HttpServletRequest request)
          Returns the AppContext associated with the current request.
 boolean isDotPortal()
          Is this portal a .portal file or was it assembled from the datebase?
static boolean isPermanentDeleteAllowed(javax.servlet.http.HttpServletRequest request)
          This method is used for determining if a delete button can be used to permanently delete a portlet instance from the database.
 boolean isStandalonePortlet()
          Is the current request servicing a standalone Portlet?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AppContext

public AppContext()
Method Detail

isDotPortal

public boolean isDotPortal()
Is this portal a .portal file or was it assembled from the datebase?

Returns
true is this portal is a .portal file

isStandalonePortlet

public boolean isStandalonePortlet()
Is the current request servicing a standalone Portlet?

Returns
true if this request is servicing a standalone portlet

isPermanentDeleteAllowed

public static boolean isPermanentDeleteAllowed(javax.servlet.http.HttpServletRequest request)
This method is used for determining if a delete button can be used to permanently delete a portlet instance from the database. This information is valuable because it allows a user interface to give an appropriate prompt to the end-user, with choices that accurately represent actions that can successfully be taken. For example, if delete permanently is allowed, a look and feel can prompt the end user if s/he wants to delete this portlet permanently, or just for the session.

Returns
true if this button can be used to permanently delete a portlet instance from the database; false otherwise.

getAppContext

public static AppContext getAppContext(javax.servlet.http.HttpServletRequest request)
Returns the AppContext associated with the current request. If no such AppContext exists, this method creates a new one and associates it with the current request.

Returns
application context

appContextSet

public static boolean appContextSet(javax.servlet.http.HttpServletRequest request)
Has a portal servlet set the AppContext on this request?



Copyright © 2006 BEA Systems, Inc. All Rights Reserved