📄 wpsstrutsviewcommand.html
字号:
<BR> 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 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 attributeName)</CODE><BR> 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 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 attributeType)</CODE><BR> 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 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 parameterName)</CODE><BR> 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 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> request)</CODE><BR> 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 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 name, java.lang.Object value)</CODE><BR> 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 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 name, java.lang.String value)</CODE><BR> 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 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 request, java.lang.String name)</CODE><BR> 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> 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 request, <A HREF="../../../../../com/ibm/wps/portlets/struts/ViewCommandExecutionContext.html" title="class in com.ibm.wps.portlets.struts">ViewCommandExecutionContext</A> context)</CODE><BR> 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 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 request, <A HREF="../../../../../com/ibm/wps/portlets/struts/ViewCommandExecutionContext.html" title="class in com.ibm.wps.portlets.struts">ViewCommandExecutionContext</A> context, java.util.List namesToSave, java.util.List typesToSave)</CODE><BR> 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> 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 request)</CODE><BR> 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> 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 request, java.lang.String commandPrefix)</CODE><BR> 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 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 request, java.lang.String name)</CODE><BR> 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 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 request, <A HREF="../../../../../com/ibm/wps/portlets/struts/ViewCommandExecutionContext.html" title="class in com.ibm.wps.portlets.struts">ViewCommandExecutionContext</A> context, java.util.List namesToSave)</CODE><BR> 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> 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> request, long lastModified)</CODE><BR> Sets the last modified time.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> 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> request, java.lang.String prefix)</CODE><BR> 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> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/ibm/wps/portlets/struts/WpsStrutsViewCommand.html#setRemoveOnModeChange(boolean)">setRemoveOnModeChange</A></B>(boolean value)</CODE><BR> 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> 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 attributeMap)</CODE><BR> Sets the saved attribute map.</TD></TR></TABLE> <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> <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> 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 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 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 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 + -