Package com.skava.service.impl
Class GetAllUserPublicProfileServiceImpl
java.lang.Object
com.skava.service.impl.GetAllUserPublicProfileServiceImpl
- All Implemented Interfaces:
com.skava.core.EcommService<UserRequest,
,UsersResponse> GetAllUserPublicProfileService
@Service
@Transactional
public class GetAllUserPublicProfileServiceImpl
extends Object
implements GetAllUserPublicProfileService
This service class implements GetAllUserService and handles the get all public user profile service request, process
it and save the details in DB. It also implements business logic required to retrieve all users present
in a collection.
- Author:
- Infosys Equinox
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<com.skava.core.validation.ValidatorComponent>
This method is used to get the respective validator class for this get all user service.process
(UserRequest request) This API retrieves the user's public profile within the given collection based on the given filter.org.springframework.data.domain.Page<UsersEntity>
This method is used to search the user based on the given filter and pageable request.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.skava.core.EcommService
getValidateException, getValidator
-
Constructor Details
-
GetAllUserPublicProfileServiceImpl
public GetAllUserPublicProfileServiceImpl()default class constructor.
-
-
Method Details
-
process
This API retrieves the user's public profile within the given collection based on the given filter. It have the limited support in the filters (email or phoneNumber or id) and returns user's firstName, lastName and type in the response. The functionality can be modified by using a plugin with the help of extension point which is configured in collection property in the name of 'public_profile_class'. This filter supports only exact searches and the parameters supported are email, phoneNumber and id and only one among this parameters are used as filter at a time.- Specified by:
process
in interfacecom.skava.core.EcommService<UserRequest,
UsersResponse> - Parameters:
request
- HoldsUserRequest
object for user public profile call which retrieves user's firstname, lastname and type.- Returns:
- The
UsersResponse
object which returns users firstName, lastName and type.
-
getValidator
This method is used to get the respective validator class for this get all user service.- Specified by:
getValidator
in interfacecom.skava.core.EcommService<UserRequest,
UsersResponse> - Returns:
- The list of
ValidatorComponent
object.
-
search
public org.springframework.data.domain.Page<UsersEntity> search(String filters, org.springframework.data.domain.Pageable pageable, String locale) This method is used to search the user based on the given filter and pageable request.- Parameters:
filters
- Indicates the filters.pageable
- HoldsPageable
object created based on the given size and page.locale
- Indicates the locale object for resoponse message- Returns:
- The
Page
ofCollectionEntity
object.
-