📄 photouser.html
字号:
Set the ID of this user.</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="../../../net/spy/photo/PhotoUser.html#setPassword(java.lang.String)">setPassword</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> pass)</CODE><BR> Set the user's password.</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="../../../net/spy/photo/PhotoUser.html#setRealname(java.lang.String)">setRealname</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> realname)</CODE><BR> Set the real name of this user.</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="../../../net/spy/photo/PhotoUser.html#setUsername(java.lang.String)">setUsername</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> username)</CODE><BR> Set the username of this user.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../net/spy/photo/PhotoUser.html#toString()">toString</A></B>()</CODE><BR> String me.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../net/spy/photo/PhotoUser.html#toXML()">toXML</A></B>()</CODE><BR> XML the user.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_net.spy.db.AbstractSavable"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class net.spy.db.<A HREF="http://bleu.west.spy.net/~dustin/spyjar/j2/doc/net/spy/db/AbstractSavable.html">AbstractSavable</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://bleu.west.spy.net/~dustin/spyjar/j2/doc/net/spy/db/AbstractSavable.html#getPostSavables(net.spy.db.SaveContext)">getPostSavables</A>, <A HREF="http://bleu.west.spy.net/~dustin/spyjar/j2/doc/net/spy/db/AbstractSavable.html#getPreSavables(net.spy.db.SaveContext)">getPreSavables</A>, <A HREF="http://bleu.west.spy.net/~dustin/spyjar/j2/doc/net/spy/db/AbstractSavable.html#getSavables(net.spy.db.SaveContext)">getSavables</A>, <A HREF="http://bleu.west.spy.net/~dustin/spyjar/j2/doc/net/spy/db/AbstractSavable.html#isModified()">isModified</A>, <A HREF="http://bleu.west.spy.net/~dustin/spyjar/j2/doc/net/spy/db/AbstractSavable.html#isNew()">isNew</A>, <A HREF="http://bleu.west.spy.net/~dustin/spyjar/j2/doc/net/spy/db/AbstractSavable.html#setModified(boolean)">setModified</A>, <A HREF="http://bleu.west.spy.net/~dustin/spyjar/j2/doc/net/spy/db/AbstractSavable.html#setNew(boolean)">setNew</A>, <A HREF="http://bleu.west.spy.net/~dustin/spyjar/j2/doc/net/spy/db/AbstractSavable.html#setSaved()">setSaved</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_net.spy.SpyObject"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class net.spy.<A HREF="http://bleu.west.spy.net/~dustin/spyjar/j2/doc/net/spy/SpyObject.html">SpyObject</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://bleu.west.spy.net/~dustin/spyjar/j2/doc/net/spy/SpyObject.html#getLogger()">getLogger</A></CODE></TD></TR></TABLE> <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.<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#clone()">clone</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#finalize()">finalize</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#getClass()">getClass</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#hashCode()">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#notify()">notify</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#wait()">wait</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#wait(long)">wait</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#wait(long, int)">wait</A></CODE></TD></TR></TABLE> <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="PhotoUser()"><!-- --></A><H3>PhotoUser</H3><PRE>public <B>PhotoUser</B>()</PRE><DL><DD>Get a new, empty user.<P></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="getPhotoUser(java.lang.String)"><!-- --></A><H3>getPhotoUser</H3><PRE>public static <A HREF="../../../net/spy/photo/PhotoUser.html">PhotoUser</A> <B>getPhotoUser</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> spec) throws <A HREF="../../../net/spy/photo/PhotoUserException.html">PhotoUserException</A></PRE><DL><DD>Look up a user by name or email address.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>spec</CODE> - the username or email address<DT><B>Returns:</B><DD>the user<DT><B>Throws:</B><DD><CODE><A HREF="../../../net/spy/photo/NoSuchPhotoUserException.html">NoSuchPhotoUserException</A></CODE> - if the user does not exist<DD><CODE><A HREF="../../../net/spy/photo/PhotoUserException.html">PhotoUserException</A></CODE> - if there's a problem looking up the user</DL></DD></DL><HR><A NAME="getPhotoUser(int)"><!-- --></A><H3>getPhotoUser</H3><PRE>public static <A HREF="../../../net/spy/photo/PhotoUser.html">PhotoUser</A> <B>getPhotoUser</B>(int id) throws <A HREF="../../../net/spy/photo/PhotoUserException.html">PhotoUserException</A></PRE><DL><DD>Look up a user by user ID.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>id</CODE> - the user ID<DT><B>Returns:</B><DD>the user<DT><B>Throws:</B><DD><CODE><A HREF="../../../net/spy/photo/NoSuchPhotoUserException.html">NoSuchPhotoUserException</A></CODE> - if the user does not exist<DD><CODE><A HREF="../../../net/spy/photo/PhotoUserException.html">PhotoUserException</A></CODE> - if there's a problem looking up the user</DL></DD></DL><HR><A NAME="getAllPhotoUsers()"><!-- --></A><H3>getAllPhotoUsers</H3><PRE>public static <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/Collection.html">Collection</A> <B>getAllPhotoUsers</B>() throws <A HREF="../../../net/spy/photo/PhotoUserException.html">PhotoUserException</A></PRE><DL><DD>Get all known users.<P><DD><DL></DL></DD><DD><DL><DD><CODE><A HREF="../../../net/spy/photo/PhotoUserException.html">PhotoUserException</A></CODE></DL></DD></DL><HR><A NAME="recache()"><!-- --></A><H3>recache</H3><PRE>public static void <B>recache</B>() throws <A HREF="../../../net/spy/photo/PhotoUserException.html">PhotoUserException</A></PRE><DL><DD>Uncache and recache the users.<P><DD><DL></DL></DD><DD><DL><DD><CODE><A HREF="../../../net/spy/photo/PhotoUserException.html">PhotoUserException</A></CODE></DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> <B>toString</B>()</PRE><DL><DD>String me.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#toString()">toString</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html">Object</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getUsername()"><!-- --></A><H3>getUsername</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> <B>getUsername</B>()</PRE><DL><DD>Get the username.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getEmail()"><!-- --></A><H3>getEmail</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> <B>getEmail</B>()</PRE><DL><DD>Get the user's E-mail address.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getACLEntries()"><!-- --></A><H3>getACLEntries</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/Collection.html">Collection</A> <B>getACLEntries</B>()</PRE><DL><DD>Get the ACL list.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getACLEntryForCat(int)"><!-- --></A><H3>getACLEntryForCat</H3><PRE>public <A HREF="../../../net/spy/photo/PhotoACLEntry.html">PhotoACLEntry</A> <B>getACLEntryForCat</B>(int cat)</PRE><DL><DD>Get an ACL entry for the given category.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>cat</CODE> - the category ID for which you want the entry<DT><B>Returns:</B><DD>the entry, or null if there is no entry for the given cat.</DL></DD></DL><HR><A NAME="addViewACLEntry(int)"><!-- --></A><H3>addViewACLEntry</H3><PRE>public void <B>addViewACLEntry</B>(int cat)</PRE><DL><DD>Add an ACL entry permitting view access to a given category.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="addAddACLEntry(int)"><!-- --></A><H3>addAddACLEntry</H3><PRE>public void <B>addAddACLEntry</B>(int cat)</PRE><DL><DD>Add an ACL entry permitting add access to a given category.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="removeACLEntry(int)"><!-- --></A><H3>removeACLEntry</H3><PRE>public void <B>removeACLEntry</B>(int cat)</PRE><DL><DD>Remove an ACL entry.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="removeAllACLEntries()"><!-- --></A><H3>removeAllACLEntries</H3><PRE>public void <B>removeAllACLEntries</B>()</PRE><DL><DD>Remove all ACL entries.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getGroups()"><!-- --></A><H3>getGroups</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/Collection.html">Collection</A> <B>getGroups</B>()</PRE><DL><DD>Get a Collection of Strings describing all the groups this user is in.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -