Class AbstractUserService
java.lang.Object
dev.getelements.elements.service.user.AbstractUserService
- All Implemented Interfaces:
UserService
- Direct Known Subclasses:
AnonUserService
,SuperuserUserService
Created by patricktwohig on 3/26/15.
-
Field Summary
Fields inherited from interface dev.getelements.elements.sdk.service.user.UserService
CURRENT_USER_ALIAS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Profile
createProfile
(String userId, CreateProfileSignupRequest createProfileSignupRequest) Creates a profile from the supplied user id andCreateProfileSignupRequest
.createProfiles
(String userId, List<CreateProfileSignupRequest> createProfileSignupRequests) Creates severalProfile
s.Gets the currently logged in user.void
setApplicationDao
(ApplicationDao applicationDao) void
setCurrentUser
(User currentUser) void
setNameService
(NameService nameService) void
setProfileDao
(ProfileDao profileDao) void
setSuperUserProfileService
(SuperUserProfileService superUserProfileService) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.getelements.elements.sdk.service.user.UserService
checkForCurrentUser, createUser, deleteUser, getUser, getUsers, getUsers, isCurrentUser, isCurrentUserAlias, updateUser, updateUserPassword
-
Constructor Details
-
AbstractUserService
public AbstractUserService()
-
-
Method Details
-
getCurrentUser
Description copied from interface:UserService
Gets the currently logged in user.- Specified by:
getCurrentUser
in interfaceUserService
- Returns:
- the currently logged in user
-
setCurrentUser
-
getProfileDao
-
setProfileDao
-
getNameService
-
setNameService
-
getApplicationDao
-
setApplicationDao
-
getSuperUserProfileService
-
setSuperUserProfileService
-
createProfile
protected Profile createProfile(String userId, CreateProfileSignupRequest createProfileSignupRequest) Creates a profile from the supplied user id andCreateProfileSignupRequest
.- Parameters:
userId
- the user id as specified byUser.getId()
createProfileSignupRequest
- theCreateProfileSignupRequest
- Returns:
- the created
Profile
-
createProfiles
protected List<Profile> createProfiles(String userId, List<CreateProfileSignupRequest> createProfileSignupRequests)
-