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 Details

    • GetCollectionServiceImpl

      public GetCollectionServiceImpl()
      The default constructor.
  • Method Details

    • getValidator

      public List<com.skava.core.validation.ValidatorComponent> getValidator()
      This method is used to get the respective validator class for this get collection service.
      Specified by:
      getValidator in interface com.skava.core.EcommService<CollectionRequest,CommonCollectionResponse>
      Returns:
      The list of ValidatorComponent object.
    • process

      public CommonCollectionResponse process(CollectionRequest request)
      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 interface com.skava.core.EcommService<CollectionRequest,CommonCollectionResponse>
      Parameters:
      request - Holds Collection 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

      public CommonCollectionResponse filterAndReturnCollectionResponse(CollectionRequest request)
      filterAndReturnCollectionResponse
      Parameters:
      request -
      Returns:
    • getCollectionResponse

      public Collection getCollectionResponse(CollectionRequest request)
      getCollectionResponse
      Parameters:
      request -
      Returns: