01: /*
02: * UserDAO.java
03: *
04: * Created on 28 de marzo de 2005, 13:45
05: */
06:
07: package org.manentia.kasai.group;
08:
09: import java.util.Collection;
10: import java.util.List;
11:
12: import org.manentia.kasai.Group;
13: import org.manentia.kasai.exceptions.*;
14:
15: import com.manentia.commons.xml.XMLException;
16:
17: /**
18: *
19: * @author rzuasti
20: */
21: public interface GroupDAO {
22: public void addUserToGroup(String login, String group)
23: throws DoesntExistsException, DataAccessException,
24: XMLException;
25:
26: public boolean checkUserBelongsToGroup(String user, String group)
27: throws DataAccessException;
28:
29: public void create(Group group) throws InvalidAttributesException,
30: AlreadyExistsException, DataAccessException, XMLException;
31:
32: public void delete(String group) throws DataAccessException;
33:
34: public void deleteUserFromGroup(String login, String group)
35: throws DataAccessException;
36:
37: public List list(String idGroup, String description, int blocked,
38: int system, String login) throws DataAccessException,
39: XMLException;
40:
41: public Collection listUsersNotInGroup(String group)
42: throws DataAccessException, XMLException;
43:
44: public Group read(String group) throws DataAccessException,
45: XMLException;
46:
47: public void update(Group group) throws InvalidAttributesException,
48: DataAccessException, XMLException;
49:
50: public void update(Group group, String[] members)
51: throws InvalidAttributesException, DataAccessException,
52: XMLException;
53: }
|