01: /*
02: * Created on 28 avr. 2004
03: *
04: * TODO To change the template for this generated file go to
05: * Window - Preferences - Java - Code Generation - Code and Comments
06: */
07: package hero.user;
08:
09: import java.util.Map;
10: import java.util.Collection;
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 getUserName(String userId) throws UserBaseException;
31:
32: public Map getUserInfos(String userId) throws UserBaseException;
33:
34: public Collection getUsers() throws UserBaseException;
35:
36: public boolean handle(String userId) throws UserBaseException;
37:
38: // for mutable providers
39: public boolean isMutable();
40:
41: public void create(String userId, String password, String userName,
42: String userEmail, Map userInfos) throws UserBaseException,
43: ImmutableException;
44:
45: public void edit(String userId, String password, String userName,
46: String userEmail, Map userInfos) throws UserBaseException,
47: ImmutableException;
48:
49: public void deleteUser(String userId) throws UserBaseException,
50: ImmutableException;
51:
52: }
|