Package com.skava.service.impl
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<com.skava.core.validation.ValidatorComponent>
This method is used to get the respective validator class for this update collection service.process
(Collection input) This service is used to update a collection which already exists.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
-
UpdateCollectionServiceImpl
public UpdateCollectionServiceImpl()default constructor.
-
-
Method Details
-
getValidator
This method is used to get the respective validator class for this update collection service.- Specified by:
getValidator
in interfacecom.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 interfacecom.skava.core.EcommService<Collection,
CommonCollectionResponse> - Parameters:
input
- HoldsCollection
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
-