Package com.webmethods.caf.portlet
Interface IPortletURL
- All Superinterfaces:
javax.portlet.PortletURL
- All Known Subinterfaces:
IPortletURL
- All Known Implementing Classes:
ExtendedPortletUrl
public interface IPortletURL
extends javax.portlet.PortletURL
Represents portlet url.
-
Field Summary
Fields -
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 useToken) 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 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
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
setTargetAction
(String action) Sets target action to execute on the portlet.void
setTargetView
(String view) Sets target view to displayMethods inherited from interface javax.portlet.PortletURL
setParameter, setParameter, setParameters, setPortletMode, setSecure, setWindowState, toString
-
Field Details
-
GLOBAL_PARAMETER_KEEP_STATE
Global parameter to keep pageflow state. When set to true the last pageflow state of the managed beans on the page will be preserved. This is used to create so called 'return' Urls. When returning back the last state of portlets on the originated page will be preserved- See Also:
-
GLOBAL_PARAMETER_RESET_STATE
Global parameter to forcefully reset pageflow state.- See Also:
-
-
Method Details
-
setBaseURL
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- Parameters:
url
-- Throws:
Exception
-
getBaseURL
String getBaseURL()Returns base url for this portlet url. By default it's current portal resource, i.e. http://myotherportal:8080/<current.resource>- Returns:
- current base url
- See Also:
-
setPortletMethod
Sets PCA method name to invoke on the portlet- Parameters:
pcaMethod
- name of the method- Throws:
Exception
-
setPortletLayout
Sets PCA layout to display- Parameters:
pcaLayout
- the layout to display- Throws:
Exception
-
clearParameters
void clearParameters()Removes all portlet parameters from the URL -
removeParameter
Removes a portlet paremeter from the URL- Parameters:
name
- the name of the parameter to remove
-
setTargetAction
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- Parameters:
action
- action target JSF method binding expression- Throws:
Exception
-
setTargetView
Sets target view to display- Parameters:
view
- name of view to display for a given portlet- Throws:
Exception
-
setParameter
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- Parameters:
name
- the portlet parameter namevalue
- the parameter valueencodeValue
- false to not encode the value.
-
setParameter
Sets portlet parameter String[] value.. Allows to specifiy whether to encode the value.- Parameters:
name
- the portlet parameter namevalue
- the parameter valueencodeValue
- false to not encode the value- See Also:
-
setParameter
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- Parameters:
name
- the portlet parameter namevalue
- the parameter valueencodeValue
- false to not encode the value.
-
setParameter
Sets given portlet parameter String[] value.. Allows to specifiy whether to encode the value.- Parameters:
name
- the portlet parameter namevalue
- the parameter valueencodeValue
- false to not encode the value- See Also:
-
removeParameter
Removes parameter from the specified portlet- Parameters:
portlet
- the portlet ID to remove parameter fromname
- parameter name
-
setGlobalParameter
Sets global parameter for this Url, global parameters are affecting all portlets being rendered as a result of processing of this url. SeeGLOBAL_PARAMETER_KEEP_STATE
andGLOBAL_PARAMETER_RESET_STATE
- Parameters:
name
- global parameter namevalue
- global parameter value
-
removeGlobalParameter
Removes any global parameters from this url. Global parameters are affecting all portlets being rendered as a result of processing of this url. SeeGLOBAL_PARAMETER_KEEP_STATE
andGLOBAL_PARAMETER_RESET_STATE
- Parameters:
name
- global parameter name
-
addPortletURL
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- Parameters:
anotherPortlet
-- Returns:
- the created portlet URL
- Throws:
Exception
-
setPortlet
Sets target portlet for this url.- Throws:
Exception
-
setAXSRFT
void setAXSRFT(boolean useToken) True to include anti-cross-site-request-forgery token on url when invoking portlet action; false to omit token. -
getPortletNamespace
Returns parameter namespace used for the specified portlet- Parameters:
portlet
-- Returns:
- the portlet namespace for the specified portlet
- Throws:
Exception
-
clearState
void clearState()Clears the state of the url keeping just the baseUrl
-