|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
com.bea.portlet.CommunityAdminURLHelper
public class CommunityAdminURLHelper
CommunityAdminURLHelper - has helper methods to add a parameter to a url such that it provides a hint to the framework to retrieve the admin view of a community resource - as opposed to the user's customized view. Note that this hint will only be honored if the user is a "community admin" for the community concerned and the url points to a community. <p/>The overview of community functionality contains a description of the community framework.
| Constructor Summary | |
|---|---|
CommunityAdminURLHelper() |
|
| Method Summary | |
|---|---|
static PostbackURL |
addCommunityAdminParameter(PostbackURL url)Adds a parameter to a PostbackURL with value parameterValue. |
static PostbackURL |
addCommunityAdminParameter(PostbackURL url, boolean parameterValue)Adds a parameter to a PostbackURL with value parameterValue. |
static String |
getCommunityAdminParameterName()Returns the name of the request parameter. |
static String |
getCommunitySessionAttributeName(CommunityURI communityURI)Returns the name of the session attribute used to track if a user is in admin or visitor mode for the community specified by the CommunityURI. |
static boolean |
isCommunityAdminParamSet(javax.servlet.http.HttpServletRequest request)Returns true if the community admin param is set on the input request, false otherwise |
static boolean |
isCommunityAdminParamSet(javax.servlet.http.HttpServletRequest request, boolean value)Returns true if the community admin param is set on the input request to the value value, false otherwise. |
static boolean |
isCommunityInAdminMode(javax.servlet.http.HttpServletRequest request, CommunityURI communityURI)Returns true if the current user is using community specified by CommunityURI in admin mode. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CommunityAdminURLHelper()
| Method Detail |
|---|
public static PostbackURL addCommunityAdminParameter(PostbackURL url,
boolean parameterValue)
PostbackURL with value parameterValue.url - postback urlparameterValue - true if user should act as a community admin, false otherwisePostbackURLpublic static PostbackURL addCommunityAdminParameter(PostbackURL url)
PostbackURL with value parameterValue.url - postback urlPostbackURLpublic static String getCommunityAdminParameterName()
public static String getCommunitySessionAttributeName(CommunityURI communityURI)
communityURI - CommunityURI the session attribute is scoped topublic static boolean isCommunityAdminParamSet(javax.servlet.http.HttpServletRequest request)
true if the community admin param is set on the input request, false otherwiserequest - the HttpServletRequesttrue if the community admin param is set on the input request, false otherwise
public static boolean isCommunityAdminParamSet(javax.servlet.http.HttpServletRequest request,
boolean value)
true if the community admin param is set on the input request to the value value, false otherwise.request - request the HttpServletRequestvalue - expected valuetrue if the community admin param is set on the input request to the value value, false otherwise
public static boolean isCommunityInAdminMode(javax.servlet.http.HttpServletRequest request,
CommunityURI communityURI)
true if the current user is using community specified by CommunityURI in admin mode.request - requestcommunityURI - communityURItrue if the current user is using community specified by CommunityURI in admin mode
|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright © 2010, Oracle. All rights reserved.