public class UserService extends HttpEntityService<User>
Constructor and Description |
---|
UserService() |
UserService(UUID sessionGuid) |
getSessionGuid, setSessionGuid
public UserService()
public UserService(UUID sessionGuid)
public EQAsyncTask<User> getUser(User user, ResponseDelegate<User> responseDelegate)
public User getUser(User user) throws EQServiceException, EQEntityException
user
- existing userEQServiceException
EQEntityException
public EQAsyncTask<User> getUser(Integer userId, ResponseDelegate<User> responseDelegate)
public User getUser(Integer userId) throws EQServiceException, EQEntityException
userId
- EQServiceException
EQEntityException
public EQAsyncTask<User> getUser(String userName, ResponseDelegate<User> responseDelegate)
public User getUser(String userName) throws EQServiceException, EQEntityException
userName
- EQServiceException
EQEntityException
public EQAsyncTask<User> getLoggedInUser(ResponseDelegate<User> responseDelegate)
public User getLoggedInUser() throws EQServiceException, EQEntityException
EQServiceException
EQEntityException
public EQAsyncTask<List<User>> getAllUsers(ResponseDelegate<List<User>> responseDelegate)
public List<User> getAllUsers() throws EQServiceException, EQEntityException
EQServiceException
EQEntityException
public EQAsyncTask<List<User>> getUsers(ResponseDelegate<List<User>> responseDelegate, Integer... userIds)
public List<User> getUsers(Integer... userIds) throws EQServiceException, EQEntityException
EQServiceException
EQEntityException
public EQAsyncTask<Boolean> updateUser(User user, ResponseDelegate<Boolean> responseDelegate)
public boolean updateUser(User user) throws EQServiceException, EQEntityException
EQServiceException
EQEntityException
public EQAsyncTask<Boolean> updateUser(User user, boolean deleteIcon, ResponseDelegate<Boolean> responseDelegate)
public boolean updateUser(User user, boolean deleteIcon) throws EQServiceException, EQEntityException
EQServiceException
EQEntityException
public EQAsyncTask<Boolean> updateUser(User user, File icon, ResponseDelegate<Boolean> responseDelegate)
public boolean updateUser(User user, File icon) throws EQServiceException, EQEntityException
EQServiceException
EQEntityException
public EQAsyncTask<Boolean> updateUser(User user, InputStream icon, String fileName, ResponseDelegate<Boolean> responseDelegate)
public boolean updateUser(User user, InputStream icon, String fileName) throws EQServiceException, EQEntityException
EQServiceException
EQEntityException
public EQAsyncTask<User> createUser(User user, ResponseDelegate<User> responseDelegate)
public User createUser(User user) throws EQServiceException, EQEntityException
EQServiceException
EQEntityException
public EQAsyncTask<Boolean> createUser(User user, File icon, ResponseDelegate<Boolean> responseDelegate)
public boolean createUser(User user, File icon) throws EQServiceException, EQEntityException
EQServiceException
EQEntityException
public EQAsyncTask<Boolean> createUser(User user, InputStream icon, String fileName, ResponseDelegate<Boolean> responseDelegate)
public boolean createUser(User user, InputStream icon, String fileName) throws EQServiceException, EQEntityException
EQServiceException
EQEntityException
public EQAsyncTask<User> linkFacebook(User user, String accessToken, Date expirationDate, ResponseDelegate<User> responseDelegate)
public User linkFacebook(User user, String accessToken, Date expirationDate) throws EQServiceException, EQEntityException
EQServiceException
EQEntityException
public EQAsyncTask<User> unlinkFacebook(User user, ResponseDelegate<User> responseDelegate) throws EQServiceException, EQEntityException
EQServiceException
EQEntityException
public User unlinkFacebook(User user) throws EQServiceException, EQEntityException
EQServiceException
EQEntityException
public EQAsyncTask<User> linkTwitter(User user, String twitterUserId, String screenName, String oAuthToken, String oAuthTokenSecret, ResponseDelegate<User> responseDelegate) throws EQServiceException, EQEntityException
EQServiceException
EQEntityException
public User linkTwitter(User user, String twitterUserId, String screenName, String oAuthToken, String oAuthTokenSecret) throws EQServiceException, EQEntityException
EQServiceException
EQEntityException
public EQAsyncTask<User> unlinkTwitter(User user, ResponseDelegate<User> responseDelegate) throws EQServiceException, EQEntityException
EQServiceException
EQEntityException
public User unlinkTwitter(User user) throws EQServiceException, EQEntityException
EQServiceException
EQEntityException
public EQAsyncTask<Boolean> deleteUser(ResponseDelegate<Boolean> responseDelegate)
public boolean deleteUser() throws EQServiceException, EQEntityException
EQServiceException
EQEntityException
public EQAsyncTask<Boolean> emailAccounts(String email, ResponseDelegate<Boolean> responseDelegate)
public boolean emailAccounts(String email) throws EQServiceException, EQEntityException
EQServiceException
EQEntityException
public 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
EQServiceException
EQEntityException
public EQAsyncTask<List<User>> search(String search, PagingParameters pagingParameters, ResponseDelegate<List<User>> responseDelegate)
public List<User> search(String search, PagingParameters pagingParameters) throws EQServiceException, EQEntityException
EQServiceException
EQEntityException
public EQAsyncTask<List<User>> listUsers(UserContext userContext, PagingParameters pagingParameters, ResponseDelegate<List<User>> responseDelegate)
public List<User> listUsers(UserContext userContext, PagingParameters pagingParameters) throws EQServiceException, EQEntityException
EQServiceException
EQEntityException
public 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
EQServiceException
EQEntityException
public EQAsyncTask<Boolean> requestPasswordReset(String username, ResponseDelegate<Boolean> responseDelegate)
public boolean requestPasswordReset(String username) throws EQServiceException, EQEntityException
EQServiceException
EQEntityException
public EQAsyncTask<Boolean> resetPassword(UUID passwordResetGuid, String password, ResponseDelegate<Boolean> responseDelegate)
public boolean resetPassword(UUID passwordResetGuid, String password) throws EQServiceException, EQEntityException
EQServiceException
EQEntityException
public EQAsyncTask<Boolean> resendConfirmationEmail(ResponseDelegate<Boolean> responseDelegate)
public boolean resendConfirmationEmail() throws EQServiceException, EQEntityException
EQServiceException
EQEntityException
public EQAsyncTask<PurchaseTransaction> purchase(PurchaseContext purchaseContext, ResponseDelegate<PurchaseTransaction> responseDelegate)
public PurchaseTransaction purchase(PurchaseContext purchaseContext) throws EQServiceException, EQEntityException
EQServiceException
EQEntityException
public 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
EQServiceException
EQEntityException
public 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
EQServiceException
EQEntityException
public User updateSocialSettings(boolean enabled) throws EQServiceException, EQEntityException
EQServiceException
EQEntityException
public User updateSocialSettings(boolean enabled, FacebookSettings facebookSettings) throws EQServiceException, EQEntityException
EQServiceException
EQEntityException
public User updateSocialSettings(boolean enabled, TwitterSettings twitterSettings) throws EQServiceException, EQEntityException
EQServiceException
EQEntityException
public User updateSocialSettings(boolean enabled, FacebookSettings facebookSettings, TwitterSettings twitterSettings) throws EQServiceException, EQEntityException
EQServiceException
EQEntityException
public boolean addPushDevice(Device device) throws EQServiceException, EQEntityException
EQServiceException
EQEntityException
public boolean removePushDevice(Device device) throws EQServiceException, EQEntityException
EQServiceException
EQEntityException
public List<PushMessage> listPushMessages(PagingParameters pagingParameters) throws EQServiceException, EQEntityException
EQServiceException
EQEntityException
Copyright © 2014 Equilibrium. All rights reserved.