Package com.skava.service.impl
Class GetAllCollectionServiceImpl
java.lang.Object
com.skava.service.impl.GetAllCollectionServiceImpl
- All Implemented Interfaces:
com.skava.core.EcommService<CollectionRequest,
,CollectionsResponse> GetAllCollectionService
@Service
@Transactional(propagation=REQUIRED,
readOnly=true,
noRollbackFor=java.lang.Exception.class)
public class GetAllCollectionServiceImpl
extends Object
implements GetAllCollectionService
This service class implements GetAllCollectionService and handles the get all collection service request, process
it and save the details in DB. It also implements business logic required to retrieve all collections.
- 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 collection service.process
(CollectionRequest input) This service is used to load all collections for the requested business and load collections based on pagination parameters like page and size.org.springframework.data.domain.Page<CollectionEntity>
This method is used to search the collection 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
-
GetAllCollectionServiceImpl
public GetAllCollectionServiceImpl()The default constructor.
-
-
Method Details
-
getValidator
This method is used to get the respective validator class for this get all collection service.- Specified by:
getValidator
in interfacecom.skava.core.EcommService<CollectionRequest,
CollectionsResponse> - Returns:
- The list of
ValidatorComponent
object.
-
process
This service is used to load all collections for the requested business and load collections based on pagination parameters like page and size.- Specified by:
process
in interfacecom.skava.core.EcommService<CollectionRequest,
CollectionsResponse> - Parameters:
input
- HoldsCollectionRequest
object for loading all collections within a business id.- Returns:
- The
CollectionsResponse
object which returns the success response code and message and if any validations fails, throws an validate exception.
-
search
public org.springframework.data.domain.Page<CollectionEntity> search(String filters, org.springframework.data.domain.Pageable pageable, String locale) This method is used to search the collection 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.
-