01: package com.jat.business.privileges;
02:
03: import com.jat.business.BusinessException;
04: import com.jat.business.JatUser;
05: import java.util.Vector;
06:
07: /**
08: * <p>Title: JAT</p>
09: * <p>Description: </p>
10: * <p>Copyright: Copyright (c) 2004 -2005 Stefano Fratini (stefano.fratini@gmail.com)</p>
11: * <p>Distributed under the terms of the GNU Lesser General Public License, v2.1 or later</p>
12: * @author stf
13: * @version 1.0
14: * @since 1.2
15: */
16:
17: public interface PrivilegesLoader {
18:
19: public PrivilegeList getPrivileges(JatUser user)
20: throws BusinessException;
21:
22: public PrivilegeList getPrivileges(String profile)
23: throws BusinessException;
24:
25: public Vector profiles() throws BusinessException;
26:
27: public String getDataSource();
28:
29: public void remove(Profile profile) throws Exception;
30:
31: public void update(Profile profile) throws Exception;
32:
33: public void insert(Profile profile) throws Exception;
34:
35: public void persist() throws Exception;
36:
37: /** @link dependency
38: * @stereotype instantiate*/
39: /*# PrivilegeList lnkPrivilegeList; */
40: }
|