Package com.skava.service.impl
Class GetCollectionServiceImpl
java.lang.Object
com.skava.service.impl.GetCollectionServiceImpl
- All Implemented Interfaces:
com.skava.core.EcommService<CollectionRequest,
,CommonCollectionResponse> GetCollectionService
@Service
@Transactional(propagation=REQUIRED,
readOnly=true,
noRollbackFor=java.lang.Exception.class)
public class GetCollectionServiceImpl
extends Object
implements GetCollectionService
This service class implements GetCollectionService and handles the get collection service request, process
it and save the details in DB. It also implements business logic required to retrieve requested collection.
- Author:
- Infosys Equinox
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfilterAndReturnCollectionResponsegetCollectionResponse
(CollectionRequest request) getCollectionResponseList<com.skava.core.validation.ValidatorComponent>
This method is used to get the respective validator class for this get collection service.boolean
isBidCidZeroOne
(long collectionId, long businessId) isBidCidZeroOneprocess
(CollectionRequest request) This service is used to retrieve the collection according to the given identifier and return the collection details.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
-
GetCollectionServiceImpl
public GetCollectionServiceImpl()The default constructor.
-
-
Method Details
-
getValidator
This method is used to get the respective validator class for this get collection service.- Specified by:
getValidator
in interfacecom.skava.core.EcommService<CollectionRequest,
CommonCollectionResponse> - Returns:
- The list of
ValidatorComponent
object.
-
process
This service is used to retrieve the collection according to the given identifier and return the collection details. This will return the validation failure response when given request data is invalid. based on the collection id from path.- Specified by:
process
in interfacecom.skava.core.EcommService<CollectionRequest,
CommonCollectionResponse> - Parameters:
request
- HoldsCollection
object for fetching collection details for the requested collection id.- Returns:
- The
CommonCollectionResponse
object which returns the success response code and message and if any validations fails, throws an validate exception.
-
isBidCidZeroOne
public boolean isBidCidZeroOne(long collectionId, long businessId) isBidCidZeroOne- Parameters:
collectionId
-businessId
-- Returns:
-
filterAndReturnCollectionResponse
filterAndReturnCollectionResponse- Parameters:
request
-- Returns:
-
getCollectionResponse
getCollectionResponse- Parameters:
request
-- Returns:
-