UserData.java
上传用户:huihesys
上传日期:2007-01-04
资源大小:3877k
文件大小:3k
- /* CVS ID: $Id: UserData.java,v 1.4 2000/04/06 08:02:02 wastl Exp $ */
- package net.wastl.webmail.server;
- import java.util.*;
- /**
- * UserData.java
- *
- * Created: Wed Mar 24 1999
- *
- * Copyright (C) 1999-2000 Sebastian Schaffert
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- */
- /**
- *
- * @author Sebastian Schaffert
- * @version $Revision: 1.4 $
- */
- public interface UserData {
- /**
- * @deprecated Use Authenticators and login() instead
- */
- public void login(String password) throws InvalidPasswordException;
- public void login();
- public void addMailHost(String name, String host, String login, String password);
- public void removeMailHost(String name);
- public MailHostData getMailHost(String name);
- public Enumeration mailHosts();
-
- public int getMaxShowMessages();
- public void setMaxShowMessages(int i);
- /**
- * Break lines at this maximum length
- */
- public int getMaxLineLength();
- public void setMaxLineLength(int i);
- /**
- * The user wants to break lines.
- */
- public boolean wantsBreakLines();
- public void setBreakLines(boolean b);
- /**
- * As of WebMail 0.7.0 this is different from the username, because it
- * consists of the username and the domain.
- * @see getUserName
- */
- public String getLogin();
- public String getFullName();
- public void setFullName(String s);
- public String getSignature();
- public void setSignature(String s);
- public String getEmail();
- public void setEmail(String s);
- public Locale getPreferredLocale();
- public void setPreferredLocale(String newloc);
- public String getTheme();
- public void setTheme(String theme);
- public String getFirstLogin();
- public String getLastLogin();
- public String getLoginCount();
- public boolean checkPassword(String s);
- public void setPassword(String newpasswd, String verify) throws InvalidPasswordException;
- public boolean wantsShowImages();
- public void setShowImages(boolean b);
- public boolean wantsShowFancy();
- public void setShowFancy(boolean b);
- public boolean wantsSetFlags();
- public void setSetFlags(boolean b);
- public void setSaveSent(boolean b);
- public boolean wantsSaveSent();
- public String getSentFolder();
- public void setSentFolder(String s);
- public String getDomain();
- public void setDomain(String s);
- /**
- * Return the username without the domain (in contrast to getLogin()).
- * @see getLogin
- */
- public String getUserName();
- }