Class UserProfileHandlerServiceImpl
java.lang.Object
overit.geocall.basic.bl.profile.service.UserProfileHandlerServiceImpl
- All Implemented Interfaces:
UserProfileHandlerService
@Service
public class UserProfileHandlerServiceImpl
extends Object
implements UserProfileHandlerService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateProfile(BOUserProfile profile) Creates a new user profile.loadProfileById(Long id) Loads a user profile by its id.loadProfiles(Collection<Long> ids, BOUserProfile filter, Page page, Order order) Loads user profiles based on filter criteria.loadProfileState(Long profileId) Loads the state/content of a user profile.voidupdateProfile(BOUserProfile profile) Updates an existing user profile.voidupdateProfileState(Long profileId, String json) Updates the state/content of a user profile.
-
Constructor Details
-
UserProfileHandlerServiceImpl
public UserProfileHandlerServiceImpl()
-
-
Method Details
-
loadProfiles
public PageResponse<BOUserProfile> loadProfiles(Collection<Long> ids, BOUserProfile filter, Page page, Order order) throws DAException, DAValidateException Description copied from interface:UserProfileHandlerServiceLoads user profiles based on filter criteria.- Specified by:
loadProfilesin interfaceUserProfileHandlerService- Parameters:
ids- optional collection of profile ids to filter by.filter- the filter criteria.page- the pagination information.order- the sorting order.- Returns:
- a page response containing the matching user profiles.
- Throws:
DAException- if there is a problem accessing the database.DAValidateException- if there is a problem validating the data.
-
loadProfileById
Description copied from interface:UserProfileHandlerServiceLoads a user profile by its id.- Specified by:
loadProfileByIdin interfaceUserProfileHandlerService- Parameters:
id- the id of the user profile to load.- Returns:
- the user profile, or empty if not found.
- Throws:
DAException- if there is a problem accessing the database.DAValidateException- if there is a problem validating the data.
-
createProfile
Description copied from interface:UserProfileHandlerServiceCreates a new user profile.- Specified by:
createProfilein interfaceUserProfileHandlerService- Parameters:
profile- the user profile to create.- Returns:
- the id of the newly created profile.
- Throws:
DAException- if there is a problem accessing the database.DAValidateException- if there is a problem validating the data.
-
updateProfile
Description copied from interface:UserProfileHandlerServiceUpdates an existing user profile.- Specified by:
updateProfilein interfaceUserProfileHandlerService- Parameters:
profile- the user profile to update (must have id set).- Throws:
DAException- if there is a problem accessing the database.DAValidateException- if there is a problem validating the data.
-
loadProfileState
Description copied from interface:UserProfileHandlerServiceLoads the state/content of a user profile.- Specified by:
loadProfileStatein interfaceUserProfileHandlerService- Parameters:
profileId- the id of the user profile.- Returns:
- the profile state as JSON string, or empty if not found.
- Throws:
DAException- if there is a problem accessing the database.DAValidateException- if there is a problem validating the data.
-
updateProfileState
Description copied from interface:UserProfileHandlerServiceUpdates the state/content of a user profile.- Specified by:
updateProfileStatein interfaceUserProfileHandlerService- Parameters:
profileId- the id of the user profile.json- the profile state as JSON string.- Throws:
DAException- if there is a problem accessing the database.DAValidateException- if there is a problem validating the data.
-