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 ProfilecreateProfile(String userId, CreateProfileSignupRequest createProfileSignupRequest) Creates a profile from the supplied user id andCreateProfileSignupRequest.createProfiles(String userId, List<CreateProfileSignupRequest> createProfileSignupRequests) Creates severalProfiles.Gets the currently logged in user.voidsetApplicationDao(ApplicationDao applicationDao) voidsetCurrentUser(User currentUser) voidsetNameService(NameService nameService) voidsetProfileDao(ProfileDao profileDao) voidsetSuperUserProfileService(SuperUserProfileService superUserProfileService) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:UserServiceGets the currently logged in user.- Specified by:
getCurrentUserin 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)
-