|
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.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.
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(HttpServletRequest request)
Returns true if the community admin param is set on the
input request, false otherwise |
static boolean |
isCommunityAdminParamSet(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(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 otherwise
PostbackURL
public static PostbackURL addCommunityAdminParameter(PostbackURL url)
PostbackURL
with value
parameterValue
.
url
- postback url
PostbackURL
public static String getCommunityAdminParameterName()
public static String getCommunitySessionAttributeName(CommunityURI communityURI)
communityUri
- CommunityURI
the session attribute is
scoped to
public static boolean isCommunityAdminParamSet(HttpServletRequest request)
true
if the community admin param is set on the
input request, false otherwise
request
- the HttpServletRequest
true
if the community admin param is set on the
input request, false otherwisepublic static boolean isCommunityAdminParamSet(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 HttpServletRequest
value
- expected value
true
if the community admin param is set on the
input request to the value value
, false otherwisepublic static boolean isCommunityInAdminMode(HttpServletRequest request, CommunityURI communityURI)
true
if the current user is using community specified
by CommunityURI
in admin mode.
request
- requestcommunityURI
- communityURI
true
if the current user is using community specified
by CommunityURI
in admin mode
|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |