Statistics
| Branch: | Tag: | Revision:

root / src / gr / ebs / gss / admin / client / AdminService.java @ 0a37ac21

History | View | Annotate | Download (2.4 kB)

1
package gr.ebs.gss.admin.client;
2

    
3
import gr.ebs.gss.client.exceptions.InsufficientPermissionsException;
4
import gr.ebs.gss.client.exceptions.ObjectNotFoundException;
5
import gr.ebs.gss.client.exceptions.RpcException;
6
import gr.ebs.gss.server.domain.dto.FileBodyDTO;
7
import gr.ebs.gss.server.domain.dto.FileHeaderDTO;
8
import gr.ebs.gss.server.domain.dto.PermissionDTO;
9
import gr.ebs.gss.server.domain.dto.StatsDTO;
10
import gr.ebs.gss.server.domain.dto.SystemStatsDTO;
11
import gr.ebs.gss.server.domain.dto.UserClassDTO;
12
import gr.ebs.gss.server.domain.dto.UserDTO;
13

    
14
import java.util.Date;
15
import java.util.List;
16
import java.util.Set;
17

    
18
import com.google.gwt.user.client.rpc.RemoteService;
19
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
20

    
21
@RemoteServiceRelativePath("admin")
22
public interface AdminService extends RemoteService {
23
        List<UserDTO> getUsers() throws RpcException, ObjectNotFoundException;
24

    
25
        List<UserDTO> searchUsers(String query) throws RpcException, ObjectNotFoundException;
26

    
27
        StatsDTO getUserStatistics(Long userId) throws RpcException, ObjectNotFoundException;
28

    
29
        void toggleActiveUser(Long userId) throws RpcException,ObjectNotFoundException;
30

    
31
        void setFilePermissions(String uri, Set<PermissionDTO> permissions)        throws RpcException, ObjectNotFoundException;
32

    
33
        SystemStatsDTO getSystemStatistics() throws RpcException,ObjectNotFoundException;
34

    
35
        public List<UserDTO> getLastLoggedInUsers(Date lastLoginDate) throws RpcException;
36

    
37
        public void logout();
38

    
39
        public List<FileHeaderDTO> searchFiles(String query) throws RpcException, ObjectNotFoundException, InsufficientPermissionsException;
40

    
41
        UserDTO getUser(String username) throws ObjectNotFoundException, RpcException;
42

    
43
        FileHeaderDTO getFile(long fileId) throws ObjectNotFoundException, RpcException;
44

    
45
        public List<FileBodyDTO> getVersions(Long userId, Long fileId) throws ObjectNotFoundException, InsufficientPermissionsException,RpcException;
46

    
47
        List<UserDTO> getUsersWaitingActivation() throws RpcException;
48

    
49
        void changeUserClass(Long userId,Long userClassId) throws RpcException,ObjectNotFoundException;
50

    
51
        List<UserClassDTO> getUserClasses() throws RpcException;
52

    
53
        void saveOrUpdateUserClass(UserClassDTO userClass) throws RpcException,ObjectNotFoundException;
54

    
55
        void removeUserClass(UserClassDTO userClass) throws RpcException,ObjectNotFoundException;
56

    
57
        void removeUser(Long userId) throws RpcException,ObjectNotFoundException,InsufficientPermissionsException;
58
        
59
}