public class UserService extends HttpEntityService<User>
| Constructor and Description |
|---|
UserService() |
UserService(UUID sessionGuid) |
getSessionGuid, setSessionGuidpublic UserService()
public UserService(UUID sessionGuid)
public EQAsyncTask<User> getUser(User user, ResponseDelegate<User> responseDelegate)
public User getUser(User user) throws EQServiceException, EQEntityException
user - existing userEQServiceExceptionEQEntityExceptionpublic EQAsyncTask<User> getUser(Integer userId, ResponseDelegate<User> responseDelegate)
public User getUser(Integer userId) throws EQServiceException, EQEntityException
userId - EQServiceExceptionEQEntityExceptionpublic EQAsyncTask<User> getUser(String userName, ResponseDelegate<User> responseDelegate)
public User getUser(String userName) throws EQServiceException, EQEntityException
userName - EQServiceExceptionEQEntityExceptionpublic EQAsyncTask<User> getLoggedInUser(ResponseDelegate<User> responseDelegate)
public User getLoggedInUser() throws EQServiceException, EQEntityException
EQServiceExceptionEQEntityExceptionpublic EQAsyncTask<List<User>> getAllUsers(ResponseDelegate<List<User>> responseDelegate)
public List<User> getAllUsers() throws EQServiceException, EQEntityException
EQServiceExceptionEQEntityExceptionpublic EQAsyncTask<List<User>> getUsers(ResponseDelegate<List<User>> responseDelegate, Integer... userIds)
public List<User> getUsers(Integer... userIds) throws EQServiceException, EQEntityException
EQServiceExceptionEQEntityExceptionpublic EQAsyncTask<Boolean> updateUser(User user, ResponseDelegate<Boolean> responseDelegate)
public boolean updateUser(User user) throws EQServiceException, EQEntityException
EQServiceExceptionEQEntityExceptionpublic EQAsyncTask<Boolean> updateUser(User user, boolean deleteIcon, ResponseDelegate<Boolean> responseDelegate)
public boolean updateUser(User user, boolean deleteIcon) throws EQServiceException, EQEntityException
EQServiceExceptionEQEntityExceptionpublic EQAsyncTask<Boolean> updateUser(User user, File icon, ResponseDelegate<Boolean> responseDelegate)
public boolean updateUser(User user, File icon) throws EQServiceException, EQEntityException
EQServiceExceptionEQEntityExceptionpublic EQAsyncTask<Boolean> updateUser(User user, InputStream icon, String fileName, ResponseDelegate<Boolean> responseDelegate)
public boolean updateUser(User user, InputStream icon, String fileName) throws EQServiceException, EQEntityException
EQServiceExceptionEQEntityExceptionpublic EQAsyncTask<User> createUser(User user, ResponseDelegate<User> responseDelegate)
public User createUser(User user) throws EQServiceException, EQEntityException
EQServiceExceptionEQEntityExceptionpublic EQAsyncTask<Boolean> createUser(User user, File icon, ResponseDelegate<Boolean> responseDelegate)
public boolean createUser(User user, File icon) throws EQServiceException, EQEntityException
EQServiceExceptionEQEntityExceptionpublic EQAsyncTask<Boolean> createUser(User user, InputStream icon, String fileName, ResponseDelegate<Boolean> responseDelegate)
public boolean createUser(User user, InputStream icon, String fileName) throws EQServiceException, EQEntityException
EQServiceExceptionEQEntityExceptionpublic EQAsyncTask<User> linkFacebook(User user, String accessToken, Date expirationDate, ResponseDelegate<User> responseDelegate)
public User linkFacebook(User user, String accessToken, Date expirationDate) throws EQServiceException, EQEntityException
EQServiceExceptionEQEntityExceptionpublic EQAsyncTask<User> unlinkFacebook(User user, ResponseDelegate<User> responseDelegate) throws EQServiceException, EQEntityException
EQServiceExceptionEQEntityExceptionpublic User unlinkFacebook(User user) throws EQServiceException, EQEntityException
EQServiceExceptionEQEntityExceptionpublic EQAsyncTask<User> linkTwitter(User user, String twitterUserId, String screenName, String oAuthToken, String oAuthTokenSecret, ResponseDelegate<User> responseDelegate) throws EQServiceException, EQEntityException
EQServiceExceptionEQEntityExceptionpublic User linkTwitter(User user, String twitterUserId, String screenName, String oAuthToken, String oAuthTokenSecret) throws EQServiceException, EQEntityException
EQServiceExceptionEQEntityExceptionpublic EQAsyncTask<User> unlinkTwitter(User user, ResponseDelegate<User> responseDelegate) throws EQServiceException, EQEntityException
EQServiceExceptionEQEntityExceptionpublic User unlinkTwitter(User user) throws EQServiceException, EQEntityException
EQServiceExceptionEQEntityExceptionpublic EQAsyncTask<Boolean> deleteUser(ResponseDelegate<Boolean> responseDelegate)
public boolean deleteUser()
throws EQServiceException,
EQEntityException
EQServiceExceptionEQEntityExceptionpublic EQAsyncTask<Boolean> emailAccounts(String email, ResponseDelegate<Boolean> responseDelegate)
public boolean emailAccounts(String email) throws EQServiceException, EQEntityException
EQServiceExceptionEQEntityExceptionpublic EQAsyncTask<List<Collection>> listCollections(User user, CollectionContext collectionContext, PagingParameters pagingParameters, ResponseDelegate<List<Collection>> responseDelegate)
public List<Collection> listCollections(User user, CollectionContext collectionContext, PagingParameters pagingParameters) throws EQServiceException, EQEntityException
EQServiceExceptionEQEntityExceptionpublic EQAsyncTask<List<User>> search(String search, PagingParameters pagingParameters, ResponseDelegate<List<User>> responseDelegate)
public List<User> search(String search, PagingParameters pagingParameters) throws EQServiceException, EQEntityException
EQServiceExceptionEQEntityExceptionpublic EQAsyncTask<List<User>> listUsers(UserContext userContext, PagingParameters pagingParameters, ResponseDelegate<List<User>> responseDelegate)
public List<User> listUsers(UserContext userContext, PagingParameters pagingParameters) throws EQServiceException, EQEntityException
EQServiceExceptionEQEntityExceptionpublic EQAsyncTask<List<ContentFile>> favoritedContentFiles(User user, ContentFileContext contentFileContext, PagingParameters pagingParameters, ResponseDelegate<List<ContentFile>> responseDelegate)
public List<ContentFile> favoritedContentFiles(User user, ContentFileContext contentFileContext, PagingParameters pagingParameters) throws EQServiceException, EQEntityException
EQServiceExceptionEQEntityExceptionpublic EQAsyncTask<Boolean> requestPasswordReset(String username, ResponseDelegate<Boolean> responseDelegate)
public boolean requestPasswordReset(String username) throws EQServiceException, EQEntityException
EQServiceExceptionEQEntityExceptionpublic EQAsyncTask<Boolean> resetPassword(UUID passwordResetGuid, String password, ResponseDelegate<Boolean> responseDelegate)
public boolean resetPassword(UUID passwordResetGuid, String password) throws EQServiceException, EQEntityException
EQServiceExceptionEQEntityExceptionpublic EQAsyncTask<Boolean> resendConfirmationEmail(ResponseDelegate<Boolean> responseDelegate)
public boolean resendConfirmationEmail()
throws EQServiceException,
EQEntityException
EQServiceExceptionEQEntityExceptionpublic EQAsyncTask<PurchaseTransaction> purchase(PurchaseContext purchaseContext, ResponseDelegate<PurchaseTransaction> responseDelegate)
public PurchaseTransaction purchase(PurchaseContext purchaseContext) throws EQServiceException, EQEntityException
EQServiceExceptionEQEntityExceptionpublic EQAsyncTask<List<FacebookFriend>> findFacebookFriends(String search, FriendService.SocialSearchType socialSearchType, PagingParameters pagingParameters, ResponseDelegate<List<FacebookFriend>> responseDelegate)
public List<FacebookFriend> findFacebookFriends(String search, FriendService.SocialSearchType socialSearchType, PagingParameters pagingParameters) throws EQServiceException, EQEntityException
EQServiceExceptionEQEntityExceptionpublic EQAsyncTask<List<TwitterFriend>> findTwitterFriends(String search, FriendService.SocialSearchType socialSearchType, PagingParameters pagingParameters, ResponseDelegate<List<TwitterFriend>> responseDelegate)
public List<TwitterFriend> findTwitterFriends(String search, FriendService.SocialSearchType socialSearchType, PagingParameters pagingParameters) throws EQServiceException, EQEntityException
EQServiceExceptionEQEntityExceptionpublic User updateSocialSettings(boolean enabled) throws EQServiceException, EQEntityException
EQServiceExceptionEQEntityExceptionpublic User updateSocialSettings(boolean enabled, FacebookSettings facebookSettings) throws EQServiceException, EQEntityException
EQServiceExceptionEQEntityExceptionpublic User updateSocialSettings(boolean enabled, TwitterSettings twitterSettings) throws EQServiceException, EQEntityException
EQServiceExceptionEQEntityExceptionpublic User updateSocialSettings(boolean enabled, FacebookSettings facebookSettings, TwitterSettings twitterSettings) throws EQServiceException, EQEntityException
EQServiceExceptionEQEntityExceptionpublic boolean addPushDevice(Device device) throws EQServiceException, EQEntityException
EQServiceExceptionEQEntityExceptionpublic boolean removePushDevice(Device device) throws EQServiceException, EQEntityException
EQServiceExceptionEQEntityExceptionpublic List<PushMessage> listPushMessages(PagingParameters pagingParameters) throws EQServiceException, EQEntityException
EQServiceExceptionEQEntityExceptionCopyright © 2014 Equilibrium. All rights reserved.