Class UpdateCollectionServiceImpl

java.lang.Object
com.skava.service.impl.UpdateCollectionServiceImpl
All Implemented Interfaces:
com.skava.core.EcommService<Collection,CommonCollectionResponse>, UpdateCollectionService

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

    • UpdateCollectionServiceImpl

      public UpdateCollectionServiceImpl()
      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 update collection service.
      Specified by:
      getValidator in interface com.skava.core.EcommService<Collection,CommonCollectionResponse>
      Returns:
      The list of ValidatorComponent object.
    • process

      @SendEvent(eventType="userservice/collection/update", identifier="request_collectionId") public CommonCollectionResponse process(Collection input)
      This service is used to update a collection which already exists. The collection is updated using the given id. The name, description, properties of the collection can be updated.
      Specified by:
      process in interface com.skava.core.EcommService<Collection,CommonCollectionResponse>
      Parameters:
      input - Holds Collection which contains collection object which is used for updating the collection.
      Returns:
      The CommonCollectionResponse which returns success response code and message on successful updation and if any validation fails, throws validate exception