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

View | Annotate | Download

1
/**
2
 * Created by Andrey Khalzov
3
 * 23.12.2008 21:46:11
4
 */
5
package com.gonnatrak.middleware.ejb;
6
7
import org.jetbrains.annotations.NotNull;
8
9
import javax.ejb.Remote;
10
11
import com.gonnatrak.middleware.exception.LoginFailedException;
12
import com.gonnatrak.middleware.exception.UserAlreadyExistsException;
13
import com.gonnatrak.middleware.entity.User;
14
15
@Remote
16
public interface UserWorkerRemote extends UserWorker {
17
18
    void loginUser(@NotNull String sessionId, @NotNull String login, @NotNull String password)
19
            throws LoginFailedException;
20
21
    boolean isLoginAvailable(String login);
22
23
    @NotNull
24
    User createNonGoogleUser(@NotNull String login, @NotNull String password, @NotNull String email)
25
            throws UserAlreadyExistsException;
26
27
    @NotNull
28
    String authUser(@NotNull User user);
29
}