⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wpsstrutsviewcommand.html

📁 门户开发
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes the attribute from the list.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/ibm/wps/portlets/struts/WpsStrutsViewCommand.html#removeAttributeNameToSave(java.lang.String)">removeAttributeNameToSave</A></B>(java.lang.String&nbsp;attributeName)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes the name of an attribute from the list of attribute names to  save.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/ibm/wps/portlets/struts/WpsStrutsViewCommand.html#removeAttributeTypeToSave(java.lang.Class)">removeAttributeTypeToSave</A></B>(java.lang.Class&nbsp;attributeType)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes the class type of the request attribute from the list of  attributes to save.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/ibm/wps/portlets/struts/WpsStrutsViewCommand.html#removeParameterNameToSave(java.lang.String)">removeParameterNameToSave</A></B>(java.lang.String&nbsp;parameterName)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes the name of an parameter from the list of parameter names to  save.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/ibm/wps/portlets/struts/WpsStrutsViewCommand.html#repopulateRequest(org.apache.jetspeed.portlet.PortletRequest)">repopulateRequest</A></B>(<A HREF="../../../../../org/apache/jetspeed/portlet/PortletRequest.html" title="interface in org.apache.jetspeed.portlet">PortletRequest</A>&nbsp;request)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Repopulates the given request from saved values.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/ibm/wps/portlets/struts/WpsStrutsViewCommand.html#saveAsAttribute(java.lang.String, java.lang.Object)">saveAsAttribute</A></B>(java.lang.String&nbsp;name,                java.lang.Object&nbsp;value)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Saves the given named object for later retrieval as an attribute for when the command is executed.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/ibm/wps/portlets/struts/WpsStrutsViewCommand.html#saveAsParameter(java.lang.String, java.lang.String)">saveAsParameter</A></B>(java.lang.String&nbsp;name,                java.lang.String&nbsp;value)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Saves the given named object for later retrieval as an parameter for when the command is executed.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/ibm/wps/portlets/struts/WpsStrutsViewCommand.html#saveAttribute(javax.servlet.http.HttpServletRequest, java.lang.String)">saveAttribute</A></B>(javax.servlet.http.HttpServletRequest&nbsp;request,              java.lang.String&nbsp;name)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Saves the given request attribute for later retrieval when the command is executed.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/ibm/wps/portlets/struts/WpsStrutsViewCommand.html#saveAttributes(javax.servlet.http.HttpServletRequest, com.ibm.wps.portlets.struts.ViewCommandExecutionContext)">saveAttributes</A></B>(javax.servlet.http.HttpServletRequest&nbsp;request,               <A HREF="../../../../../com/ibm/wps/portlets/struts/ViewCommandExecutionContext.html" title="class in com.ibm.wps.portlets.struts">ViewCommandExecutionContext</A>&nbsp;context)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Saves attributes from the request by name for later retrieval when the command is executed.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/ibm/wps/portlets/struts/WpsStrutsViewCommand.html#saveAttributes(javax.servlet.http.HttpServletRequest, com.ibm.wps.portlets.struts.ViewCommandExecutionContext, java.util.List, java.util.List)">saveAttributes</A></B>(javax.servlet.http.HttpServletRequest&nbsp;request,               <A HREF="../../../../../com/ibm/wps/portlets/struts/ViewCommandExecutionContext.html" title="class in com.ibm.wps.portlets.struts">ViewCommandExecutionContext</A>&nbsp;context,               java.util.List&nbsp;namesToSave,               java.util.List&nbsp;typesToSave)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Saves attributes from the request by name for later retrieval when the command is executed.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/ibm/wps/portlets/struts/WpsStrutsViewCommand.html#saveCommand(javax.servlet.http.HttpServletRequest)">saveCommand</A></B>(javax.servlet.http.HttpServletRequest&nbsp;request)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Saves the current command using the Command Manager Factory.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/ibm/wps/portlets/struts/WpsStrutsViewCommand.html#saveCommand(javax.servlet.http.HttpServletRequest, java.lang.String)">saveCommand</A></B>(javax.servlet.http.HttpServletRequest&nbsp;request,            java.lang.String&nbsp;commandPrefix)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Saves the current command using the Command Manager Factory.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/ibm/wps/portlets/struts/WpsStrutsViewCommand.html#saveParameter(javax.servlet.http.HttpServletRequest, java.lang.String)">saveParameter</A></B>(javax.servlet.http.HttpServletRequest&nbsp;request,              java.lang.String&nbsp;name)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Saves the given request parameter for later retrieval when the command is executed.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/ibm/wps/portlets/struts/WpsStrutsViewCommand.html#saveParameters(javax.servlet.http.HttpServletRequest, com.ibm.wps.portlets.struts.ViewCommandExecutionContext, java.util.List)">saveParameters</A></B>(javax.servlet.http.HttpServletRequest&nbsp;request,               <A HREF="../../../../../com/ibm/wps/portlets/struts/ViewCommandExecutionContext.html" title="class in com.ibm.wps.portlets.struts">ViewCommandExecutionContext</A>&nbsp;context,               java.util.List&nbsp;namesToSave)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Saves parameters from the request by name for later retrieval when the command is executed.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/ibm/wps/portlets/struts/WpsStrutsViewCommand.html#setLastModified(org.apache.jetspeed.portlet.PortletRequest, long)">setLastModified</A></B>(<A HREF="../../../../../org/apache/jetspeed/portlet/PortletRequest.html" title="interface in org.apache.jetspeed.portlet">PortletRequest</A>&nbsp;request,                long&nbsp;lastModified)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the last modified time.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/ibm/wps/portlets/struts/WpsStrutsViewCommand.html#setPrefix(org.apache.jetspeed.portlet.PortletRequest, java.lang.String)">setPrefix</A></B>(<A HREF="../../../../../org/apache/jetspeed/portlet/PortletRequest.html" title="interface in org.apache.jetspeed.portlet">PortletRequest</A>&nbsp;request,          java.lang.String&nbsp;prefix)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the prefix associated with this command.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/ibm/wps/portlets/struts/WpsStrutsViewCommand.html#setRemoveOnModeChange(boolean)">setRemoveOnModeChange</A></B>(boolean&nbsp;value)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Allows setting a flag so that this command is removed when the user switches modes.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/ibm/wps/portlets/struts/WpsStrutsViewCommand.html#setSavedAttributes(java.util.Map)">setSavedAttributes</A></B>(java.util.Map&nbsp;attributeMap)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the saved attribute map.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="PREFIX"><!-- --></A><H3>PREFIX</H3><PRE>protected static final java.lang.String <B>PREFIX</B></PRE><DL><DD>Request attribute name for the module prefix.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.ibm.wps.portlets.struts.WpsStrutsViewCommand.PREFIX">Constant Field Values</A></DL></DL><HR><A NAME="LAST_MODIFIED"><!-- --></A><H3>LAST_MODIFIED</H3><PRE>protected static final java.lang.String <B>LAST_MODIFIED</B></PRE><DL><DD>Request attribute name for the last modified timestamp.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.ibm.wps.portlets.struts.WpsStrutsViewCommand.LAST_MODIFIED">Constant Field Values</A></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="WpsStrutsViewCommand()"><!-- --></A><H3>WpsStrutsViewCommand</H3><PRE>public <B>WpsStrutsViewCommand</B>()</PRE><DL><DD>Default constructor for the WpsStrutsView command. If this constructor is used, the setPrefix method must be called to set the module prefix. Commands  must save the module prefix so that the correct Struts module config can be set in the render phase of portal.<P></DL><HR><A NAME="WpsStrutsViewCommand(org.apache.jetspeed.portlet.PortletRequest)"><!-- --></A><H3>WpsStrutsViewCommand</H3><PRE>public <B>WpsStrutsViewCommand</B>(<A HREF="../../../../../org/apache/jetspeed/portlet/PortletRequest.html" title="interface in org.apache.jetspeed.portlet">PortletRequest</A>&nbsp;request)</PRE><DL><DD>Constructs the WpsStrutsViewCommand object. The module prefix will be determined from the request object.<P><DT><B>Parameters:</B><DD><CODE>request</CODE> - The request object to save context information from</DL><HR><A NAME="WpsStrutsViewCommand(javax.servlet.http.HttpServletRequest)"><!-- --></A><H3>WpsStrutsViewCommand</H3><PRE>public <B>WpsStrutsViewCommand</B>(javax.servlet.http.HttpServletRequest&nbsp;request)</PRE><DL><DD>Constructs the WpsStrutsViewCommand object. The module prefix will be determined from the request object.<P><DT><B>Parameters:</B><DD><CODE>request</CODE> - The request object to save context information from</DL><!-- ============ 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="addAttributeNameToSave(java.lang.String)"><!-- --></A><H3>addAttributeNameToSave</H3><PRE>public static void <B>addAttributeNameToSave</B>(java.lang.String&nbsp;attributeName)</PRE><DL><DD>Adds the name of an attribute from the object request that needs to be  saved if present for the execution of the IViewCommand in Portal's render phase<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>attributeName</CODE> - the name of the attribute</DL></DD></DL><HR><A NAME="removeAttributeNameToSave(java.lang.String)"><!-- --></A><H3>removeAttributeNameToSave</H3><PRE>public static void <B>removeAttributeNameToSave</B>(java.lang.String&nbsp;attributeName)</PRE><DL><DD>Removes the name of an attribute from the list of attribute names to  save.<P>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -