1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.common.ui.client.service; |
17 | |
|
18 | |
import java.util.ArrayList; |
19 | |
import java.util.HashMap; |
20 | |
|
21 | |
import org.kuali.student.common.rice.authorization.PermissionType; |
22 | |
|
23 | |
import com.google.gwt.user.client.rpc.AsyncCallback; |
24 | |
|
25 | |
|
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | |
|
32 | |
public interface SecurityRpcServiceAsync { |
33 | |
|
34 | |
public void getPrincipalUsername(AsyncCallback<String> callback); |
35 | |
public void hasScreenPermission(String screenName, AsyncCallback<Boolean> callback); |
36 | |
public void getScreenPermissions(ArrayList<String> screens, AsyncCallback<HashMap<String,Boolean>> callback); |
37 | |
public void getPermissions(ArrayList<String> permissionNames, AsyncCallback<HashMap<String,Boolean>> callback); |
38 | |
public void hasPermissionByPermissionName(String permissionName, AsyncCallback<Boolean> callback); |
39 | |
public void getPermissionsByType(PermissionType type, AsyncCallback<ArrayList<String>> callback); |
40 | |
public void getPermissionsByType(PermissionType permissionType, HashMap<String,String> attributes, AsyncCallback<ArrayList<String>> callback) ; |
41 | |
|
42 | |
} |