|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bea.portal.tools.common.ResourceContext
public class ResourceContext
Encapsulates information needed for tools controls.
Method Summary | |
---|---|
static ResourceContext |
createResourceContext(Collection<Locale> locales,
HttpServletRequest request,
boolean visitorMode)
Create a ResourceContext using the specified locales. |
static ResourceContext |
createResourceContext(HttpServletRequest request,
boolean visitorMode)
Create a ResourceContext using the default locale specified in the request. |
static ResourceContext |
createResourceContext(Locale locale,
HttpServletRequest request,
boolean visitorMode)
Create a ResourceContext using the specified locale. |
String[] |
getDaCapabilities()
Returns the delegated administration capabilities to check when calling some (usually paginated) methods. |
Collection<Locale> |
getLocales()
|
Locale |
getPrimaryLocale()
|
HttpServletRequest |
getRequest()
|
boolean |
getVisitorMode()
|
String |
getWebApp()
Returns the web app |
boolean |
isRetrieveResultsIfNoLocale()
|
void |
setDaCapabilities(String[] daCapabilities)
Specifies delegated administration capabilities to check when calling some (usually paginated) methods. |
void |
setRetrieveResultsIfNoLocale(boolean retrieveResultsIfNoLocale)
|
void |
setVisitorMode(boolean visitorMode)
|
void |
setWebApp(String webApp)
Specifies the current web app |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ResourceContext createResourceContext(HttpServletRequest request, boolean visitorMode)
request
- the user's requestvisitorMode
- true for visitor tools / false for admin toolspublic static ResourceContext createResourceContext(Locale locale, HttpServletRequest request, boolean visitorMode)
locale
- the user's localerequest
- the user's requestvisitorMode
- true for visitor tools / false for admin toolspublic static ResourceContext createResourceContext(Collection<Locale> locales, HttpServletRequest request, boolean visitorMode)
locales
- the user's preferred localesrequest
- the user's request. Cannot be null.visitorMode
- true for visitor tools / false for admin toolspublic Collection<Locale> getLocales()
public Locale getPrimaryLocale()
public HttpServletRequest getRequest()
public boolean getVisitorMode()
public boolean isRetrieveResultsIfNoLocale()
public void setRetrieveResultsIfNoLocale(boolean retrieveResultsIfNoLocale)
public void setVisitorMode(boolean visitorMode)
visitorMode
- true for visitor tools / false for admin toolspublic void setDaCapabilities(String[] daCapabilities)
public String[] getDaCapabilities()
public void setWebApp(String webApp)
public String getWebApp()
|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |