Package org.marketcetera.admin.service
Interface UserService
-
public interface UserServiceProvides access toUserobjects.- Since:
- 2.4.2
- Version:
- $Id$
- Author:
- Colin DuPlantis
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description UserchangeUserPassword(User inUser, String inOldRawPassword, String inNewRawPassword)Change the password of the given user to the given value.voiddelete(User inUser)Deletes the given user.List<? extends User>findAll()Finds all current users.CollectionPageResponse<User>findAll(PageRequest inPageRequest)Find a page of users.UserfindByName(String inUsername)Gets the user with the given name.UserfindByUserId(UserID inUserId)Find the user associated with the given user id.UserfindOne(long inValue)Finds a single user with the given id.List<? extends User>listUsers(String inNameFilter, Boolean inActiveFilter)Lists all users taking into account the given optional filters.UserresetUserPassword(User inExistingUser, String inNewPassword)Reset the password of the given user to the given value.Usersave(User inUser)Saves the given user to the datastore.voidupdateUserActiveStatus(String inUsername, boolean inIsActive)Updates the active/inactive status for the user with the given name.voidupdateUserDataByName(String inUsername, String inUserData)Updates the user data for the user with the given name.
-
-
-
Method Detail
-
save
User save(User inUser)
Saves the given user to the datastore.- Parameters:
inUser- aUservalue- Returns:
- a
Uservalue
-
findByName
User findByName(String inUsername)
Gets the user with the given name.- Parameters:
inUsername- aStringvalue- Returns:
- a
Uservalue
-
updateUserDataByName
void updateUserDataByName(String inUsername, String inUserData)
Updates the user data for the user with the given name.- Parameters:
inUsername- aStringvalueinUserData- aStringvalue
-
updateUserActiveStatus
void updateUserActiveStatus(String inUsername, boolean inIsActive)
Updates the active/inactive status for the user with the given name.- Parameters:
inUsername- aStringvalueinIsActive- abooleanvalue
-
listUsers
List<? extends User> listUsers(String inNameFilter, Boolean inActiveFilter)
Lists all users taking into account the given optional filters.- Parameters:
inNameFilter- aStringvalueinActiveFilter- aBooleanvalue- Returns:
- a
List<? extends User>value
-
delete
void delete(User inUser)
Deletes the given user.- Parameters:
inUser- aUservalue
-
findAll
List<? extends User> findAll()
Finds all current users.- Returns:
- a
List<? extends User>value
-
findAll
CollectionPageResponse<User> findAll(PageRequest inPageRequest)
Find a page of users.- Parameters:
inPageRequest- aPageRequestvalue- Returns:
- a
CollectionPageResponse<User>value
-
findOne
User findOne(long inValue)
Finds a single user with the given id.- Parameters:
inValue- alongvalue- Returns:
- a
Uservalue ornull
-
findByUserId
User findByUserId(UserID inUserId)
Find the user associated with the given user id.- Parameters:
inUserId- aUserIDvalue- Returns:
- a
Uservalue ornull
-
changeUserPassword
User changeUserPassword(User inUser, String inOldRawPassword, String inNewRawPassword)
Change the password of the given user to the given value.- Parameters:
inUser- aUservalueinOldRawPassword- aStringvalueinNewRawPassword- aStringvalue- Returns:
- a
Uservalue
-
-