1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.seasar.tuigwaa.security;
17
18 import java.security.Principal;
19
20 /***
21 * @author nishioka
22 */
23 public interface SecurityService {
24
25 public static final String ROLE_UNAUTHENTICATED = "[unauthenticated]";
26
27 public static final String ROLE_AUTHENTICATED = "[authenticated]";
28
29 public void setPermissions(String siteName, Action action,
30 String[] grantRoleNames, String[] denyRoleNames);
31
32 public boolean hasPermission(String siteName, Principal principal,Action action);
33
34 public boolean hasPermission(String siteName, String role, Action action);
35
36 public boolean hasPermission(String siteName, Action action);
37
38
39 }