01: /*
02: * UserHandler.java
03: *
04: * Created on June 22, 2004, 5:44 PM
05: */
06:
07: package org.manentia.kasai.operative;
08:
09: import java.util.Collection;
10:
11: import org.manentia.kasai.exceptions.DataAccessException;
12:
13: import com.manentia.commons.xml.XMLException;
14:
15: /**
16: *
17: * @author rzuasti
18: */
19: public class OperativeHandler {
20: private static OperativeHandler instance;
21:
22: private OperativeHandler() {
23: }
24:
25: public static synchronized OperativeHandler getInstance() {
26: if (instance == null) {
27: instance = new OperativeHandler();
28: }
29:
30: return instance;
31: }
32:
33: public Collection listGroupsOperative(String operative,
34: String object) throws DataAccessException, XMLException {
35: return OperativeDAOFactory.getInstance().createDAO()
36: .listGroupsOperative(operative, object);
37: }
38:
39: public Collection list(String idOperative)
40: throws DataAccessException {
41: return OperativeDAOFactory.getInstance().createDAO().list(
42: idOperative);
43: }
44:
45: public Collection listUsersOperative(String operative, String object)
46: throws DataAccessException, XMLException {
47: return OperativeDAOFactory.getInstance().createDAO()
48: .listUsersOperative(operative, object);
49: }
50: }
|