Statistics
| Branch: | Tag: | Revision:

root / src / gr / ebs / gss / server / ejb / AdminAPI.java @ a3c09df3

History | View | Annotate | Download (2.8 kB)

1 023f6f1e Panagiotis Astithas
/*
2 023f6f1e Panagiotis Astithas
 * Copyright 2010 Electronic Business Systems Ltd.
3 023f6f1e Panagiotis Astithas
 *
4 023f6f1e Panagiotis Astithas
 * This file is part of GSS.
5 023f6f1e Panagiotis Astithas
 *
6 023f6f1e Panagiotis Astithas
 * GSS is free software: you can redistribute it and/or modify
7 023f6f1e Panagiotis Astithas
 * it under the terms of the GNU General Public License as published by
8 023f6f1e Panagiotis Astithas
 * the Free Software Foundation, either version 3 of the License, or
9 023f6f1e Panagiotis Astithas
 * (at your option) any later version.
10 023f6f1e Panagiotis Astithas
 *
11 023f6f1e Panagiotis Astithas
 * GSS is distributed in the hope that it will be useful,
12 023f6f1e Panagiotis Astithas
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 023f6f1e Panagiotis Astithas
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 023f6f1e Panagiotis Astithas
 * GNU General Public License for more details.
15 023f6f1e Panagiotis Astithas
 *
16 023f6f1e Panagiotis Astithas
 * You should have received a copy of the GNU General Public License
17 023f6f1e Panagiotis Astithas
 * along with GSS.  If not, see <http://www.gnu.org/licenses/>.
18 023f6f1e Panagiotis Astithas
 */
19 023f6f1e Panagiotis Astithas
package gr.ebs.gss.server.ejb;
20 023f6f1e Panagiotis Astithas
21 023f6f1e Panagiotis Astithas
import gr.ebs.gss.client.exceptions.InsufficientPermissionsException;
22 023f6f1e Panagiotis Astithas
import gr.ebs.gss.client.exceptions.ObjectNotFoundException;
23 023f6f1e Panagiotis Astithas
import gr.ebs.gss.server.domain.dto.FileBodyDTO;
24 023f6f1e Panagiotis Astithas
import gr.ebs.gss.server.domain.dto.FileHeaderDTO;
25 023f6f1e Panagiotis Astithas
import gr.ebs.gss.server.domain.dto.PermissionDTO;
26 023f6f1e Panagiotis Astithas
import gr.ebs.gss.server.domain.dto.StatsDTO;
27 023f6f1e Panagiotis Astithas
import gr.ebs.gss.server.domain.dto.SystemStatsDTO;
28 023f6f1e Panagiotis Astithas
import gr.ebs.gss.server.domain.dto.UserClassDTO;
29 023f6f1e Panagiotis Astithas
import gr.ebs.gss.server.domain.dto.UserDTO;
30 023f6f1e Panagiotis Astithas
31 023f6f1e Panagiotis Astithas
import java.util.Date;
32 023f6f1e Panagiotis Astithas
import java.util.List;
33 023f6f1e Panagiotis Astithas
import java.util.Set;
34 023f6f1e Panagiotis Astithas
35 023f6f1e Panagiotis Astithas
import javax.ejb.Local;
36 023f6f1e Panagiotis Astithas
37 023f6f1e Panagiotis Astithas
38 023f6f1e Panagiotis Astithas
/**
39 023f6f1e Panagiotis Astithas
 * @author kman
40 023f6f1e Panagiotis Astithas
 *
41 023f6f1e Panagiotis Astithas
 */
42 023f6f1e Panagiotis Astithas
@Local
43 023f6f1e Panagiotis Astithas
public interface AdminAPI {
44 023f6f1e Panagiotis Astithas
45 023f6f1e Panagiotis Astithas
        public List<UserDTO> searchUsers(String query);
46 023f6f1e Panagiotis Astithas
47 023f6f1e Panagiotis Astithas
        public StatsDTO getUserStatistics(Long userId) throws ObjectNotFoundException;
48 023f6f1e Panagiotis Astithas
49 023f6f1e Panagiotis Astithas
        public UserDTO getUser(Long userId) throws ObjectNotFoundException;
50 023f6f1e Panagiotis Astithas
51 023f6f1e Panagiotis Astithas
        public void toggleActiveUser(Long userId) throws ObjectNotFoundException;
52 023f6f1e Panagiotis Astithas
53 023f6f1e Panagiotis Astithas
        public FileHeaderDTO getFile(String uri) throws ObjectNotFoundException;
54 023f6f1e Panagiotis Astithas
55 023f6f1e Panagiotis Astithas
        public void setFilePermissions(String uri, Set<PermissionDTO> permissions) throws ObjectNotFoundException;
56 023f6f1e Panagiotis Astithas
57 023f6f1e Panagiotis Astithas
        public SystemStatsDTO getSystemStatistics();
58 023f6f1e Panagiotis Astithas
59 023f6f1e Panagiotis Astithas
        public List<UserDTO> getLastLoggedInUsers(Date lastLoginDate);
60 023f6f1e Panagiotis Astithas
61 023f6f1e Panagiotis Astithas
        List<FileBodyDTO> getVersions(Long userId, Long fileId) throws ObjectNotFoundException, InsufficientPermissionsException;
62 023f6f1e Panagiotis Astithas
63 023f6f1e Panagiotis Astithas
        UserDTO getUser(String username) throws ObjectNotFoundException;
64 023f6f1e Panagiotis Astithas
65 023f6f1e Panagiotis Astithas
        FileHeaderDTO getFile(Long fileId) throws ObjectNotFoundException;
66 023f6f1e Panagiotis Astithas
67 023f6f1e Panagiotis Astithas
        List<FileHeaderDTO> getFiles(String uri) throws ObjectNotFoundException, InsufficientPermissionsException;
68 023f6f1e Panagiotis Astithas
69 023f6f1e Panagiotis Astithas
        List<UserDTO> getUsersWaitingActivation();
70 023f6f1e Panagiotis Astithas
71 023f6f1e Panagiotis Astithas
        void changeUserClass(Long userId, Long userClassId) throws ObjectNotFoundException;
72 023f6f1e Panagiotis Astithas
73 023f6f1e Panagiotis Astithas
        List<UserClassDTO> getUserClasses();
74 023f6f1e Panagiotis Astithas
75 023f6f1e Panagiotis Astithas
        void saveOrUpdateUserClass(UserClassDTO dto) throws ObjectNotFoundException;
76 023f6f1e Panagiotis Astithas
77 023f6f1e Panagiotis Astithas
        void removeUserClass(UserClassDTO dto) throws ObjectNotFoundException;
78 023f6f1e Panagiotis Astithas
79 023f6f1e Panagiotis Astithas
        public List<FileHeaderDTO> searchFileByFilename(String fileName);
80 023f6f1e Panagiotis Astithas
81 023f6f1e Panagiotis Astithas
        public void removeUser(Long userId) throws ObjectNotFoundException, InsufficientPermissionsException;
82 023f6f1e Panagiotis Astithas
83 023f6f1e Panagiotis Astithas
}