Class PutUpdateCollectionPropertiesServiceImpl

java.lang.Object
com.skava.service.impl.PutUpdateCollectionPropertiesServiceImpl
All Implemented Interfaces:
com.skava.core.EcommService<CollectionPropertyRequest,CollectionPropertiesResponse>, PutUpdateCollectionPropertiesService

@Service @Transactional(propagation=REQUIRED, readOnly=false, noRollbackFor=java.lang.Exception.class) public class PutUpdateCollectionPropertiesServiceImpl extends Object implements PutUpdateCollectionPropertiesService
This service class implements PutUpdateCollectionPropertiesService and handles the update collection properties service request, process it and save the details in DB. It also implements business logic required to retrieve requested collection property.
Author:
Infosys Equinox
  • Constructor Details

    • PutUpdateCollectionPropertiesServiceImpl

      public PutUpdateCollectionPropertiesServiceImpl()
  • Method Details

    • process

      @SendEvent(eventType="userservice/collectionproperty/update", identifier="request_collectionId") public CollectionPropertiesResponse process(CollectionPropertyRequest input)
      This method is used to update collection property put process. While updating collection properties if any properties is not present in collection attribute, then the properties from request will be added to ignored properties.
      Specified by:
      process in interface com.skava.core.EcommService<CollectionPropertyRequest,CollectionPropertiesResponse>
      Parameters:
      input - Holds CollectionPropertyRequest object which contains requested collection properties is used for updating.
      Returns:
      The CollectionPropertiesResponse object which returns success response code and message on successful updation of collection properties and if any validation fails, throws validate exception
    • getValidator

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