public interface IPortletURL
extends javax.portlet.PortletURL
Modifier and Type | Field and Description |
---|---|
static String |
GLOBAL_PARAMETER_KEEP_STATE
Global parameter to keep pageflow state.
|
static String |
GLOBAL_PARAMETER_RESET_STATE
Global parameter to forcefully reset pageflow state.
|
Modifier and Type | Method and Description |
---|---|
IPortletURL |
addPortletURL(String anotherPortlet)
Creates portlet URL for another portlet on the the same target
page.
|
void |
clearParameters()
Removes all portlet parameters from the URL
|
void |
clearState()
Clears the state of the url keeping just the baseUrl
|
String |
getBaseURL()
Returns base url for this portlet url.
|
String |
getPortletNamespace(String portlet)
Returns parameter namespace used for the specified portlet
|
void |
removeGlobalParameter(String name)
Removes any global parameters from this url.
|
void |
removeParameter(String name)
Removes a portlet paremeter from the URL
|
void |
removeParameter(String portlet,
String name)
Removes parameter from the specified portlet
|
void |
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 display
|
void |
setPortletMethod(String pcaMethod)
Sets PCA method name to invoke on the portlet
|
void |
setTargetAction(String action)
Sets target action to execute on the portlet.
|
void |
setTargetView(String view)
Sets target view to display
|
static final String GLOBAL_PARAMETER_KEEP_STATE
static final String GLOBAL_PARAMETER_RESET_STATE
void setBaseURL(String url) throws Exception
url
- Exception
String getBaseURL()
setBaseURL(String)
void setPortletMethod(String pcaMethod) throws Exception
pcaMethod
- name of the methodException
void setPortletLayout(String pcaLayout) throws Exception
pcaLayout
- the layout to displayException
void clearParameters()
void removeParameter(String name)
name
- the name of the parameter to removevoid setTargetAction(String action) throws Exception
action
- action target JSF method binding expressionException
void setTargetView(String view) throws Exception
view
- name of view to display for a given portletException
void setParameter(String name, String value, boolean encodeValue)
name
- the portlet parameter namevalue
- the parameter valueencodeValue
- false to not encode the value.void setParameter(String name, String[] value, boolean encodeValue)
name
- the portlet parameter namevalue
- the parameter valueencodeValue
- false to not encode the valuesetParameter(String, String, boolean)
void setParameter(String portlet, String name, String value, boolean encodeValue)
name
- the portlet parameter namevalue
- the parameter valueencodeValue
- false to not encode the value.void setParameter(String portlet, String name, String[] value, boolean encodeValue)
name
- the portlet parameter namevalue
- the parameter valueencodeValue
- false to not encode the valuesetParameter(String, String, boolean)
void removeParameter(String portlet, String name)
portlet
- the portlet ID to remove parameter fromname
- parameter namevoid setGlobalParameter(String name, String value)
GLOBAL_PARAMETER_KEEP_STATE
and
GLOBAL_PARAMETER_RESET_STATE
name
- global parameter namevalue
- global parameter valuevoid removeGlobalParameter(String name)
GLOBAL_PARAMETER_KEEP_STATE
and
GLOBAL_PARAMETER_RESET_STATE
name
- global parameter nameIPortletURL addPortletURL(String anotherPortlet) throws Exception
anotherPortlet
- Exception
void setPortlet(String portlet) throws Exception
Exception
void setAXSRFT(boolean useToken)
String getPortletNamespace(String portlet) throws Exception
portlet
- Exception
void clearState()