root / middleware / src / com / gonnatrak / middleware / ejb / PositionWorker.java @ 1

View | Annotate | Download

1
/**
2
 * Created by Andrey Khalzov
3
 * 05.08.2008 0:32:08
4
 */
5
package com.gonnatrak.middleware.ejb;
6
7
import com.gonnatrak.middleware.entity.Position;
8
import com.gonnatrak.middleware.entity.User;
9
import org.jetbrains.annotations.NotNull;
10
import org.joda.time.DateTime;
11
12
import javax.ejb.Local;
13
import java.util.List;
14
15
@Local
16
public interface PositionWorker {
17
18
    final String JNDI_NAME = AbstractWorkerBean.JNDI_PREFIX + "PositionWorker";
19
20
    @NotNull
21
    List<Position> getPositions(@NotNull User user, @NotNull Long subjectId);
22
23
    @NotNull
24
    List<Position> getPositions(
25
            @NotNull User user,
26
            @NotNull Long subjectId,
27
            @NotNull DateTime from,
28
            @NotNull DateTime to,
29
            @NotNull Boolean valid
30
    );
31
32
    @NotNull
33
    List<Position> getDemoPositions(
34
            @NotNull Long subjectId,
35
            @NotNull DateTime from,
36
            @NotNull DateTime to,
37
            @NotNull Boolean valid
38
    );
39
}