public class PortalState
extends java.lang.Object
Constructor and Description |
---|
PortalState(javax.servlet.http.HttpServletRequest q_)
Construct from a
HttpServletRequest . |
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
getCurrentPageId()
Get the id of the current page.
|
java.lang.Long |
getCurrentPortletId()
Get the id of the current portlet.
|
PortletSession |
getCurrentPortletSession()
Get the
PortletSession for the current portlet. |
PortletSession |
getPortletSession(java.lang.Long portletId_)
Get the
PortletSession for a given portlet. |
User |
getUser()
Get the object of class
User representing the current user. |
boolean |
isCurrentPortletControlled()
Determine if the current portlet is controlled.
|
boolean |
isUserPortalAdmin()
Determine whether the current user is a Portal administrator.
|
public PortalState(javax.servlet.http.HttpServletRequest q_)
HttpServletRequest
. Is is assumed that the
HttpServletRequest
contains the parameters and attributes
necessary for populating a new PortalState
object.q_
- the Request Objectpublic User getUser()
User
representing the current user.public boolean isUserPortalAdmin()
true
if the current user is a Portal administrator;
false
if not.public java.lang.Long getCurrentPortletId()
public PortletSession getPortletSession(java.lang.Long portletId_)
PortletSession
for a given portlet.portletId_
- The id of the portlet whose PortletSession
is desired.PortletSession
public PortletSession getCurrentPortletSession()
PortletSession
for the current portlet.PortletSession
for the current portletpublic boolean isCurrentPortletControlled()
true
if the current portlet is controlled;
false
if not.public java.lang.Long getCurrentPageId()
Copyright © 2003-2024 Appian Corporation. All Rights Reserved.