📄 portalurlwriter.html
字号:
java.util.Locale newLocale)</CODE><BR> Creates a render URL that points to the specified portlet window with the given locale.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.io.Writer</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../com/ibm/portal/portlet/service/url/PortalURLWriter.html#writePortletRenderURL(java.io.Writer, com.ibm.portal.ObjectID, com.ibm.portal.ObjectID, java.util.Map)">writePortletRenderURL</A></B>(java.io.Writer writer, <A HREF="../../../../../../com/ibm/portal/ObjectID.html" title="interface in com.ibm.portal">ObjectID</A> contentNode, <A HREF="../../../../../../com/ibm/portal/ObjectID.html" title="interface in com.ibm.portal">ObjectID</A> portletWindow, java.util.Map newRenderParameters)</CODE><BR> Creates a render URL that points to the specified portlet window with the given render parameters.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.io.Writer</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../com/ibm/portal/portlet/service/url/PortalURLWriter.html#writePortletRenderURL(java.io.Writer, com.ibm.portal.ObjectID, com.ibm.portal.ObjectID, javax.portlet.PortletMode)">writePortletRenderURL</A></B>(java.io.Writer writer, <A HREF="../../../../../../com/ibm/portal/ObjectID.html" title="interface in com.ibm.portal">ObjectID</A> contentNode, <A HREF="../../../../../../com/ibm/portal/ObjectID.html" title="interface in com.ibm.portal">ObjectID</A> portletWindow, javax.portlet.PortletMode newPortletMode)</CODE><BR> Creates a render URL that points to the specified portlet window with the specified portlet mode.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.io.Writer</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../com/ibm/portal/portlet/service/url/PortalURLWriter.html#writePortletRenderURL(java.io.Writer, com.ibm.portal.ObjectID, com.ibm.portal.ObjectID, javax.portlet.PortletMode, javax.portlet.WindowState, com.ibm.portal.portlet.service.url.Constants.PortalState, java.util.Map, java.util.Locale)">writePortletRenderURL</A></B>(java.io.Writer writer, <A HREF="../../../../../../com/ibm/portal/ObjectID.html" title="interface in com.ibm.portal">ObjectID</A> contentNode, <A HREF="../../../../../../com/ibm/portal/ObjectID.html" title="interface in com.ibm.portal">ObjectID</A> portletWindow, javax.portlet.PortletMode newPortletMode, javax.portlet.WindowState newWindowState, <A HREF="../../../../../../com/ibm/portal/portlet/service/url/Constants.PortalState.html" title="interface in com.ibm.portal.portlet.service.url">Constants.PortalState</A> portalState, java.util.Map newRenderParameters, java.util.Locale newLocale)</CODE><BR> Creates a render URL that points to the specified portlet window.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.io.Writer</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../com/ibm/portal/portlet/service/url/PortalURLWriter.html#writePortletRenderURL(java.io.Writer, com.ibm.portal.ObjectID, com.ibm.portal.ObjectID, javax.portlet.WindowState)">writePortletRenderURL</A></B>(java.io.Writer writer, <A HREF="../../../../../../com/ibm/portal/ObjectID.html" title="interface in com.ibm.portal">ObjectID</A> contentNode, <A HREF="../../../../../../com/ibm/portal/ObjectID.html" title="interface in com.ibm.portal">ObjectID</A> portletWindow, javax.portlet.WindowState newWindowState)</CODE><BR> Creates a render URL that points to the specified portlet window with the new window state.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.io.Writer</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../com/ibm/portal/portlet/service/url/PortalURLWriter.html#writePortletRenderURL(java.io.Writer, java.lang.String, java.lang.String)">writePortletRenderURL</A></B>(java.io.Writer writer, java.lang.String contentNode, java.lang.String portletWindow)</CODE><BR> Creates a render URL that points to the specified portlet window.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.io.Writer</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../com/ibm/portal/portlet/service/url/PortalURLWriter.html#writePortletRenderURL(java.io.Writer, java.lang.String, java.lang.String, com.ibm.portal.portlet.service.url.Constants.PortalState)">writePortletRenderURL</A></B>(java.io.Writer writer, java.lang.String contentNode, java.lang.String portletWindow, <A HREF="../../../../../../com/ibm/portal/portlet/service/url/Constants.PortalState.html" title="interface in com.ibm.portal.portlet.service.url">Constants.PortalState</A> portalState)</CODE><BR> Creates a render URL that points to the specified portlet window with the given portal state.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.io.Writer</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../com/ibm/portal/portlet/service/url/PortalURLWriter.html#writePortletRenderURL(java.io.Writer, java.lang.String, java.lang.String, java.util.Locale)">writePortletRenderURL</A></B>(java.io.Writer writer, java.lang.String contentNode, java.lang.String portletWindow, java.util.Locale newLocale)</CODE><BR> Creates a render URL that points to the specified portlet window with the given locale.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.io.Writer</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../com/ibm/portal/portlet/service/url/PortalURLWriter.html#writePortletRenderURL(java.io.Writer, java.lang.String, java.lang.String, java.util.Map)">writePortletRenderURL</A></B>(java.io.Writer writer, java.lang.String contentNode, java.lang.String portletWindow, java.util.Map newRenderParameters)</CODE><BR> Creates a render URL that points to the specified portlet window with the given render parameters.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.io.Writer</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../com/ibm/portal/portlet/service/url/PortalURLWriter.html#writePortletRenderURL(java.io.Writer, java.lang.String, java.lang.String, javax.portlet.PortletMode)">writePortletRenderURL</A></B>(java.io.Writer writer, java.lang.String contentNode, java.lang.String portletWindow, javax.portlet.PortletMode newPortletMode)</CODE><BR> Creates a render URL that points to the specified portlet window with the specified portlet mode.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.io.Writer</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../com/ibm/portal/portlet/service/url/PortalURLWriter.html#writePortletRenderURL(java.io.Writer, java.lang.String, java.lang.String, javax.portlet.PortletMode, javax.portlet.WindowState, com.ibm.portal.portlet.service.url.Constants.PortalState, java.util.Map, java.util.Locale)">writePortletRenderURL</A></B>(java.io.Writer writer, java.lang.String contentNode, java.lang.String portletWindow, javax.portlet.PortletMode newPortletMode, javax.portlet.WindowState newWindowState, <A HREF="../../../../../../com/ibm/portal/portlet/service/url/Constants.PortalState.html" title="interface in com.ibm.portal.portlet.service.url">Constants.PortalState</A> portalState, java.util.Map newRenderParameters, java.util.Locale newLocale)</CODE><BR> Creates a render URL that points to the specified portlet window.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.io.Writer</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../com/ibm/portal/portlet/service/url/PortalURLWriter.html#writePortletRenderURL(java.io.Writer, java.lang.String, java.lang.String, javax.portlet.WindowState)">writePortletRenderURL</A></B>(java.io.Writer writer, java.lang.String contentNode, java.lang.String portletWindow, javax.portlet.WindowState newWindowState)</CODE><BR> Creates a render URL that points to the specified portlet window with the new window state.</TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="writePortletRenderURL(java.io.Writer, java.lang.String, java.lang.String, javax.portlet.PortletMode, javax.portlet.WindowState, com.ibm.portal.portlet.service.url.Constants.PortalState, java.util.Map, java.util.Locale)"><!-- --></A><H3>writePortletRenderURL</H3><PRE>public java.io.Writer <B>writePortletRenderURL</B>(java.io.Writer writer, java.lang.String contentNode, java.lang.String portletWindow, javax.portlet.PortletMode newPortletMode, javax.portlet.WindowState newWindowState, <A HREF="../../../../../../com/ibm/portal/portlet/service/url/Constants.PortalState.html" title="interface in com.ibm.portal.portlet.service.url">Constants.PortalState</A> portalState, java.util.Map newRenderParameters, java.util.Locale newLocale) throws java.io.IOException, javax.portlet.PortletModeException, javax.portlet.WindowStateException</PRE><DL><DD>Creates a render URL that points to the specified portlet window. This method also allows to change different parts of the navigational state, like the portlet mode and window state of the targeted portlet, the portal state, the render parameters of the targeted portlet, and the locale. <p> If no new render parameters are specified the current render parameters of all portlets are preserved. If new render parameters for the target portlet are specified the render parameters of the target portlet are replaced with the specified render parameter and the render parameters of all other portlets are preserved. </p> <p> Note: Instead of providing <code>null</code> as values of please use one of the other flavors of this method. This will produce a better performace as the checking for <code>null</code> values can be omitted. </p><P><DD><DL><DT><B>Parameters:</B><DD><CODE>writer</CODE> - Destination stream that receives the character representation of the URL (must not be null)<DD><CODE>contentNode</CODE> - Unique name of the content node the portlet window belongs to (must not be null). The content node is needed in order to make the URL gneration operation less expensive.<DD><CODE>portletWindow</CODE> - Unique name of the target portlet window (must not be null)<DD><CODE>newPortletMode</CODE> - New portlet mode of the target portlet (may be null)<DD><CODE>newWindowState</CODE> - New portlet window state of the target portlet (may be null)<DD><CODE>portalState</CODE> - New portal navigational state (e.g. SOLO mode or non-SOLO mode) (may be null)<DD><CODE>newRenderParameters</CODE> - New render parameters for the target portlet (may be null)<DD><CODE>newLocale</CODE> - New locale (may be null)<DT><B>Returns:</B><DD>Reference to the writer<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - - error occured on the underlying streams<DD><CODE>javax.portlet.PortletModeException</CODE> - - if the target portlet cannot switch to this mode, because the portal does not support this mode, the portlet has not declared in its deployment descriptor that it supports this mode for the current markup, or the current user is not allowed to switch to this mode.<DD><CODE>javax.portlet.WindowStateException</CODE> - - if the portlet cannot switch to this state, because the portal does not support this state, the portlet has not declared in its deployment
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -