Interface UserProfileHandlerService
- All Known Implementing Classes:
UserProfileHandlerServiceImpl
public interface UserProfileHandlerService
Service providing methods to handle user profile business logic.
-
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.
-
Method Details
-
loadProfiles
PageResponse<BOUserProfile> loadProfiles(Collection<Long> ids, BOUserProfile filter, Page page, Order order) throws DAException, DAValidateException Loads user profiles based on filter criteria.- 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
Loads a user profile by its id.- 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
Creates a new user profile.- 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
Updates an existing user profile.- 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
Loads the state/content of a user profile.- 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
Updates the state/content of a user profile.- 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.
-