Package com.webmethods.caf.portlet.impl
Class ExtendedPortletUrl
java.lang.Object
com.webmethods.caf.portlet.impl.ExtendedPortletUrl
- All Implemented Interfaces:
IPortletURL
,javax.portlet.PortletURL
-
Field Summary
Fields inherited from interface com.webmethods.caf.portlet.IPortletURL
GLOBAL_PARAMETER_KEEP_STATE, GLOBAL_PARAMETER_RESET_STATE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddPortletURL
(String anotherPortlet) Creates portlet URL for another portlet on the the same target page.void
Removes all portlet parameters from the URLvoid
Clears the state of the url keeping just the baseUrlReturns base url for this portlet url.getPortletNamespace
(String portlet) Returns parameter namespace used for the specified portletvoid
removeGlobalParameter
(String name) Removes any global parameters from this url.void
removeParameter
(String name) Removes a portlet paremeter from the URLvoid
removeParameter
(String portlet, String name) Removes parameter from the specified portletvoid
setAXSRFT
(boolean use) True to include anti-cross-site-request-forgery token on url when invoking portlet action; false to omit token.void
setBaseURL
(String url) Sets base url for this portlet url.void
setGlobalParameter
(String name, String value) Sets global parameter for this Url, global parameters are affecting all portlets being rendered as a result of processing of this url.void
setParameter
(String arg0, String arg1) void
setParameter
(String arg0, String[] arg1) void
setParameter
(String name, String[] value, boolean encodeValue) Sets portlet parameter String[] value..void
setParameter
(String name, String value, boolean encodeValue) Sets portlet parameter String value.void
setParameter
(String portlet, String name, String[] value, boolean encodeValue) Sets given portlet parameter String[] value..void
setParameter
(String portlet, String name, String value, boolean encodeValue) Sets given portlet parameter String value.void
setParameters
(Map arg0) void
setPortlet
(String portlet) Sets target portlet for this url.void
setPortletLayout
(String pcaLayout) Sets PCA layout to displayvoid
setPortletMethod
(String pcaMethod) Sets PCA method name to invoke on the portletvoid
setPortletMode
(javax.portlet.PortletMode arg0) void
setSecure
(boolean arg0) void
setTargetAction
(String action) Sets target action to execute on the portlet.void
setTargetView
(String view) Sets target view to displayvoid
setWindowState
(javax.portlet.WindowState arg0) toString()
-
Constructor Details
-
ExtendedPortletUrl
public ExtendedPortletUrl(javax.portlet.PortletURL portletURL)
-
-
Method Details
-
setParameter
- Specified by:
setParameter
in interfacejavax.portlet.PortletURL
-
setParameter
- Specified by:
setParameter
in interfacejavax.portlet.PortletURL
-
setParameters
- Specified by:
setParameters
in interfacejavax.portlet.PortletURL
-
setPortletMode
public void setPortletMode(javax.portlet.PortletMode arg0) throws javax.portlet.PortletModeException - Specified by:
setPortletMode
in interfacejavax.portlet.PortletURL
- Throws:
javax.portlet.PortletModeException
-
setSecure
public void setSecure(boolean arg0) throws javax.portlet.PortletSecurityException - Specified by:
setSecure
in interfacejavax.portlet.PortletURL
- Throws:
javax.portlet.PortletSecurityException
-
setWindowState
public void setWindowState(javax.portlet.WindowState arg0) throws javax.portlet.WindowStateException - Specified by:
setWindowState
in interfacejavax.portlet.PortletURL
- Throws:
javax.portlet.WindowStateException
-
toString
-
setPortlet
Description copied from interface:IPortletURL
Sets target portlet for this url.- Specified by:
setPortlet
in interfaceIPortletURL
- Throws:
Exception
-
addPortletURL
Description copied from interface:IPortletURL
Creates portlet URL for another portlet on the the same target page. The returned url is used for customizing parameters and layout for this other- Specified by:
addPortletURL
in interfaceIPortletURL
- Returns:
- the created portlet URL
- Throws:
Exception
-
clearParameters
public void clearParameters()Description copied from interface:IPortletURL
Removes all portlet parameters from the URL- Specified by:
clearParameters
in interfaceIPortletURL
-
clearState
public void clearState()Description copied from interface:IPortletURL
Clears the state of the url keeping just the baseUrl- Specified by:
clearState
in interfaceIPortletURL
-
getBaseURL
Description copied from interface:IPortletURL
Returns base url for this portlet url. By default it's current portal resource, i.e. http://myotherportal:8080/<current.resource>- Specified by:
getBaseURL
in interfaceIPortletURL
- Returns:
- current base url
- See Also:
-
removeParameter
Description copied from interface:IPortletURL
Removes a portlet paremeter from the URL- Specified by:
removeParameter
in interfaceIPortletURL
- Parameters:
name
- the name of the parameter to remove
-
removeParameter
Description copied from interface:IPortletURL
Removes parameter from the specified portlet- Specified by:
removeParameter
in interfaceIPortletURL
- Parameters:
portlet
- the portlet ID to remove parameter fromname
- parameter name
-
setBaseURL
Description copied from interface:IPortletURL
Sets base url for this portlet url. By default base url is current portal resource, but can be set to any other resource or even any other valid full url like http://myotherportal:8080/portal/alias/ Valid values are: /folder.public /folder.public?p1=p2 http://myotherportal:8080/folder.public?p1=p2&p3=p3- Specified by:
setBaseURL
in interfaceIPortletURL
- Throws:
Exception
-
setParameter
Description copied from interface:IPortletURL
Sets portlet parameter String value. Allows to specifiy whether to encode the value. Not encoding the value usually is useful when the url gets some post processing- Specified by:
setParameter
in interfaceIPortletURL
- Parameters:
name
- the portlet parameter namevalue
- the parameter valueencodeValue
- false to not encode the value.
-
setParameter
Description copied from interface:IPortletURL
Sets portlet parameter String[] value.. Allows to specifiy whether to encode the value.- Specified by:
setParameter
in interfaceIPortletURL
- Parameters:
name
- the portlet parameter namevalue
- the parameter valueencodeValue
- false to not encode the value- See Also:
-
setPortletLayout
Description copied from interface:IPortletURL
Sets PCA layout to display- Specified by:
setPortletLayout
in interfaceIPortletURL
- Parameters:
pcaLayout
- the layout to display- Throws:
Exception
-
setPortletMethod
Description copied from interface:IPortletURL
Sets PCA method name to invoke on the portlet- Specified by:
setPortletMethod
in interfaceIPortletURL
- Parameters:
pcaMethod
- name of the method- Throws:
Exception
-
setTargetAction
Description copied from interface:IPortletURL
Sets target action to execute on the portlet. This has a format of JSF method binding expression. For example #{myportletPageBean.refresh}. This value is only valid for ACTION type portlet urls- Specified by:
setTargetAction
in interfaceIPortletURL
- Parameters:
action
- action target JSF method binding expression
-
setTargetView
Description copied from interface:IPortletURL
Sets target view to display- Specified by:
setTargetView
in interfaceIPortletURL
- Parameters:
view
- name of view to display for a given portlet- Throws:
Exception
-
getPortlets
-
setParameter
Description copied from interface:IPortletURL
Sets given portlet parameter String value. Allows to specifiy whether to encode the value. Not encoding the value usually is useful when the url gets some post processing- Specified by:
setParameter
in interfaceIPortletURL
name
- the portlet parameter namevalue
- the parameter valueencodeValue
- false to not encode the value.
-
setParameter
Description copied from interface:IPortletURL
Sets given portlet parameter String[] value.. Allows to specifiy whether to encode the value.- Specified by:
setParameter
in interfaceIPortletURL
name
- the portlet parameter namevalue
- the parameter valueencodeValue
- false to not encode the value- See Also:
-
getPortletNamespace
Description copied from interface:IPortletURL
Returns parameter namespace used for the specified portlet- Specified by:
getPortletNamespace
in interfaceIPortletURL
- Returns:
- the portlet namespace for the specified portlet
- Throws:
Exception
-
removeGlobalParameter
Description copied from interface:IPortletURL
Removes any global parameters from this url. Global parameters are affecting all portlets being rendered as a result of processing of this url. SeeIPortletURL.GLOBAL_PARAMETER_KEEP_STATE
andIPortletURL.GLOBAL_PARAMETER_RESET_STATE
- Specified by:
removeGlobalParameter
in interfaceIPortletURL
- Parameters:
name
- global parameter name
-
setGlobalParameter
Description copied from interface:IPortletURL
Sets global parameter for this Url, global parameters are affecting all portlets being rendered as a result of processing of this url. SeeIPortletURL.GLOBAL_PARAMETER_KEEP_STATE
andIPortletURL.GLOBAL_PARAMETER_RESET_STATE
- Specified by:
setGlobalParameter
in interfaceIPortletURL
- Parameters:
name
- global parameter namevalue
- global parameter value
-
setAXSRFT
public void setAXSRFT(boolean use) Description copied from interface:IPortletURL
True to include anti-cross-site-request-forgery token on url when invoking portlet action; false to omit token.- Specified by:
setAXSRFT
in interfaceIPortletURL
-