root / src / gr / ebs / gss / admin / client / AdminServiceAsync.java @ fc19c028
History | View | Annotate | Download (1.8 kB)
1 |
package gr.ebs.gss.admin.client; |
---|---|
2 |
|
3 |
import gr.ebs.gss.server.domain.dto.FileBodyDTO; |
4 |
import gr.ebs.gss.server.domain.dto.FileHeaderDTO; |
5 |
import gr.ebs.gss.server.domain.dto.PermissionDTO; |
6 |
import gr.ebs.gss.server.domain.dto.StatsDTO; |
7 |
import gr.ebs.gss.server.domain.dto.SystemStatsDTO; |
8 |
import gr.ebs.gss.server.domain.dto.UserClassDTO; |
9 |
import gr.ebs.gss.server.domain.dto.UserDTO; |
10 |
|
11 |
import java.util.Date; |
12 |
import java.util.List; |
13 |
import java.util.Set; |
14 |
|
15 |
import com.google.gwt.user.client.rpc.AsyncCallback; |
16 |
|
17 |
public interface AdminServiceAsync { |
18 |
void getUsers(AsyncCallback<List<UserDTO>> callback); |
19 |
|
20 |
void getUserStatistics(Long userId, AsyncCallback<StatsDTO> callback); |
21 |
|
22 |
void toggleActiveUser(Long userId, AsyncCallback<Void> callback); |
23 |
|
24 |
void setFilePermissions(String uri, Set<PermissionDTO> permissions, AsyncCallback<Void> callback); |
25 |
|
26 |
void searchUsers(String query, AsyncCallback<List<UserDTO>> callback); |
27 |
|
28 |
void getSystemStatistics(AsyncCallback<SystemStatsDTO> callback);
|
29 |
|
30 |
void getLastLoggedInUsers(Date lastLoginDate, AsyncCallback<List<UserDTO>> callback); |
31 |
|
32 |
void logout(AsyncCallback<Void> callback); |
33 |
|
34 |
void searchFiles(String query, AsyncCallback<List<FileHeaderDTO>> callback); |
35 |
|
36 |
void getUser(String username, AsyncCallback<UserDTO> callback); |
37 |
|
38 |
void getFile(long fileId, AsyncCallback<FileHeaderDTO> callback); |
39 |
|
40 |
void getVersions(Long userId, Long fileId, AsyncCallback<List<FileBodyDTO>> callback); |
41 |
|
42 |
void getUsersWaitingActivation(AsyncCallback<List<UserDTO>> callback); |
43 |
|
44 |
void changeUserClass(Long userId, Long userClassId, AsyncCallback<Void> callback); |
45 |
|
46 |
void getUserClasses(AsyncCallback<List<UserClassDTO>> callback); |
47 |
|
48 |
void saveOrUpdateUserClass(UserClassDTO userClass, AsyncCallback<Void> callback); |
49 |
|
50 |
void removeUserClass(UserClassDTO userClass, AsyncCallback<Void> callback); |
51 |
|
52 |
void removeUser(Long userId, AsyncCallback<Void> callback); |
53 |
|
54 |
} |