1 | package com.ether; |
---|
2 | |
---|
3 | import com.ether.mco.Mco; |
---|
4 | import com.ether.mco.McoFilter; |
---|
5 | import com.ether.user.User; |
---|
6 | import com.ether.user.UserFilter; |
---|
7 | import com.ether.user.UserState; |
---|
8 | import com.medias.annuaire.Personne; |
---|
9 | import com.medias.database.objects.Jeu; |
---|
10 | import com.medias.database.objects.Parametre; |
---|
11 | import com.medias.database.objects.Plateforme; |
---|
12 | import org.jetbrains.annotations.NotNull; |
---|
13 | import org.jetbrains.annotations.Nullable; |
---|
14 | |
---|
15 | import java.util.Date; |
---|
16 | import java.util.List; |
---|
17 | |
---|
18 | /** |
---|
19 | * @author vmipsl |
---|
20 | * @date 07 mar 2011 |
---|
21 | */ |
---|
22 | public interface EtherService |
---|
23 | extends Service |
---|
24 | { |
---|
25 | @Nullable |
---|
26 | List<Plateforme> getAllPlateforms() |
---|
27 | throws ServiceException; |
---|
28 | |
---|
29 | @Nullable |
---|
30 | Plateforme getPlateformById( @Nullable final Integer plateformId ) |
---|
31 | throws ServiceException; |
---|
32 | |
---|
33 | @Nullable |
---|
34 | Parametre getParameterById( @Nullable final Integer parameterId ) |
---|
35 | throws ServiceException; |
---|
36 | |
---|
37 | @NotNull |
---|
38 | List<Parametre> getParametersByPlateformId( @NotNull final Integer plateformId ) |
---|
39 | throws ServiceException; |
---|
40 | |
---|
41 | @NotNull |
---|
42 | <T1, T2, T3> Data<T1[], T2[], T3[]> getListsByPlateformByParameterByPeriodForTimeSerie( @NotNull final Integer plateformId, @NotNull final Integer parameterId, @Nullable final Date dateBegin, @Nullable final Date dateEnd ) |
---|
43 | throws ServiceException; |
---|
44 | |
---|
45 | @NotNull |
---|
46 | <T1, T2, T3> Data<List<T1>, List<T2>, List<T3>> getListsByPlateformByParameterByPeriodFor2D( @NotNull final Integer plateformId, @NotNull final Integer parameterId, @Nullable final Date dateBegin, @Nullable final Date dateEnd ) |
---|
47 | throws ServiceException; |
---|
48 | |
---|
49 | @NotNull |
---|
50 | <T1, T2, T3> Data<T1[], T2[], T3[]> getArraysByPlateformByParameterByPeriodFor2D( @NotNull final Integer plateformId, @NotNull final Integer parameterId, @Nullable final Date dateBegin, @Nullable final Date dateEnd ) |
---|
51 | throws ServiceException; |
---|
52 | |
---|
53 | @NotNull |
---|
54 | Integer getNumberValuesByPlateformByParameterByPeriod( @NotNull final List<Pair<Integer, Integer>> pairs, @Nullable final Date beginDate, @Nullable final Date endDate ) |
---|
55 | throws ServiceException; |
---|
56 | |
---|
57 | @Nullable |
---|
58 | Date getFirstDate() |
---|
59 | throws ServiceException; |
---|
60 | |
---|
61 | @Nullable |
---|
62 | Date getLastDate() |
---|
63 | throws ServiceException; |
---|
64 | |
---|
65 | @Nullable |
---|
66 | User getUserById( @NotNull final Integer userId ) |
---|
67 | throws ServiceException; |
---|
68 | |
---|
69 | @Nullable |
---|
70 | User getUserByEmail( @NotNull final String userEmail ) |
---|
71 | throws ServiceException; |
---|
72 | |
---|
73 | @NotNull |
---|
74 | Integer createUser( @NotNull User user ) |
---|
75 | throws ServiceException; |
---|
76 | |
---|
77 | @NotNull |
---|
78 | List<User> getAllUsers() |
---|
79 | throws ServiceException; |
---|
80 | |
---|
81 | @NotNull |
---|
82 | List<User> getAllUsersByNameOrder() |
---|
83 | throws ServiceException; |
---|
84 | |
---|
85 | @NotNull |
---|
86 | List<User> getUsersByState( @NotNull UserState userState ) |
---|
87 | throws ServiceException; |
---|
88 | |
---|
89 | void removeUserById( @NotNull final Integer userId ) |
---|
90 | throws ServiceException; |
---|
91 | |
---|
92 | void updateUser( @NotNull final User user ) |
---|
93 | throws ServiceException; |
---|
94 | |
---|
95 | void acceptOrRefuseUser( @NotNull final Integer userId, final boolean isAccepted ) |
---|
96 | throws ServiceException; |
---|
97 | |
---|
98 | @Nullable |
---|
99 | Personne getPeopleByEmail( @NotNull final String email ) |
---|
100 | throws ServiceException; |
---|
101 | |
---|
102 | PaginatedResult<User> searchUsers( @NotNull final UserFilter filter ) |
---|
103 | throws ServiceException; |
---|
104 | |
---|
105 | PaginatedResult<Mco> searchMcos( @NotNull final McoFilter filter ) |
---|
106 | throws ServiceException; |
---|
107 | |
---|
108 | @Nullable |
---|
109 | Mco getMcoByCode( @NotNull final String code ) |
---|
110 | throws ServiceException; |
---|
111 | |
---|
112 | @NotNull |
---|
113 | Integer createMco( @NotNull Mco mco ) |
---|
114 | throws ServiceException; |
---|
115 | |
---|
116 | void removeMcoById( @NotNull final Integer mcoId ) |
---|
117 | throws ServiceException; |
---|
118 | |
---|
119 | void updateMco( @NotNull final Mco mco ) |
---|
120 | throws ServiceException; |
---|
121 | |
---|
122 | @Nullable |
---|
123 | Mco getMcoById( @NotNull final Integer requestId ) |
---|
124 | throws ServiceException; |
---|
125 | |
---|
126 | @NotNull |
---|
127 | List<List<Parametre>> manageMenusForParameterList( @NotNull final List<Parametre> fullParameters ); |
---|
128 | |
---|
129 | @Nullable |
---|
130 | List<Parametre> getAllParametersOrderByCategoryByName() |
---|
131 | throws ServiceException; |
---|
132 | |
---|
133 | @Nullable |
---|
134 | List<Date> getAllMeasureDateByPlateformId( @NotNull final Integer plateformId ) |
---|
135 | throws ServiceException; |
---|
136 | |
---|
137 | PaginatedResult<Jeu> searchDatasets( @NotNull final JeuFilter filter ) |
---|
138 | throws ServiceException; |
---|
139 | } |
---|