public class PortletURLImpl extends Object implements com.liferay.portal.kernel.portlet.LiferayPortletURL, PortletURL, ResourceURL, Serializable
FULL, PAGE, PORTLET, SHARED
Modifier | Constructor and Description |
---|---|
|
PortletURLImpl(javax.servlet.http.HttpServletRequest request,
com.liferay.portal.kernel.model.Portlet portlet,
com.liferay.portal.kernel.model.Layout layout,
String lifecycle) |
|
PortletURLImpl(javax.servlet.http.HttpServletRequest request,
String portletId,
com.liferay.portal.kernel.model.Layout layout,
String lifecycle)
Deprecated.
As of Judson (7.1.x), replaced by
PortletURLImpl(HttpServletRequest, Portlet, Layout, String) |
|
PortletURLImpl(javax.servlet.http.HttpServletRequest request,
String portletId,
long plid,
String lifecycle)
Deprecated.
As of Judson (7.1.x), replaced by
PortletURLImpl(HttpServletRequest, String, Layout, String) |
protected |
PortletURLImpl(javax.servlet.http.HttpServletRequest request,
String portletId,
PortletRequest portletRequest,
long plid,
String lifecycle)
Deprecated.
As of Judson (7.1.x), replaced by
PortletURLImpl(HttpServletRequest, String, PortletRequest,
Layout, String) |
|
PortletURLImpl(PortletRequest portletRequest,
com.liferay.portal.kernel.model.Portlet portlet,
com.liferay.portal.kernel.model.Layout layout,
String lifecycle) |
|
PortletURLImpl(PortletRequest portletRequest,
String portletId,
com.liferay.portal.kernel.model.Layout layout,
String lifecycle)
Deprecated.
As of Judson (7.1.x), replaced by
PortletURLImpl(PortletRequest, Portlet, Layout, String) |
|
PortletURLImpl(PortletRequest portletRequest,
String portletId,
long plid,
String lifecycle)
Deprecated.
As of Judson (7.1.x), replaced by
PortletURLImpl(PortletRequest, String, Layout, String) |
Modifier and Type | Method and Description |
---|---|
void |
addParameterIncludedInPath(String name) |
protected void |
addPortalAuthToken(com.liferay.portal.kernel.util.StringBundler sb,
Key key) |
protected void |
addPortletAuthToken(com.liferay.portal.kernel.util.StringBundler sb,
Key key) |
void |
addProperty(String key,
String value) |
protected void |
clearCache() |
protected String |
generateToString() |
protected String |
generateWSRPToString() |
String |
getCacheability() |
javax.servlet.http.HttpServletRequest |
getHttpServletRequest() |
com.liferay.portal.kernel.model.Layout |
getLayout() |
String |
getLayoutFriendlyURL() |
String |
getLifecycle() |
String |
getNamespace() |
String |
getParameter(String name) |
Map<String,String[]> |
getParameterMap() |
Set<String> |
getParametersIncludedInPath() |
long |
getPlid() |
com.liferay.portal.kernel.model.Portlet |
getPortlet() |
String |
getPortletFriendlyURLPath() |
String |
getPortletId() |
PortletMode |
getPortletMode() |
PortletRequest |
getPortletRequest() |
protected String |
getPublicRenderParameterName(String name) |
Set<String> |
getRemovedParameterNames() |
Map<String,String> |
getReservedParameterMap()
Deprecated.
As of Judson (7.1.x), replaced by
visitReservedParameters(BiConsumer) |
String |
getResourceID() |
WindowState |
getWindowState() |
boolean |
isAnchor() |
protected boolean |
isBlankValue(String[] value) |
boolean |
isCopyCurrentRenderParameters() |
boolean |
isEncrypt() |
boolean |
isEscapeXml() |
boolean |
isParameterIncludedInPath(String name) |
boolean |
isSecure() |
protected void |
mergeRenderParameters()
Deprecated.
As of Judson (7.1.x), with no direct replacement
|
protected String |
prependNamespace(String name)
Deprecated.
As of Judson (7.1.x), with no direct replacement
|
protected String |
processValue(Key key,
int value) |
protected String |
processValue(Key key,
long value) |
protected String |
processValue(Key key,
String value) |
protected void |
removeParameter(String name) |
void |
removePublicRenderParameter(String name) |
void |
setAnchor(boolean anchor) |
void |
setCacheability(String cacheability) |
void |
setCopyCurrentRenderParameters(boolean copyCurrentRenderParameters) |
void |
setDoAsGroupId(long doAsGroupId) |
void |
setDoAsUserId(long doAsUserId) |
void |
setDoAsUserLanguageId(String doAsUserLanguageId) |
void |
setEncrypt(boolean encrypt) |
void |
setEscapeXml(boolean escapeXml) |
void |
setLifecycle(String lifecycle) |
void |
setParameter(String name,
String value) |
void |
setParameter(String name,
String[] values) |
void |
setParameter(String name,
String[] values,
boolean append) |
void |
setParameter(String name,
String value,
boolean append) |
void |
setParameters(Map<String,String[]> params) |
void |
setPlid(long plid) |
void |
setPortletId(String portletId) |
void |
setPortletMode(PortletMode portletMode) |
void |
setPortletMode(String portletMode) |
void |
setProperty(String key,
String value) |
void |
setRefererGroupId(long refererGroupId) |
void |
setRefererPlid(long refererPlid) |
void |
setRemovedParameterNames(Set<String> removedParameterNames) |
void |
setResourceID(String resourceID) |
void |
setSecure(boolean secure) |
void |
setWindowState(String windowState) |
void |
setWindowState(WindowState windowState) |
void |
setWindowStateRestoreCurrentView(boolean windowStateRestoreCurrentView) |
String |
toString() |
void |
visitReservedParameters(BiConsumer<String,String> biConsumer) |
void |
write(Writer writer) |
void |
write(Writer writer,
boolean escapeXml) |
public PortletURLImpl(javax.servlet.http.HttpServletRequest request, com.liferay.portal.kernel.model.Portlet portlet, com.liferay.portal.kernel.model.Layout layout, String lifecycle)
@Deprecated public PortletURLImpl(javax.servlet.http.HttpServletRequest request, String portletId, com.liferay.portal.kernel.model.Layout layout, String lifecycle)
PortletURLImpl(HttpServletRequest, Portlet, Layout, String)
@Deprecated public PortletURLImpl(javax.servlet.http.HttpServletRequest request, String portletId, long plid, String lifecycle)
PortletURLImpl(HttpServletRequest, String, Layout, String)
public PortletURLImpl(PortletRequest portletRequest, com.liferay.portal.kernel.model.Portlet portlet, com.liferay.portal.kernel.model.Layout layout, String lifecycle)
@Deprecated public PortletURLImpl(PortletRequest portletRequest, String portletId, com.liferay.portal.kernel.model.Layout layout, String lifecycle)
PortletURLImpl(PortletRequest, Portlet, Layout, String)
@Deprecated public PortletURLImpl(PortletRequest portletRequest, String portletId, long plid, String lifecycle)
PortletURLImpl(PortletRequest, String, Layout, String)
@Deprecated protected PortletURLImpl(javax.servlet.http.HttpServletRequest request, String portletId, PortletRequest portletRequest, long plid, String lifecycle)
PortletURLImpl(HttpServletRequest, String, PortletRequest,
Layout, String)
public void addParameterIncludedInPath(String name)
addParameterIncludedInPath
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public void addProperty(String key, String value)
addProperty
in interface BaseURL
public String getCacheability()
getCacheability
in interface ResourceURL
public javax.servlet.http.HttpServletRequest getHttpServletRequest()
public com.liferay.portal.kernel.model.Layout getLayout()
public String getLayoutFriendlyURL()
public String getLifecycle()
getLifecycle
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public String getNamespace()
public String getParameter(String name)
getParameter
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public Map<String,String[]> getParameterMap()
getParameterMap
in interface BaseURL
public Set<String> getParametersIncludedInPath()
getParametersIncludedInPath
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public long getPlid()
getPlid
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public com.liferay.portal.kernel.model.Portlet getPortlet()
public String getPortletFriendlyURLPath()
public String getPortletId()
getPortletId
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public PortletMode getPortletMode()
getPortletMode
in interface PortletURL
public PortletRequest getPortletRequest()
public Set<String> getRemovedParameterNames()
getRemovedParameterNames
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
@Deprecated public Map<String,String> getReservedParameterMap()
visitReservedParameters(BiConsumer)
getReservedParameterMap
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public String getResourceID()
getResourceID
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public WindowState getWindowState()
getWindowState
in interface PortletURL
public boolean isAnchor()
isAnchor
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public boolean isCopyCurrentRenderParameters()
isCopyCurrentRenderParameters
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public boolean isEncrypt()
isEncrypt
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public boolean isEscapeXml()
isEscapeXml
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public boolean isParameterIncludedInPath(String name)
isParameterIncludedInPath
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public boolean isSecure()
isSecure
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public void removePublicRenderParameter(String name)
removePublicRenderParameter
in interface PortletURL
public void setAnchor(boolean anchor)
setAnchor
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public void setCacheability(String cacheability)
setCacheability
in interface ResourceURL
public void setCopyCurrentRenderParameters(boolean copyCurrentRenderParameters)
setCopyCurrentRenderParameters
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public void setDoAsGroupId(long doAsGroupId)
setDoAsGroupId
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public void setDoAsUserId(long doAsUserId)
setDoAsUserId
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public void setDoAsUserLanguageId(String doAsUserLanguageId)
setDoAsUserLanguageId
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public void setEncrypt(boolean encrypt)
setEncrypt
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public void setEscapeXml(boolean escapeXml)
setEscapeXml
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public void setLifecycle(String lifecycle)
setLifecycle
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public void setParameter(String name, String value)
setParameter
in interface BaseURL
public void setParameter(String name, String value, boolean append)
setParameter
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public void setParameter(String name, String[] values)
setParameter
in interface BaseURL
public void setParameter(String name, String[] values, boolean append)
setParameter
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public void setParameters(Map<String,String[]> params)
setParameters
in interface BaseURL
public void setPlid(long plid)
setPlid
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public void setPortletId(String portletId)
setPortletId
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public void setPortletMode(PortletMode portletMode) throws PortletModeException
setPortletMode
in interface PortletURL
PortletModeException
public void setPortletMode(String portletMode) throws PortletModeException
PortletModeException
public void setProperty(String key, String value)
setProperty
in interface BaseURL
public void setRefererGroupId(long refererGroupId)
setRefererGroupId
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public void setRefererPlid(long refererPlid)
setRefererPlid
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public void setRemovedParameterNames(Set<String> removedParameterNames)
setRemovedParameterNames
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public void setResourceID(String resourceID)
setResourceID
in interface ResourceURL
public void setSecure(boolean secure) throws PortletSecurityException
setSecure
in interface BaseURL
PortletSecurityException
public void setWindowState(String windowState) throws WindowStateException
WindowStateException
public void setWindowState(WindowState windowState) throws WindowStateException
setWindowState
in interface PortletURL
WindowStateException
public void setWindowStateRestoreCurrentView(boolean windowStateRestoreCurrentView)
public String toString()
public void visitReservedParameters(BiConsumer<String,String> biConsumer)
visitReservedParameters
in interface com.liferay.portal.kernel.portlet.LiferayPortletURL
public void write(Writer writer) throws IOException
public void write(Writer writer, boolean escapeXml) throws IOException
protected void addPortalAuthToken(com.liferay.portal.kernel.util.StringBundler sb, Key key)
protected void addPortletAuthToken(com.liferay.portal.kernel.util.StringBundler sb, Key key)
protected void clearCache()
protected String generateToString()
protected String generateWSRPToString()
protected String getPublicRenderParameterName(String name)
protected boolean isBlankValue(String[] value)
@Deprecated protected void mergeRenderParameters()
@Deprecated protected String prependNamespace(String name)
protected String processValue(Key key, int value)
protected String processValue(Key key, long value)
protected String processValue(Key key, String value)
protected void removeParameter(String name)