source: ether_statistics/service/interface/com/ether/EtherService.java @ 569

Last change on this file since 569 was 569, checked in by vmipsl, 12 years ago

Nouveau projet

File size: 8.0 KB
Line 
1package com.ether;
2
3import com.ether.mco.Mco;
4import com.ether.mco.McoFilter;
5import com.ether.simulation.Attribute;
6import com.ether.simulation.Dimension;
7import com.ether.simulation.Simulation;
8import com.ether.simulation.SimulationFilter;
9import com.ether.simulation.Variable;
10import com.ether.user.User;
11import com.ether.user.UserFilter;
12import com.ether.user.UserState;
13import com.medias.annuaire.Personne;
14import com.medias.database.objects.Jeu;
15import com.medias.database.objects.Parametre;
16import com.medias.database.objects.Plateforme;
17import org.jetbrains.annotations.NotNull;
18import org.jetbrains.annotations.Nullable;
19
20import java.util.Date;
21import java.util.List;
22
23/**
24 * @author vmipsl
25 * @date 07 mar 2011
26 */
27public interface EtherService
28        extends Service
29{
30    @Nullable
31    List<Plateforme> getAllPlateforms()
32            throws ServiceException;
33
34    @Nullable
35    Plateforme getPlateformById( @Nullable final Integer plateformId )
36            throws ServiceException;
37
38    @Nullable
39    Parametre getParameterById( @Nullable final Integer parameterId )
40            throws ServiceException;
41
42    @NotNull
43    List<Parametre> getParametersByPlateformId( @NotNull final Integer plateformId )
44            throws ServiceException;
45
46    @NotNull
47    <T1, T2, T3> Data<T1[], T2[], T3[]> getListsByPlateformByParameterByPeriodForTimeSerie( @NotNull final Integer plateformId, @NotNull final Integer parameterId, @Nullable final Date dateBegin, @Nullable final Date dateEnd )
48            throws ServiceException;
49
50    @NotNull
51    <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 )
52            throws ServiceException;
53
54    @NotNull
55    <T1, T2, T3> Data<T1[], T2[], T3[]> getArraysByPlateformByParameterByPeriodFor2D( @NotNull final Integer plateformId, @NotNull final Integer parameterId, @Nullable final Date dateBegin, @Nullable final Date dateEnd )
56            throws ServiceException;
57
58    @NotNull
59    Integer getNumberValuesByPlateformByParameterByPeriod( @NotNull final List<Pair<Integer, Integer>> pairs, @Nullable final Date beginDate, @Nullable final Date endDate )
60            throws ServiceException;
61
62    @Nullable
63    Date getFirstDate()
64            throws ServiceException;
65
66    @Nullable
67    Date getLastDate()
68            throws ServiceException;
69
70    @Nullable
71    User getUserById( @NotNull final Integer userId )
72            throws ServiceException;
73
74    @Nullable
75    User getUserByEmail( @NotNull final String userEmail )
76            throws ServiceException;
77
78    @NotNull
79    Integer createUser( @NotNull User user )
80            throws ServiceException;
81
82    @NotNull
83    List<User> getAllUsers()
84            throws ServiceException;
85
86    @NotNull
87    List<User> getAllUsersByNameOrder()
88            throws ServiceException;
89
90    @NotNull
91    List<User> getUsersByState( @NotNull UserState userState )
92            throws ServiceException;
93
94    void removeUserById( @NotNull final Integer userId )
95            throws ServiceException;
96
97    void updateUser( @NotNull final User user )
98            throws ServiceException;
99
100    void acceptOrRefuseUser( @NotNull final Integer userId, final boolean isAccepted )
101            throws ServiceException;
102
103    @Nullable
104    Personne getPeopleByEmail( @NotNull final String email )
105            throws ServiceException;
106
107    PaginatedResult<User> searchUsers( @NotNull final UserFilter filter )
108            throws ServiceException;
109
110    PaginatedResult<Mco> searchMcos( @NotNull final McoFilter filter )
111            throws ServiceException;
112
113    @Nullable
114    Mco getMcoByCode( @NotNull final String code )
115            throws ServiceException;
116
117    @NotNull
118    Integer createMco( @NotNull Mco mco )
119            throws ServiceException;
120
121    void removeMcoById( @NotNull final Integer mcoId )
122            throws ServiceException;
123
124    void updateMco( @NotNull final Mco mco )
125            throws ServiceException;
126
127    @Nullable
128    Mco getMcoById( @NotNull final Integer requestId )
129            throws ServiceException;
130
131    @NotNull
132    List<List<Parametre>> manageMenusForParameterList( @NotNull final List<Parametre> fullParameters );
133
134    @Nullable
135    List<Parametre> getAllParametersOrderByCategoryByName()
136            throws ServiceException;
137
138    @Nullable
139    List<Date> getAllMeasureDateByPlateformId( @NotNull final Integer plateformId )
140            throws ServiceException;
141
142    @Nullable
143    PaginatedResult<Jeu> searchJeux( @NotNull final JeuFilter filter )
144            throws ServiceException;
145
146    void removeJeuAndDataByName( @NotNull final String datasetName )
147            throws ServiceException;
148
149    void cleanLocalisationAndFlagTables()
150            throws ServiceException;
151
152    @Nullable
153    Jeu getJeuById( @NotNull final Integer jeuId )
154            throws ServiceException;
155
156    @Nullable
157    String getDatasetNameById( @NotNull final Integer jeuId )
158            throws ServiceException;
159
160    @Nullable
161    PaginatedResult<Dimension> searchDimensions( @NotNull final SimulationFilter filter )
162            throws ServiceException;
163
164    @Nullable
165    PaginatedResult<Attribute> searchAttributes( @NotNull final SimulationFilter filter )
166            throws ServiceException;
167
168    @Nullable
169    PaginatedResult<Variable> searchVariables( @NotNull final SimulationFilter filter )
170            throws ServiceException;
171
172    @Nullable
173    PaginatedResult<Simulation> searchSimulations( @NotNull final SimulationFilter filter )
174            throws ServiceException;
175
176    public void launchNCDumpInSimulationDirectory( @NotNull final String simulationPath )
177            throws ServiceException;
178
179    void insertHeader( @NotNull final String simulationPath, @NotNull final String directoryName )
180            throws ServiceException;
181
182    @Nullable
183    List<Double> extractValuesByModelByVariableByDateByLevelFromFile( @NotNull final Integer modelId, @NotNull final String variableName, @NotNull final Integer dateNumber, @NotNull final Integer level, final boolean writeInTemporaryFiles )
184            throws ServiceException;
185
186    @Nullable
187    Dimension getDimensionById( @NotNull final Integer dimensionId )
188            throws ServiceException;
189
190    public void removeDimension( @NotNull final Integer dimensionId )
191            throws ServiceException;
192
193    @Nullable
194    Attribute getAttributeById( @NotNull final Integer attributeId )
195            throws ServiceException;
196
197    public void removeAttribute( @NotNull final Integer attributeId )
198            throws ServiceException;
199
200    @Nullable
201    Variable getVariableById( @NotNull final Integer variableId )
202            throws ServiceException;
203
204    public void removeVariable( @NotNull final Integer variableId )
205            throws ServiceException;
206
207    @Nullable
208    Simulation getSimulationById( @NotNull final Integer simulationId )
209            throws ServiceException;
210
211    public void removeSimulation( @NotNull final Integer simulationId )
212            throws ServiceException;
213
214    @Nullable
215    List<Simulation> getAllSimulations()
216            throws ServiceException;
217
218    @Nullable
219    List<List<String>> getAllModels()
220            throws ServiceException;
221
222    @Nullable
223    List<Variable> getVariablesByModelId( @NotNull final Integer modelId )
224            throws ServiceException;
225
226    @Nullable
227    String getLocationByModelId( @NotNull final Integer modelId )
228            throws ServiceException;
229
230    @Nullable
231    List<Plateforme> getPlateformsByParameter( @NotNull final String parameterCode )
232            throws ServiceException;
233
234    @Nullable
235    Integer getParameterByCode( @NotNull final String parameterCode )
236            throws ServiceException;
237
238    @NotNull
239    Data makeZoom( @NotNull final List<Double> allParameterValues, @NotNull final List<Double> allLatitudeValues, @NotNull final List<Double> allLongitudeValues, @Nullable final Data realData );
240
241    @NotNull
242    List<Double> flipList( @NotNull final List<Double> list, @NotNull final Integer sizeLatitude, @NotNull final Integer sizeLongitude );
243}
Note: See TracBrowser for help on using the repository browser.