|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LiferayPortletURL
Represents a URL pointing to a portlet.
PortletURLImpl
Field Summary |
---|
Fields inherited from interface javax.portlet.ResourceURL |
---|
FULL, PAGE, PORTLET, SHARED |
Method Summary | |
---|---|
void |
addParameterIncludedInPath(String name)
Adds a parameter that is included in the friendly URL path and does not need to appear in the query string. |
String |
getLifecycle()
Gets the lifecycle of the portlet this URL points to. |
String |
getParameter(String name)
Gets the first value of the URL parameter. |
Set<String> |
getParametersIncludedInPath()
|
String |
getPortletId()
Gets the id of the portlet this URL points to. |
Map<String,String> |
getReservedParameterMap()
Gets the map of reserved parameters for this URL. |
String |
getResourceID()
Gets the id of the resource this URL points to. |
boolean |
isAnchor()
Determines whether this URL is an anchor pointing to the specified portlet on the page. |
boolean |
isCopyCurrentRenderParameters()
Determines whether the render parameters in the current request should be copied to this URL. |
boolean |
isEncrypt()
Determines whether this URL should be encrypted. |
boolean |
isEscapeXml()
Determines whether this URL should be XML escaped. |
boolean |
isParameterIncludedInPath(String name)
Determines whether the parameter is included in the friendly URL path. |
boolean |
isSecure()
Determines whether this URL is secure (https). |
void |
setAnchor(boolean anchor)
Sets whether this URL is an anchor pointing to the specified portlet on the page. |
void |
setCopyCurrentRenderParameters(boolean copyCurrentRenderParameters)
Sets whether the render parameters in the current request should be copied to this URL. |
void |
setDoAsUserId(long doAsUserId)
Sets the id of the user to impersonate. |
void |
setDoAsUserLanguageId(String doAsUserLanguageId)
|
void |
setEncrypt(boolean encrypt)
Sets whether this URL should be encrypted. |
void |
setEscapeXml(boolean escapeXml)
Sets whether this URL should be XML escaped. |
void |
setLifecycle(String lifecycle)
Sets the lifecycle of the portlet this URL points to. |
void |
setParameter(String name,
String[] values,
boolean append)
Sets the URL parameter the values. |
void |
setParameter(String name,
String value,
boolean append)
Sets the URL parameter to the value. |
void |
setPlid(long plid)
Sets the portlet layout id. |
void |
setPortletId(String portletId)
Sets the id of the target portlet. |
Methods inherited from interface javax.portlet.PortletURL |
---|
getPortletMode, getWindowState, removePublicRenderParameter, setPortletMode, setWindowState |
Methods inherited from interface javax.portlet.ResourceURL |
---|
getCacheability, setCacheability, setResourceID |
Methods inherited from interface javax.portlet.BaseURL |
---|
addProperty, getParameterMap, setParameter, setParameter, setParameters, setProperty, setSecure, toString, write, write |
Method Detail |
---|
void addParameterIncludedInPath(String name)
name
- the name of the parameter that is included in the pathString getLifecycle()
setLifecycle(String)
String getParameter(String name)
name
- the name of the URL parameter to get the value of
String getPortletId()
Map<String,String> getReservedParameterMap()
This method is only used internally. Reserved parameters contain special,
Liferay specific information, such as p_p_id
and
p_p_lifecycle
.
String getResourceID()
boolean isAnchor()
setAnchor(boolean)
boolean isCopyCurrentRenderParameters()
setCopyCurrentRenderParameters(boolean)
boolean isEncrypt()
setEncrypt(boolean)
boolean isEscapeXml()
setEscapeXml(boolean)
boolean isParameterIncludedInPath(String name)
name
- the name of the parameter to check for inclusion in the path
addParameterIncludedInPath(String)
boolean isSecure()
void setLifecycle(String lifecycle)
Valid lifecycles are:
lifecycle
- the lifecycle of the portlet this URL points tovoid setParameter(String name, String value, boolean append)
name
- the name of the URL parametervalue
- the value of the URL parameterappend
- whether the new value should be appended to any existing
values for the parameter. If append
is
false
any existing values will be overwritten with
the new value.void setParameter(String name, String[] values, boolean append)
name
- the name of the URL parameterappend
- whether the new values should be appended to any existing
values for the parameter. If append
is
false
any existing values will be overwritten with
the new values.Set<String> getParametersIncludedInPath()
void setAnchor(boolean anchor)
An anchor URL will cause the user's browser to automatically jump down to the specified portlet after the page loads, avoiding the need to scroll.
anchor
- whether this URL is an anchor pointing to the specified
portlet on the pagevoid setCopyCurrentRenderParameters(boolean copyCurrentRenderParameters)
New parameters set on this URL will appear before the copied render parameters.
copyCurrentRenderParameters
- whether the render parameters in the
current request should be copied to this URLvoid setDoAsUserId(long doAsUserId)
When a page is accessed while impersonating a user, it will appear exactly as it would to that user.
doAsUserId
- the id of the user to impersonate in the portlet this
URL points tovoid setDoAsUserLanguageId(String doAsUserLanguageId)
void setEncrypt(boolean encrypt)
In an encrypted URL, the value of every parameter will be encrypted using the company's key. This allows sensitive information to be placed in the URL without being vulnerable to snooping.
Note that this is not the same as making a URL secure
.
void setEscapeXml(boolean escapeXml)
If a URL is XML escaped, it will automatically have special characters
escaped when it is converted to a string or written to a Writer
.
escapeXml
- whether this URL should be XML escapedvoid setPlid(long plid)
plid
- the portlet layout idvoid setPortletId(String portletId)
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |