teichmann@5835: package org.dive4elements.river.client.client.services; ingo@2: ingo@2: import com.google.gwt.user.client.rpc.RemoteService; ingo@2: import com.google.gwt.user.client.rpc.RemoteServiceRelativePath; ingo@2: teichmann@5835: import org.dive4elements.river.client.shared.exceptions.AuthenticationException; teichmann@5835: import org.dive4elements.river.client.shared.model.User; ingo@2: ingo@2: ingo@2: /** ingo@2: * This interface describes services for the user. ingo@2: * ingo@2: * @author Ingo Weinzierl ingo@2: */ ingo@2: @RemoteServiceRelativePath("user") ingo@2: public interface UserService extends RemoteService { ingo@2: ingo@2: /** ingo@2: * This method retrieves the user that is currently logged in. ingo@2: * raimund@1425: * @param locale The current locale. ingo@25: * ingo@2: * @return the current {@link User}. ingo@2: */ raimund@1425: User getCurrentUser(String locale) ingo@217: throws AuthenticationException; bjoern@4214: bjoern@4214: /** bjoern@4214: * Removes the current user object from the session bjoern@4214: */ bjoern@4214: void logoutCurrentUser(); ingo@2: } ingo@2: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :