01: /*
02: * UserDAO.java
03: *
04: * Created on 28 de marzo de 2005, 13:45
05: */
06:
07: package org.manentia.kasai.user;
08:
09: import java.util.List;
10:
11: import org.manentia.kasai.User;
12: import org.manentia.kasai.exceptions.AlreadyExistsException;
13: import org.manentia.kasai.exceptions.DataAccessException;
14: import org.manentia.kasai.exceptions.InvalidAttributesException;
15:
16: import com.manentia.commons.xml.XMLException;
17:
18: /**
19: *
20: * @author rzuasti
21: */
22: public interface UserDAO {
23:
24: public boolean checkOperative(String login, String operative,
25: String object);
26:
27: public void create(User user) throws InvalidAttributesException,
28: AlreadyExistsException, DataAccessException, XMLException;
29:
30: public void delete(String login) throws DataAccessException;
31:
32: public List list(String login, String firstName, String lastName,
33: String email, int blocked, String description, String group)
34: throws DataAccessException, XMLException;
35:
36: public String[] listUsernames() throws DataAccessException;
37:
38: public String[] listUsernames(String groupId)
39: throws DataAccessException;
40:
41: public User read(String login, boolean cache)
42: throws DataAccessException, XMLException;
43:
44: public void update(User user) throws InvalidAttributesException,
45: DataAccessException, XMLException;
46:
47: }
|