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

📄 ldapuser.html

📁 turbine教程
💻 HTML
📖 第 1 页 / 共 4 页
字号:
</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="../../../../../../org/apache/turbine/services/security/ldap/LDAPUser.html#save()">save</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Saves this object to the data store.</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="../../../../../../org/apache/turbine/services/security/ldap/LDAPUser.html#save(java.sql.Connection)">save</A></B>(java.sql.Connection&nbsp;conn)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;not implemented</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="../../../../../../org/apache/turbine/services/security/ldap/LDAPUser.html#save(java.lang.String)">save</A></B>(java.lang.String&nbsp;dbname)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;not implemented</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="../../../../../../org/apache/turbine/services/security/ldap/LDAPUser.html#setAccessCounter(int)">setAccessCounter</A></B>(int&nbsp;cnt)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the access counter for a user, saved in perm storage.</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="../../../../../../org/apache/turbine/services/security/ldap/LDAPUser.html#setAccessCounterForSession(int)">setAccessCounterForSession</A></B>(int&nbsp;cnt)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the session access counter for a user, saved in temp storage.</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="../../../../../../org/apache/turbine/services/security/ldap/LDAPUser.html#setConfirmed(java.lang.String)">setConfirmed</A></B>(java.lang.String&nbsp;confirm)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the users confirmed variable</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="../../../../../../org/apache/turbine/services/security/ldap/LDAPUser.html#setCreateDate(java.util.Date)">setCreateDate</A></B>(java.util.Date&nbsp;date)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the create date for this User.</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="../../../../../../org/apache/turbine/services/security/ldap/LDAPUser.html#setEmail(java.lang.String)">setEmail</A></B>(java.lang.String&nbsp;email)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the users Email</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="../../../../../../org/apache/turbine/services/security/ldap/LDAPUser.html#setFirstName(java.lang.String)">setFirstName</A></B>(java.lang.String&nbsp;fname)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the users First Name</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="../../../../../../org/apache/turbine/services/security/ldap/LDAPUser.html#setHasLoggedIn(java.lang.Boolean)">setHasLoggedIn</A></B>(java.lang.Boolean&nbsp;value)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This sets whether or not someone has logged in.</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="../../../../../../org/apache/turbine/services/security/ldap/LDAPUser.html#setLastAccessDate()">setLastAccessDate</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the last access date for this User.</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="../../../../../../org/apache/turbine/services/security/ldap/LDAPUser.html#setLastLogin(java.util.Date)">setLastLogin</A></B>(java.util.Date&nbsp;date)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set last login date/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="../../../../../../org/apache/turbine/services/security/ldap/LDAPUser.html#setLastName(java.lang.String)">setLastName</A></B>(java.lang.String&nbsp;lname)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the users Last Name Sets the last name for this user.</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="../../../../../../org/apache/turbine/services/security/ldap/LDAPUser.html#setName(java.lang.String)">setName</A></B>(java.lang.String&nbsp;name)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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="../../../../../../org/apache/turbine/services/security/ldap/LDAPUser.html#setPassword(java.lang.String)">setPassword</A></B>(java.lang.String&nbsp;password)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set password.</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="../../../../../../org/apache/turbine/services/security/ldap/LDAPUser.html#setPerm(java.lang.String, java.lang.Object)">setPerm</A></B>(java.lang.String&nbsp;name,        java.lang.Object&nbsp;value)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Put an object into permanent storage.</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="../../../../../../org/apache/turbine/services/security/ldap/LDAPUser.html#setPermStorage(java.util.Hashtable)">setPermStorage</A></B>(java.util.Hashtable&nbsp;stuff)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This should only be used in the case where we want to save the data to the database.</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="../../../../../../org/apache/turbine/services/security/ldap/LDAPUser.html#setTemp(java.lang.String, java.lang.Object)">setTemp</A></B>(java.lang.String&nbsp;name,        java.lang.Object&nbsp;value)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Put an object into temporary storage.</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="../../../../../../org/apache/turbine/services/security/ldap/LDAPUser.html#setTempStorage(java.util.Hashtable)">setTempStorage</A></B>(java.util.Hashtable&nbsp;storage)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This should only be used in the case where we want to save the data to the database.</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="../../../../../../org/apache/turbine/services/security/ldap/LDAPUser.html#setTimeout(int)">setTimeout</A></B>(int&nbsp;time)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A User object can have a variable Timeout which is defined in minutes.</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="../../../../../../org/apache/turbine/services/security/ldap/LDAPUser.html#setUserName(java.lang.String)">setUserName</A></B>(java.lang.String&nbsp;username)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the username for this user.</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="../../../../../../org/apache/turbine/services/security/ldap/LDAPUser.html#updateLastLogin()">updateLastLogin</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Updates the last login date in the database.</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="../../../../../../org/apache/turbine/services/security/ldap/LDAPUser.html#valueBound(javax.servlet.http.HttpSessionBindingEvent)">valueBound</A></B>(javax.servlet.http.HttpSessionBindingEvent&nbsp;hsbe)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Implement this method if you wish to be notified when the User has been Bound to the session.</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="../../../../../../org/apache/turbine/services/security/ldap/LDAPUser.html#valueUnbound(javax.servlet.http.HttpSessionBindingEvent)">valueUnbound</A></B>(javax.servlet.http.HttpSessionBindingEvent&nbsp;hsbe)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Implement this method if you wish to be notified when the User has been Unbound from the session.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_org.apache.torque.om.BaseObject"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class org.apache.torque.om.BaseObject</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>equals, equals, getByName, getByPeerName, getByPosition, getCategory, getPrimaryKey, getPrimaryKeyAsBigDecimal, getPrimaryKeyAsInt, getPrimaryKeyAsLong, getPrimaryKeyAsString, hashCode, isModified, isNew, log, resetModified, setModified, setNew, setPrimaryKey, setPrimaryKey, setPrimaryKey, setPrimaryKey, setPrimaryKey</CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="LDAPUser()"><!-- --></A><H3>LDAPUser</H3><PRE>public <B>LDAPUser</B>()</PRE><DL><DD>Constructor. Create a new User and set the createDate.</DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getAccessCounterForSession()"><!-- --></A><H3>getAccessCounterForSession</H3><PRE>public int <B>getAccessCounterForSession</B>()</PRE><DL><DD>Gets the access counter for a user during a session.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../../org/apache/turbine/om/security/User.html#getAccessCounterForSession()">getAccessCounterForSession</A></CODE> in interface <CODE><A HREF="../../../../../../org/apache/turbine/om/security/User.html">User</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>The access counter for the user for the session.</DL></DD></DL><HR><A NAME="getAccessCounter()"><!-- --></A><H3>getAccessCounter</H3><PRE>public int <B>getAccessCounter</B>()</PRE><DL><DD>Gets the access counter for a user from perm storage.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../../org/apache/turbine/om/security/User.html#getAccessCounter()">getAccessCounter</A></CODE> in interface <CODE><A HREF="../../../../../../org/apache/turbine/om/security/User.html">User</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>The access counter for the user.</DL></DD></DL><HR><A NAME="getCreateDate()"><!-- --></A><H3>getCreateDate</H3><PRE>public java.util.Date <B>getCreateDate</B>()</PRE><DL><DD>Gets the create date for this User.  This is the time at which the user object was created.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../../org/apache/turbine/om/security/User.html#getCreateDate()">getCreateDate</A></CODE> in interface <CODE><A HREF="../../../../../../org/apache/turbine/om/security/User.html">User</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>A Java Date with the date of creation for the user.</DL></DD></DL><HR><A NAME="getConfirmed()"><!-- --></A><H3>getConfirmed</H3><PRE>public java.lang.String <B>getConfirmed</B>()</PRE><DL><DD>Returns the value of Confirmed variable<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../../org/apache/turbine/om/security/User.html#getConfirmed()">getConfirmed</A></CODE> in interface <CODE><A HREF="../../../../../../org/apache/turbine/om/security/User.html">User</A></CODE></DL></DD><DD>Following copied from interface: <CODE>org.apache.turbine.om.security.User</CODE></DD><DD><DL><DT><B>Returns:</B><DD>The confirmed value</DL></DD></DL><HR><A NAME="getEmail()"><!-- --></A><H3>getEmail</H3><PRE>public java.lang.String <B>getEmail</B>()</PRE><DL><DD>Returns the Email for this user.  If this is defined, then the user is considered logged in.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../../org/apache/turbine/om/security/User.html#getEmail()">getEmail</A></CODE> in interface <CODE><A HREF="../../../../../../org/apache/turbine/om/security/User.html">User</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>A String with the user's Email.</DL></DD></DL><HR><A NAME="getLastAccessDate()"><!-- --></A><H3>getLastAccessDate</H3><PRE>public java.util.Date <B>getLastAccessDate</B>()</PRE>

⌨️ 快捷键说明

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