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

📄 ldapusermanager.html

📁 turbine教程
💻 HTML
📖 第 1 页 / 共 3 页
字号:
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method is not yet implemented Forcibly sets new password for an 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/LDAPUserManager.html#removeAccount(org.apache.turbine.om.security.User)">removeAccount</A></B>(<A HREF="../../../../../../org/apache/turbine/om/security/User.html">User</A>&nbsp;user)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method is not yet implemented Removes an user account from the system.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../../../org/apache/turbine/om/security/User.html">User</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../org/apache/turbine/services/security/ldap/LDAPUserManager.html#retrieve(org.apache.torque.util.Criteria)">retrieve</A></B>(org.apache.torque.util.Criteria&nbsp;criteria)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This is currently not implemented to behave as expected.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../../../org/apache/turbine/om/security/User.html">User</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../org/apache/turbine/services/security/ldap/LDAPUserManager.html#retrieve(java.lang.String)">retrieve</A></B>(java.lang.String&nbsp;username)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Retrieve a user from persistent storage using username as the key.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../../../org/apache/turbine/om/security/User.html">User</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../org/apache/turbine/services/security/ldap/LDAPUserManager.html#retrieve(java.lang.String, java.lang.String)">retrieve</A></B>(java.lang.String&nbsp;username,         java.lang.String&nbsp;password)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Retrieve a user from persistent storage using username as the key, and authenticate the 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/LDAPUserManager.html#store(org.apache.turbine.om.security.User)">store</A></B>(<A HREF="../../../../../../org/apache/turbine/om/security/User.html">User</A>&nbsp;user)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method is not yet implemented Save a User object to persistent storage.</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, equals, finalize, getClass, hashCode, 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="LDAPUserManager()"><!-- --></A><H3>LDAPUserManager</H3><PRE>public <B>LDAPUserManager</B>()</PRE><DL></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="accountExists(org.apache.turbine.om.security.User)"><!-- --></A><H3>accountExists</H3><PRE>public boolean <B>accountExists</B>(<A HREF="../../../../../../org/apache/turbine/om/security/User.html">User</A>&nbsp;user)                      throws <A HREF="../../../../../../org/apache/turbine/util/security/DataBackendException.html">DataBackendException</A></PRE><DL><DD>Check wether a specified user's account exists. The login name is used for looking up the account.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../../org/apache/turbine/services/security/UserManager.html#accountExists(org.apache.turbine.om.security.User)">accountExists</A></CODE> in interface <CODE><A HREF="../../../../../../org/apache/turbine/services/security/UserManager.html">UserManager</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>user</CODE> - The user to be checked.<DT><B>Returns:</B><DD>true if the specified account exists<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../../org/apache/turbine/util/security/DataBackendException.html">DataBackendException</A></CODE> - Error accessing the data backend.</DL></DD></DL><HR><A NAME="accountExists(java.lang.String)"><!-- --></A><H3>accountExists</H3><PRE>public boolean <B>accountExists</B>(java.lang.String&nbsp;username)                      throws <A HREF="../../../../../../org/apache/turbine/util/security/DataBackendException.html">DataBackendException</A></PRE><DL><DD>Check wether a specified user's account exists. The login name is used for looking up the account.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../../org/apache/turbine/services/security/UserManager.html#accountExists(java.lang.String)">accountExists</A></CODE> in interface <CODE><A HREF="../../../../../../org/apache/turbine/services/security/UserManager.html">UserManager</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>usename</CODE> - The name of the user to be checked.<DT><B>Returns:</B><DD>true if the specified account exists<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../../org/apache/turbine/util/security/DataBackendException.html">DataBackendException</A></CODE> - Error accessing the data backend.</DL></DD></DL><HR><A NAME="retrieve(java.lang.String)"><!-- --></A><H3>retrieve</H3><PRE>public <A HREF="../../../../../../org/apache/turbine/om/security/User.html">User</A> <B>retrieve</B>(java.lang.String&nbsp;username)              throws <A HREF="../../../../../../org/apache/turbine/util/security/UnknownEntityException.html">UnknownEntityException</A>,                     <A HREF="../../../../../../org/apache/turbine/util/security/DataBackendException.html">DataBackendException</A></PRE><DL><DD>Retrieve a user from persistent storage using username as the key.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../../org/apache/turbine/services/security/UserManager.html#retrieve(java.lang.String)">retrieve</A></CODE> in interface <CODE><A HREF="../../../../../../org/apache/turbine/services/security/UserManager.html">UserManager</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>username</CODE> - the name of the user.<DT><B>Returns:</B><DD>an User object.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../../org/apache/turbine/util/security/UnknownEntityException.html">UnknownEntityException</A></CODE> - if the user's account does not            exist in the database.<DD><CODE><A HREF="../../../../../../org/apache/turbine/util/security/DataBackendException.html">DataBackendException</A></CODE> - Error accessing the data backend.</DL></DD></DL><HR><A NAME="retrieve(org.apache.torque.util.Criteria)"><!-- --></A><H3>retrieve</H3><PRE>public <A HREF="../../../../../../org/apache/turbine/om/security/User.html">User</A>[] <B>retrieve</B>(org.apache.torque.util.Criteria&nbsp;criteria)                throws <A HREF="../../../../../../org/apache/turbine/util/security/DataBackendException.html">DataBackendException</A></PRE><DL><DD>This is currently not implemented to behave as expected.  It is just here to support the interface requirement. Retrieve a set of users that meet the specified criteria. As the keys for the criteria, you should use the constants that are defined in <A HREF="../../../../../../org/apache/turbine/om/security/User.html"><CODE>User</CODE></A> interface, plus the the names of the custom attributes you added to your user representation in the data storage. Use verbatim names of the attributes - without table name prefix in case of DB implementation.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../../org/apache/turbine/services/security/UserManager.html#retrieve(org.apache.torque.util.Criteria)">retrieve</A></CODE> in interface <CODE><A HREF="../../../../../../org/apache/turbine/services/security/UserManager.html">UserManager</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>criteria</CODE> - The criteria of selection.<DT><B>Returns:</B><DD>a List of users meeting the criteria.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../../org/apache/turbine/util/security/DataBackendException.html">DataBackendException</A></CODE> - Error accessing the data backend.</DL></DD></DL><HR><A NAME="retrieve(java.lang.String, java.lang.String)"><!-- --></A><H3>retrieve</H3><PRE>public <A HREF="../../../../../../org/apache/turbine/om/security/User.html">User</A> <B>retrieve</B>(java.lang.String&nbsp;username,                     java.lang.String&nbsp;password)              throws <A HREF="../../../../../../org/apache/turbine/util/security/PasswordMismatchException.html">PasswordMismatchException</A>,                     <A HREF="../../../../../../org/apache/turbine/util/security/UnknownEntityException.html">UnknownEntityException</A>,                     <A HREF="../../../../../../org/apache/turbine/util/security/DataBackendException.html">DataBackendException</A></PRE><DL><DD>Retrieve a user from persistent storage using username as the key, and authenticate the user. The implementation may chose to authenticate to the server as the user whose data is being retrieved.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../../org/apache/turbine/services/security/UserManager.html#retrieve(java.lang.String, java.lang.String)">retrieve</A></CODE> in interface <CODE><A HREF="../../../../../../org/apache/turbine/services/security/UserManager.html">UserManager</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>username</CODE> - the name of the user.<DD><CODE>password</CODE> - the user supplied password.<DT><B>Returns:</B><DD>an User object.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../../org/apache/turbine/util/security/PasswordMismatchException.html">PasswordMismatchException</A></CODE> - if the supplied password was            incorrect.<DD><CODE><A HREF="../../../../../../org/apache/turbine/util/security/UnknownEntityException.html">UnknownEntityException</A></CODE> - if the user's account does not            exist in the database.<DD><CODE><A HREF="../../../../../../org/apache/turbine/util/security/DataBackendException.html">DataBackendException</A></CODE> - Error accessing the data backend.</DL></DD></DL><HR>

⌨️ 快捷键说明

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