View Javadoc

1   package org.appfuse.webapp.client.requests;
2   
3   import java.util.List;
4   
5   import org.appfuse.webapp.client.proxies.UserProxy;
6   import org.appfuse.webapp.client.proxies.UsersSearchCriteriaProxy;
7   import org.appfuse.webapp.server.GwtServiceLocator;
8   import org.appfuse.webapp.server.services.UserRequestService;
9   
10  import com.google.web.bindery.requestfactory.shared.Request;
11  import com.google.web.bindery.requestfactory.shared.RequestContext;
12  import com.google.web.bindery.requestfactory.shared.Service;
13  
14  @Service(value = UserRequestService.class, locator = GwtServiceLocator.class)
15  public interface UserRequest extends RequestContext {
16  
17      abstract Request<UserProxy> getCurrentUser();
18  
19      abstract Request<UserProxy> signUp();
20  
21      abstract Request<UserProxy> signUp(UserProxy user);
22  
23      abstract Request<UserProxy> editProfile();
24  
25      abstract Request<UserProxy> editProfile(UserProxy user);
26  
27      abstract Request<UserProxy> getUser(Long userId);
28  
29      abstract Request<UserProxy> saveUser(UserProxy user);
30  
31      abstract Request<Long> countUsers(UsersSearchCriteriaProxy searchCriteria);
32  
33      abstract Request<List<UserProxy>> searchUsers(UsersSearchCriteriaProxy searchCriteria, int firstResult, int maxResults);
34  
35      abstract Request<List<UserProxy>> searchUsers(UsersSearchCriteriaProxy searchCriteria, int firstResult, int maxResults, String sortProperty, boolean ascending);
36  
37      abstract Request<Void> removeUser(Long userId);
38  
39      abstract Request<String> sendPasswordHint(String username);
40  
41      abstract Request<String> requestRecoveryToken(String username);
42  
43      abstract Request<UserProxy> updatePassword(String username, String token, String currentPassword, String password);
44  
45      abstract Request<List<UserProxy>> getActiveUsers();
46  
47      abstract Request<Boolean> logout();
48  
49  }