Class BackofficeDataQualityCalculationServiceProxy
- java.lang.Object
-
- com.hybris.backoffice.cockpitng.dataaccess.facades.object.dataquality.impl.BackofficeDataQualityCalculationServiceProxy
-
- All Implemented Interfaces:
DataQualityCalculationServiceProxy
public class BackofficeDataQualityCalculationServiceProxy extends java.lang.Object implements DataQualityCalculationServiceProxy
Service proxiesDataQualityCalculationServicefor retrieving Object's data coverage.
-
-
Constructor Summary
Constructors Constructor Description BackofficeDataQualityCalculationServiceProxy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<java.lang.Double>calculate(java.lang.Object object, java.lang.String domainId)Calculates the coverage of the givenobject.java.util.Optional<java.lang.Double>calculate(java.lang.Object object, java.lang.String templateCode, java.lang.String domainId)Calculates the coverage of the givenobject.voidsetBackofficeDataQualityCalculationService(BackofficeDataQualityCalculationService backofficeDataQualityCalculationService)
-
-
-
Method Detail
-
calculate
public java.util.Optional<java.lang.Double> calculate(java.lang.Object object, java.lang.String domainId)Description copied from interface:DataQualityCalculationServiceProxyCalculates the coverage of the givenobject. ThedomainIdcan be used to distinguish between multiple coverage calculation strategies per domain (e.g. text translation coverage, print related coverage etc.) @param object the object to calculate the coverage for @param domainId the domain Id if applicable- Specified by:
calculatein interfaceDataQualityCalculationServiceProxy- Returns:
- the
Optional<DataQuality>object with cumulated coverage information orOptional.empty()value if no strategy was registered for given object and domain ID
-
calculate
public java.util.Optional<java.lang.Double> calculate(java.lang.Object object, java.lang.String templateCode, java.lang.String domainId)Calculates the coverage of the givenobject. ThedomainIdcan be used to distinguish between multiple coverage calculation strategies per domain (e.g. text translation coverage, print related coverage etc.) @param object the object to calculate the coverage for @param templateCode the object template to be used for finding the proper calculation strategy @param domainId the domain Id if applicable- Specified by:
calculatein interfaceDataQualityCalculationServiceProxy- Returns:
- the
Optional<DataQuality>object with cumulated coverage information orOptional.empty()if no strategy was registered for given object and domain ID
-
setBackofficeDataQualityCalculationService
public void setBackofficeDataQualityCalculationService(BackofficeDataQualityCalculationService backofficeDataQualityCalculationService)
-
-