Class FindCollectionServiceImpl
java.lang.Object
com.skava.report.service.impl.CommonDependencies
com.skava.report.service.impl.collection.FindCollectionServiceImpl
- All Implemented Interfaces:
com.skava.core.EcommService<FindCollectionRequest,
,CollectionResponse> FindCollectionService
@Service
@Transactional(readOnly=true)
public class FindCollectionServiceImpl
extends CommonDependencies
implements FindCollectionService
This class implements the FindCollectionService interface to handle the collection create request.
This will throw an exception if the requested id is not available in the collection
- Author:
- Infosys Equinox
-
Field Summary
Fields inherited from class com.skava.report.service.impl.CommonDependencies
authProps, collectionAttributeRepository, collectionPropertyRepository, collectionRepository, context, messageSource, reportAssembler, reportEventService, reportPropertyRepository, reportRepository, validators
-
Constructor Summary
ConstructorsConstructorDescriptionFindCollectionServiceImpl
(ReportAssembler reportAssembler, ReportRepository reportRepository, ReportPropertyRepository reportPropertyRepository, CollectionRepository collectionRepository, CollectionPropertyRepository collectionPropertyRepository, CollectionAttributeRepository collectionAttributeRepository, org.springframework.context.ApplicationContext context, com.skava.core.properties.AuthorizationProperties authProps, org.springframework.context.MessageSource messageSource, ReportEventService reportEventService) -
Method Summary
Modifier and TypeMethodDescriptionList<com.skava.core.validation.ValidatorComponent>
void
init()
Initialize validators Load validator classes from configuration using microservice property By default load built-in validatormethodFallback
(FindCollectionRequest request, Exception e) process
(FindCollectionRequest request) This method is used to load single Collection based on given Collection identifier.Methods inherited from class com.skava.report.service.impl.CommonDependencies
checkForDuplicateName, getCollectionFromRepository, getCollectionProperty, getReportProperties, validateAndGetCollectionProperty
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
-
FindCollectionServiceImpl
@Autowired public FindCollectionServiceImpl(ReportAssembler reportAssembler, ReportRepository reportRepository, ReportPropertyRepository reportPropertyRepository, CollectionRepository collectionRepository, CollectionPropertyRepository collectionPropertyRepository, CollectionAttributeRepository collectionAttributeRepository, org.springframework.context.ApplicationContext context, com.skava.core.properties.AuthorizationProperties authProps, org.springframework.context.MessageSource messageSource, ReportEventService reportEventService)
-
-
Method Details
-
init
@PostConstruct public void init()Initialize validators Load validator classes from configuration using microservice property By default load built-in validator -
process
@CircuitBreaker(name="report-key", fallbackMethod="methodFallback") public CollectionResponse process(FindCollectionRequest request) This method is used to load single Collection based on given Collection identifier.- Specified by:
process
in interfacecom.skava.core.EcommService<FindCollectionRequest,
CollectionResponse> - Parameters:
request
- It contains the attributes required for the load of Collection.- Returns:
- It returns the
CollectionAPIResponse
.
-
getValidator
- Specified by:
getValidator
in interfacecom.skava.core.EcommService<FindCollectionRequest,
CollectionResponse>
-
methodFallback
-