KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > hero > user > UserBase


1 /*
2  * Created on 28 avr. 2004
3  *
4  * TODO To change the template for this generated file go to
5  * Window - Preferences - Java - Code Generation - Code and Comments
6  */

7 package hero.user;
8
9 import java.util.Map JavaDoc;
10 import java.util.Collection JavaDoc;
11
12 /**
13  * @author charoy
14  * 28 avr. 2004 - UserBase.java
15  * This program is free software; you can redistribute it and/or
16  * modify it under the terms of the GNU Lesser General Public License
17  * as published by the Free Software Foundation; either version 2
18  * of the License, or (at your option) any later version.
19  *
20  * This program is distributed in the hope that it will be useful,
21  * but WITHOUT ANY WARRANTY; without even the implied warranty of
22  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23  * GNU Lesser General Public License for more details.
24  *
25  * You should have received a copy of the GNU Lesser General Public License
26  * along with this program; if not, write to the Free Software
27  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
28  */

29 public interface UserBase {
30     public String JavaDoc getUserName(String JavaDoc userId) throws UserBaseException;
31     public Map JavaDoc getUserInfos(String JavaDoc userId) throws UserBaseException;
32     public Collection JavaDoc getUsers() throws UserBaseException;
33     public boolean handle(String JavaDoc userId) throws UserBaseException;
34     
35     // for mutable providers
36
public boolean isMutable();
37     public void create(String JavaDoc userId, String JavaDoc password, String JavaDoc userName, String JavaDoc userEmail, Map JavaDoc userInfos) throws UserBaseException,ImmutableException;
38     public void edit(String JavaDoc userId, String JavaDoc password, String JavaDoc userName, String JavaDoc userEmail, Map JavaDoc userInfos) throws UserBaseException,ImmutableException;
39     public void deleteUser(String JavaDoc userId) throws UserBaseException,ImmutableException;
40
41 }
42
Popular Tags