01: /*
02: * UserDAO.java
03: *
04: * Created on 28 de marzo de 2005, 13:45
05: */
06:
07: package org.manentia.kasai.authobject;
08:
09: import java.util.Collection;
10:
11: import org.manentia.kasai.AuthObject;
12: import org.manentia.kasai.exceptions.DataAccessException;
13: import org.manentia.kasai.exceptions.DoesntExistsException;
14:
15: import com.manentia.commons.xml.XMLException;
16:
17: /**
18: *
19: * @author rzuasti
20: */
21: public interface AuthObjectDAO {
22:
23: public void copyPermissionsFromObject(String sourceObject,
24: String destinationObject) throws DoesntExistsException,
25: DataAccessException;
26:
27: public void create(String object) throws DataAccessException;
28:
29: public void createObjectGroupRole(String object, String group,
30: int role) throws DoesntExistsException,
31: DataAccessException, XMLException;
32:
33: public void createObjectUserRole(String object, String login,
34: int role) throws DoesntExistsException,
35: DataAccessException, XMLException;
36:
37: public void delete(String object) throws DataAccessException;
38:
39: public void deleteObjectGroupRole(int id)
40: throws DataAccessException;
41:
42: public void deleteObjectUserRole(int id) throws DataAccessException;
43:
44: public void deleteObjectUserRole(String login, String object,
45: int role) throws DataAccessException;
46:
47: public void deleteObjectUserRole(String login, String object)
48: throws DataAccessException;
49:
50: public Collection listObjectGroupsRoles(String object)
51: throws DataAccessException;
52:
53: public Collection listObjectUsersRoles(String object)
54: throws DataAccessException;
55:
56: public AuthObject read(String id) throws DataAccessException;
57: }
|