|
Novell exteNd Director 5.2 API |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.novell.afw.portal.aggregation.EboPortalAggregationURLHelper
Helper to build portal URLs
| Constructor Summary | |
EboPortalAggregationURLHelper()
|
|
| Method Summary | |
static StringBuffer |
getContextURL(HttpServletRequest request)
get the URL that points to the applications context, including the schema, server name, and port Note: the returned URL is NOT URL encoded! |
static StringBuffer |
getContextURL(com.novell.afw.portal.aggregation.PortletRequest request)
get the URL that points to the applications context, including the schema, server name, and port Note: the returned URL is NOT URL encoded! |
static String |
getPortalAdminConsoleURI(EbiPortalContext context)
Gets the path URI to the Portal Administration Console |
static String |
getPortalAdminConsoleURL(EbiPortalContext context)
Gets the fully qualified URL to the Portal Administration Console Note: the returned URL is NOT URL encoded! |
static String |
getPortalContainerAndPageURI(EbiPortalContext portalContext,
String cName,
String pName,
boolean includeQueryParam,
boolean encode)
Gets the path URI that points to a container page and shared page (or personal page) Example: /context/portal/cn/containerPageName/pageName This signature of the method creates the URI using the current container page and shared page (or personal page) (or the default ones of the portal if the user is not loged in) Note: the returned URL is already URL encoded if you choose so via the encode param (HttpServletResponse.encodeRedirectURL() is used internally);
Note: The container page is validated to exist and if it does not, we attempt to find one the user has access to and use that one. |
static String |
getPortalContainerAndPageURL(EbiPortalContext portalContext,
boolean includeQueryParam,
boolean encode)
Gets the URL that points to a container page and shared page (or personal page) Example: http://server/context/portal/cn/containerPageName/pageName This signature of the method creates the URL using the current container page and shared page (or personal page) (or the default ones of the portal if the user is not loged in) Note: the returned URL is already URL encoded if you choose so via the encode param (HttpServletResponse.encodeRedirectURL() is used internally);
Note: The container page is validated to exist and if it does not, we attempt to find one the user has access to and use that one. |
static String |
getPortalContainerAndPageURL(EbiPortalContext portalContext,
EbiContainerPageInfo containerPageInfo,
EbiPageLayoutInfo pageInfo,
boolean includeQueryParam,
boolean encode)
get the URL that points to a container page and shared or user page Example: http://server/context/portal/cn/containerPageName/pageName this signature of the method creates the URL using the provided containerPageInfo and pageInfo
Note: the returned URL is already URL encoded if you choose so via the encode param (HttpServletResponse.encodeRedirectURL() is used internally); |
static String |
getPortalContainerAndPageURL(EbiPortalContext portalContext,
String cName,
String pName,
boolean includeQueryParam,
boolean encode)
Gets the URL that points to a container page and shared page (or personal page) Example: http://server/context/portal/cn/containerPageName/pageName This signature of the method creates the URL using the current container page and shared page (or personal page) (or the default ones of the portal if the user is not loged in) Note: the returned URL is already URL encoded if you choose so via the encode param (HttpServletResponse.encodeRedirectURL() is used internally);
Note: The container page is validated to exist and if it does not, we attempt to find one the user has access to and use that one. |
static String |
getPortalContainerURI(EbiPortalContext portalContext,
String cName,
boolean includeQueryParam,
boolean encode)
Gets the path URI that points to a container page Example: /context/portal/cn/CorporateContainerPage Note: The container page is validated to exist and if it does not, we attempt to find one the user has access to and use that one. |
static String |
getPortalContainerURL(EbiPortalContext portalContext,
String cName,
boolean includeQueryParam,
boolean encode)
Gets the URL that points to a container page Example: http://server/context/portal/cn/CorporateContainerPage Note: The container page is validated to exist and if it does not, we attempt to find one the user has access to and use that one. |
static String |
getPortalHomeURI(EbiPortalContext portalContext,
boolean encode)
get the absolute path URI that points to the user's default portal page, wrapped by the default container page Example: /context/portal/cn/containerPageName/pageName this signature of the method creates the URI using the current default container page and default shared page set for the user (or the portal if no user is loged in) Note: the returned URI is already URL encoded if you choose so via the encode param (HttpServletResponse.encodeRedirectURL() is used internally); |
static String |
getPortalHomeURL(EbiPortalContext portalContext,
boolean encode)
get the URL that points to the user's default portal page, wrapped by the default container page Example: http://server/context/portal/cn/containerPageName/pageName this signature of the method creates the URL using the current default container page and default shared page set for the user (or the portal if no user is loged in) Note: the returned URL is already URL encoded if you choose so via the encode param (HttpServletResponse.encodeRedirectURL() is used internally); |
static String |
getPortalPageContainedURL(EbiPortalContext portalContext,
EbiPageLayoutInfo pageInfo,
boolean includeQueryParam,
boolean encode)
get the URL that displays the requested page in the users current container page Note: this differs from getPortalPageURL() in such that the page is wrapped by the users current container page Example: http://server/context/pagecn/pageName Note: the returned URL is already URL encoded if you choose so via the encode param (HttpServletResponse.encodeRedirectURL() is used internally); |
static String |
getPortalPageContainedURL(EbiPortalContext portalContext,
String pName,
boolean includeQueryParam,
boolean encode)
get the URL that displays the requested page in the users current container page Note: this differs from getPortalPageURL() in such that the page is wrapped by the users current container page Example: http://server/context/pagecn/pageName Note: the returned URL is already URL encoded if you choose so via the encode param (HttpServletResponse.encodeRedirectURL() is used internally); |
static String |
getPortalPageURI(EbiPortalContext portalContext,
String pName,
boolean includeQueryParam,
boolean encode)
get the absolute path URI that points to a portal page (without the enclosing container page) Example: /context/portal/page/pageName this signature of the method creates the URL using the page name provided via pName
Note: the returned URL is already URL encoded if you choose so via the encode param (HttpServletResponse.encodeRedirectURL() is used internally); |
static String |
getPortalPageURL(EbiPortalContext portalContext,
boolean includeQueryParam,
boolean encode)
get the URL that points to a portal page (without the enclosing container page) Example: http://server/context/portal/page/pageName this signature of the method creates the URL using the current page set for the user (or the portal if no user is loged in) Note: the returned URL is already URL encoded if you choose so via the encode param (HttpServletResponse.encodeRedirectURL() is used internally); |
static String |
getPortalPageURL(EbiPortalContext portalContext,
EbiPageLayoutInfo pageInfo,
boolean includeQueryParam,
boolean encode)
get the URL that points to a portal page (without the enclosing container page) Example: http://server/context/portal/page/pageName this signature of the method creates the URL using the page provided via pageInfo
Note: the returned URL is already URL encoded if you choose so via the encode param (HttpServletResponse.encodeRedirectURL() is used internally); |
static String |
getPortalPageURL(EbiPortalContext portalContext,
String pName,
boolean includeQueryParam,
boolean encode)
get the URL that points to a portal page (without the enclosing container page) Example: http://server/context/portal/page/pageName this signature of the method creates the URL using the page name provided via pName
Note: the returned URL is already URL encoded if you choose so via the encode param (HttpServletResponse.encodeRedirectURL() is used internally); |
static String |
getPortalPidURL(EbiPortalContext portalContext,
String pidName,
boolean includeQueryParam,
boolean encode)
Get the URL that renders a Portal PID page (static page with s3-components) Example: http://server/context/portal/pages/CorporateHome.html |
static String |
getPortalPortletActionURI(EbiPortalContext portalContext,
String portletRegID,
String mode,
String windowState,
Map navParams,
boolean encode)
create a path URI pointing to a particular portlet (..../portal/portlet/{portletName}) with a urlType of 'Action', and with the passed params for window state and mode as correctly build URL params |
static String |
getPortalPortletActionURL(EbiPortalContext portalContext,
String portletRegID,
String mode,
String windowState,
Map navParams,
boolean encode)
create a URL pointing to a particular portlet (..../portal/portlet/{portletName}) with a urlType of 'Action', and with the passed params for window state and mode as correctly build URL params |
static String |
getPortalPortletRenderURI(EbiPortalContext portalContext,
String portletRegID,
String mode,
String windowState,
Map navParams,
boolean encode)
create a path URI pointing to a particular portlet (..../portal/portlet/{portletName}) with a urlType of 'Render', and with the passed params for window state and mode as correctly build query params |
static String |
getPortalPortletRenderURL(EbiPortalContext portalContext,
String portletRegID,
String mode,
String windowState,
Map navParams,
boolean encode)
create a URL pointing to a particular portlet (..../portal/portlet/{portletName}) with a urlType of 'Render', and with the passed params for window state and mode as correctly build URL params |
static String |
getPortalPortletURI(EbiPortalContext portalContext,
String portletName,
boolean includeQueryParam,
boolean encode)
get the URL that renders a single portlet on a separate temporary page Example: /context/portal/portlet/portletName Note: the returned URL is already URL encoded if you choose so via the encode param (HttpServletResponse.encodeRedirectURL() is used internally); |
static String |
getPortalPortletURL(EbiPortalContext portalContext,
String portletName,
boolean includeQueryParam,
boolean encode)
get the URL that renders a single portlet on a separate temporary page Example: http://server/context/portal/portlet/portletName Note: the returned URL is already URL encoded if you choose so via the encode param (HttpServletResponse.encodeRedirectURL() is used internally); |
static String |
getPortalQueryParams(EbiPortalContext portalContext,
String urlType,
String portletIID,
String mode,
String windowState,
Map navParams)
create the URL query params for a portal request (render or action) for a particular portlet example: "urlType=Render&wsrp-windowstate=minimized&novl-regid=StockQuotePortlet&novl-inst=DirectorM.StockQuotePortlet" Note: this signature of the method will check the url type, and the window state (not the mode!) for their validity and throw an IllegalArgumentException if any of them are not supported Note also: since this method doesn't have access to the portlets registration information, the mode cannot be checked for validity |
static String |
getPortalQueryParams(EbiPortalContext portalContext,
String urlType,
String portletRegID,
String portletIID,
String mode,
String windowState,
Map navParams)
create the URL query params for a portal request (render or action) for a particular portlet example: "urlType=Render&wsrp-windowstate=minimized&novl-regid=StockQuotePortlet&novl-inst=DirectorM.StockQuotePortlet" Note: this signature of the method will check the url type, the mode and the window state for their validity and throw an IllegalArgumentException if any of them are not supported |
static String |
getPortalTCKURL(EbiPortalContext portalContext,
String[] portletNames,
boolean includeQueryParam,
boolean encode)
get the URL that displays the portlets that are passed in via portletNames
Note: the returned URL is already URL encoded if you choose so via the encode param (HttpServletResponse.encodeRedirectURL() is used internally); |
static String |
getPortalWirelessPageURI(EbiPortalContext portalContext,
boolean encode)
Get the absolute path URI that points to the portal's wireless page. |
static boolean |
isSinglePortletRequest(EbiPortalContext portalContext)
Determine if the current request is for a single portlet. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public EboPortalAggregationURLHelper()
| Method Detail |
public static String getPortalPageURL(EbiPortalContext portalContext,
boolean includeQueryParam,
boolean encode)
throws EboFactoryException,
EboSecurityException,
EboUnrecoverableSystemException
encode param (HttpServletResponse.encodeRedirectURL() is used internally);portalContext - the EbiPortalContext to get to the page informationincludeQueryParam - append the query string of the current request (true) or not (false)encode - pass true to encode the URL (via HttpServletResponse.encodeRedirectURL()), false to get the not encoded versionString containing the full URLEbiPortalManager is not available
public static String getPortalHomeURL(EbiPortalContext portalContext,
boolean encode)
throws EboFactoryException,
EboSecurityException,
EboUnrecoverableSystemException
encode param (HttpServletResponse.encodeRedirectURL() is used internally);portalContext - the EbiPortalContext to get to the page informationencode - pass true to encode the URL (via HttpServletResponse.encodeRedirectURL()), false to get the not encoded versionString containing the full URLEbiPortalManager is not available
public static String getPortalHomeURI(EbiPortalContext portalContext,
boolean encode)
throws EboFactoryException,
EboSecurityException,
EboUnrecoverableSystemException
encode param (HttpServletResponse.encodeRedirectURL() is used internally);portalContext - the EbiPortalContext to get to the page informationencode - pass true to encode the URL (via HttpServletResponse.encodeRedirectURL()), false to get the not encoded versionString containing the absolute path URLEbiPortalManager is not available
public static String getPortalWirelessPageURI(EbiPortalContext portalContext,
boolean encode)
throws EboFactoryException
portalContext - the EbiPortalContextencode - pass true to encode the URL (via HttpServletResponse.encodeRedirectURL()), false to get the not encoded versionString containing the absolute path URI to the wireless pageEbiPortalManager is not available
public static String getPortalPageURL(EbiPortalContext portalContext,
EbiPageLayoutInfo pageInfo,
boolean includeQueryParam,
boolean encode)
throws EboFactoryException
pageInfo
Note: the returned URL is already URL encoded if you choose so via the encode param (HttpServletResponse.encodeRedirectURL() is used internally);portalContext - the EbiPortalContext to get to the page informationpageInfo - the EbiPageLayoutInfo of the page to create the URL forincludeQueryParam - append the query string of the current request (true) or not (false)encode - pass true to encode the URL (via HttpServletResponse.encodeRedirectURL()), false to get the not encoded versionString containing the full URLEbiPortalManager is not available
public static String getPortalPageURL(EbiPortalContext portalContext,
String pName,
boolean includeQueryParam,
boolean encode)
throws EboFactoryException
pName
Note: the returned URL is already URL encoded if you choose so via the encode param (HttpServletResponse.encodeRedirectURL() is used internally);portalContext - the EbiPortalContext to get to the page informationpName - the name of the page the URL should lead toincludeQueryParam - append the query string of the current request (true) or not (false)encode - pass true to encode the URL (via HttpServletResponse.encodeRedirectURL()), false to get the not encoded versionString containing the full URLEbiPortalManager is not available
public static String getPortalPageURI(EbiPortalContext portalContext,
String pName,
boolean includeQueryParam,
boolean encode)
throws EboFactoryException
pName
Note: the returned URL is already URL encoded if you choose so via the encode param (HttpServletResponse.encodeRedirectURL() is used internally);portalContext - the EbiPortalContext to get to the page informationpName - the name of the page the URI should lead toincludeQueryParam - append the query string of the current request (true) or not (false)encode - pass true to encode the URL (via HttpServletResponse.encodeRedirectURL()), false to get the not encoded versionString containing the absolute path URIEbiPortalManager is not available
public static String getPortalContainerAndPageURL(EbiPortalContext portalContext,
boolean includeQueryParam,
boolean encode)
throws EboFactoryException,
EboSecurityException,
EboUnrecoverableSystemException
encode param (HttpServletResponse.encodeRedirectURL() is used internally);
Note: The container page is validated to exist and if it does not, we attempt to find one the user has access to and use that one.portalContext - the EbiPortalContext to get to the page informationincludeQueryParam - append the query string of the current request (true) or not (false)encode - pass true to encode the URL (via HttpServletResponse.encodeRedirectURL()), false to get the not encoded versionString containing the full URLEbiPortalManager is not available
public static String getPortalContainerAndPageURL(EbiPortalContext portalContext,
EbiContainerPageInfo containerPageInfo,
EbiPageLayoutInfo pageInfo,
boolean includeQueryParam,
boolean encode)
throws EboFactoryException
containerPageInfo and pageInfo
Note: the returned URL is already URL encoded if you choose so via the encode param (HttpServletResponse.encodeRedirectURL() is used internally);portalContext - the EbiPortalContext to get to the page informationcontainerPageInfo - the EbiContainerPageInfo representing the container page to use to build the URLpageInfo - the EbiPageLayoutInfo representing the user or shared page to use to build the URLincludeQueryParam - append the query string of the current request (true) or not (false)encode - pass true to encode the URL (via HttpServletResponse.encodeRedirectURL()), false to get the not encoded versionString containing the full URLEbiPortalManager is not available
public static String getPortalContainerAndPageURL(EbiPortalContext portalContext,
String cName,
String pName,
boolean includeQueryParam,
boolean encode)
throws EboFactoryException
encode param (HttpServletResponse.encodeRedirectURL() is used internally);
Note: The container page is validated to exist and if it does not, we attempt to find one the user has access to and use that one.portalContext - the EbiPortalContext to get to the page informationcName - the name of the container page the URL should lead topName - the name of the page the URL should lead toincludeQueryParam - append the query string of the current request (true) or not (false)encode - pass true to encode the URL (via HttpServletResponse.encodeRedirectURL()), false to get the not encoded versionString containing the full URLEbiPortalManager is not available
public static String getPortalContainerAndPageURI(EbiPortalContext portalContext,
String cName,
String pName,
boolean includeQueryParam,
boolean encode)
throws EboFactoryException
encode param (HttpServletResponse.encodeRedirectURL() is used internally);
Note: The container page is validated to exist and if it does not, we attempt to find one the user has access to and use that one.portalContext - the EbiPortalContext to get to the page informationcName - the name of the container page the URL should lead topName - the name of the page the URL should lead toincludeQueryParam - append the query string of the current request (true) or not (false)encode - pass true to encode the URL (via HttpServletResponse.encodeRedirectURL()), false to get the not encoded versionString representing teh absolute path URIEbiPortalManager is not available
public static String getPortalContainerURL(EbiPortalContext portalContext,
String cName,
boolean includeQueryParam,
boolean encode)
throws EboFactoryException
portalContext - the EbiPortalContext to get to the page informationcName - the name of the container page the URL should lead toincludeQueryParam - append the query string of the current request (true) or not (false)encode - pass true to encode the URL (via HttpServletResponse.encodeRedirectURL()), false to get the not encoded versionString containing the full URLEbiPortalManager is not available
public static String getPortalContainerURI(EbiPortalContext portalContext,
String cName,
boolean includeQueryParam,
boolean encode)
throws EboFactoryException
portalContext - the EbiPortalContext to get to the page informationcName - the name of the container page the URL should lead toincludeQueryParam - append the query string of the current request (true) or not (false)encode - pass true to encode the URL (via HttpServletResponse.encodeRedirectURL()), false to get the not encoded versionString containing the absolute path URIEbiPortalManager is not available
public static String getPortalPortletURL(EbiPortalContext portalContext,
String portletName,
boolean includeQueryParam,
boolean encode)
throws EboFactoryException
encode param (HttpServletResponse.encodeRedirectURL() is used internally);portalContext - the EbiPortalContext to get to the page informationportletName - the name of the portlet to place as target of the URLincludeQueryParam - append the query string of the current request (true) or not (false)encode - pass true to encode the URL (via HttpServletResponse.encodeRedirectURL()), false to get the not encoded versionString containing the full URLEbiPortalManager is not available
public static String getPortalPortletURI(EbiPortalContext portalContext,
String portletName,
boolean includeQueryParam,
boolean encode)
throws EboFactoryException
encode param (HttpServletResponse.encodeRedirectURL() is used internally);portalContext - the EbiPortalContext to get to the page informationportletName - the name of the portlet to place as target of the URIincludeQueryParam - append the query string of the current request (true) or not (false)encode - pass true to encode the URL (via HttpServletResponse.encodeRedirectURL()), false to get the not encoded versionString containing the absolute path URIEbiPortalManager is not available
public static String getPortalPortletRenderURL(EbiPortalContext portalContext,
String portletRegID,
String mode,
String windowState,
Map navParams,
boolean encode)
throws EboFactoryException,
EboUnrecoverableSystemException,
EboSecurityException,
com.novell.afw.portlet.exception.EboPortletDefinitionException,
com.novell.afw.portlet.exception.EboPortletRegistrationException
portalContext - the EbiPortalContextportletRegID - the portlet's registration id (the name)mode - the mode to include in the render request (or null); this will be the new portlet mode for this instancewindowState - the window state to include in the request (or null); this will be the new window state for this portletnavParams - a Map of key value pairs to include as custom params in the render URLencode - true if the URL has to be URL encoded (via HttpServletResponse.encodeRedirectURL()), other wise false;
for cookie-less session tracking this needs to be true
public static String getPortalPortletRenderURI(EbiPortalContext portalContext,
String portletRegID,
String mode,
String windowState,
Map navParams,
boolean encode)
throws EboFactoryException,
EboUnrecoverableSystemException,
EboSecurityException,
com.novell.afw.portlet.exception.EboPortletDefinitionException,
com.novell.afw.portlet.exception.EboPortletRegistrationException
portalContext - the EbiPortalContextportletRegID - the portlet's registration id (the name)mode - the mode to include in the render request (or null); this will be the new portlet mode for this instancewindowState - the window state to include in the request (or null); this will be the new window state for this portletnavParams - a Map of key value pairs to include as custom params in the render URIencode - true if the URL has to be URL encoded (via HttpServletResponse.encodeRedirectURL()), other wise false;
for cookie-less session tracking this needs to be true
public static String getPortalPortletActionURL(EbiPortalContext portalContext,
String portletRegID,
String mode,
String windowState,
Map navParams,
boolean encode)
throws EboFactoryException,
EboUnrecoverableSystemException,
EboSecurityException,
com.novell.afw.portlet.exception.EboPortletDefinitionException,
com.novell.afw.portlet.exception.EboPortletRegistrationException
portalContext - the EbiPortalContextportletRegID - the portlet's registration id (the name)mode - the mode to include in the render request (or null); this will be the new portlet mode for this instancewindowState - the window state to include in the request (or null); this will be the new window state for this portletnavParams - a Map of key value pairs to include as custom params in the render URLencode - true if the URL has to be URL encoded (via HttpServletResponse.encodeRedirectURL()), other wise false;
for cookie-less session tracking this needs to be true
public static String getPortalPortletActionURI(EbiPortalContext portalContext,
String portletRegID,
String mode,
String windowState,
Map navParams,
boolean encode)
throws EboFactoryException,
EboUnrecoverableSystemException,
EboSecurityException,
com.novell.afw.portlet.exception.EboPortletDefinitionException,
com.novell.afw.portlet.exception.EboPortletRegistrationException
portalContext - the EbiPortalContextportletRegID - the portlet's registration id (the name)mode - the mode to include in the render request (or null); this will be the new portlet mode for this instancewindowState - the window state to include in the request (or null); this will be the new window state for this portletnavParams - a Map of key value pairs to include as custom params in the render URLencode - true if the URL has to be URL encoded (via HttpServletResponse.encodeRedirectURL()), other wise false;
for cookie-less session tracking this needs to be true
public static String getPortalQueryParams(EbiPortalContext portalContext,
String urlType,
String portletRegID,
String portletIID,
String mode,
String windowState,
Map navParams)
throws EboUnrecoverableSystemException,
EboSecurityException,
com.novell.afw.portlet.exception.EboPortletDefinitionException,
com.novell.afw.portlet.exception.EboPortletRegistrationException
portalContext - the EbiPortalContexturlType - the url type to create ('Render' or "Action')portletRegID - the portlet's registration id (the name)portletIID - the portlet instance id (or null for the default, if the portlet is not actually on a 'real' page)mode - the new portlet mode that this url should set the portlet intowindowState - the new window state that this url should set the portlet intonavParams - a Map of key value pairs to use as custome query params
public static String getPortalQueryParams(EbiPortalContext portalContext,
String urlType,
String portletIID,
String mode,
String windowState,
Map navParams)
throws EboUnrecoverableSystemException,
EboSecurityException,
com.novell.afw.portlet.exception.EboPortletDefinitionException,
com.novell.afw.portlet.exception.EboPortletRegistrationException
portalContext - the EbiPortalContexturlType - the url type to create ('Render' or "Action')portletIID - the portlet instance id (or null for the default, if the portlet is not actually on a 'real' page)mode - the new portlet mode that this url should set the portlet intowindowState - the new window state that this url should set the portlet intonavParams - a Map of key value pairs to use as custome query params
public static String getPortalPageContainedURL(EbiPortalContext portalContext,
EbiPageLayoutInfo pageInfo,
boolean includeQueryParam,
boolean encode)
throws EboFactoryException
encode param (HttpServletResponse.encodeRedirectURL() is used internally);portalContext - the EbiPortalContext to get to the page informationpageInfo - the EbiPageLayoutInfo of the page that this URL should point toincludeQueryParam - append the query string of the current request (true) or not (false)encode - true if the URL has to be URL encoded (via HttpServletResponse.encodeRedirectURL()), other wise false;
for cookie-less session tracking this needs to be trueString containing the full URLEbiPortalManager is not available
public static String getPortalPageContainedURL(EbiPortalContext portalContext,
String pName,
boolean includeQueryParam,
boolean encode)
throws EboFactoryException
encode param (HttpServletResponse.encodeRedirectURL() is used internally);portalContext - the EbiPortalContext to get to the page informationpName - the name of the page this URL should point toincludeQueryParam - append the query string of the current request (true) or not (false)encode - true if the URL has to be URL encoded (via HttpServletResponse.encodeRedirectURL()), other wise false;
for cookie-less session tracking this needs to be trueString containing the full URLEbiPortalManager is not available
public static String getPortalTCKURL(EbiPortalContext portalContext,
String[] portletNames,
boolean includeQueryParam,
boolean encode)
throws EboFactoryException
portletNames
Note: the returned URL is already URL encoded if you choose so via the encode param (HttpServletResponse.encodeRedirectURL() is used internally);portalContext - the EbiPortalContext to get to the page informationportletNames - an array of portlet names to renderincludeQueryParam - append the query string of the current request (true) or not (false)encode - true if the URL has to be URL encoded (via HttpServletResponse.encodeRedirectURL()), other wise false;
for cookie-less session tracking this needs to be trueString containing the full URLEbiPortalManager is not availablepublic static StringBuffer getContextURL(HttpServletRequest request)
request - the current HttpServletRequestStringBuffer containing the full URL to the servlet contextpublic static StringBuffer getContextURL(com.novell.afw.portal.aggregation.PortletRequest request)
request - a portlet request (render or action)StringBuffer containing the full URL to the servlet contextpublic static String getPortalAdminConsoleURL(EbiPortalContext context)
context - the current EbiPortalContextString containing the full URL to the servlet contextpublic static String getPortalAdminConsoleURI(EbiPortalContext context)
example: "/MyContext/PAC"
Note: the returned URI is NOT encoded!context - the current EbiPortalContextString containing the absolute path URI to the PAC redirect servlet
public static String getPortalPidURL(EbiPortalContext portalContext,
String pidName,
boolean includeQueryParam,
boolean encode)
throws EboFactoryException
portalContext - the EbiPortalContext to get to the page informationpidName - the name of the portal page (PID) to place as target of the URLincludeQueryParam - append the query string of the current request (true) or not (false)encode - true if the URL has to be URL encoded (via HttpServletResponse.encodeRedirectURL()), other wise false;
for cookie-less session tracking this needs to be trueString containing the full URL to the PID pagepublic static boolean isSinglePortletRequest(EbiPortalContext portalContext)
portalContext - the EbiPortalContext to get access to the request
|
Novell exteNd Director 5.2 API |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||