Class BackofficeDataQualityCalculationServiceProxy

java.lang.Object
com.hybris.backoffice.cockpitng.dataaccess.facades.object.dataquality.impl.BackofficeDataQualityCalculationServiceProxy
All Implemented Interfaces:
DataQualityCalculationServiceProxy

public class BackofficeDataQualityCalculationServiceProxy extends Object implements DataQualityCalculationServiceProxy
Service proxies DataQualityCalculationService for retrieving Object's data coverage.
  • Constructor Details

    • BackofficeDataQualityCalculationServiceProxy

      public BackofficeDataQualityCalculationServiceProxy()
  • Method Details

    • calculate

      public Optional<Double> calculate(Object object, String domainId)
      Description copied from interface: DataQualityCalculationServiceProxy
      Calculates the coverage of the given object. The domainId can 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:
      calculate in interface DataQualityCalculationServiceProxy
      Returns:
      the Optional<DataQuality> object with cumulated coverage information or Optional.empty() value if no strategy was registered for given object and domain ID
    • calculate

      public Optional<Double> calculate(Object object, String templateCode, String domainId)
      Calculates the coverage of the given object. The domainId can 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:
      calculate in interface DataQualityCalculationServiceProxy
      Returns:
      the Optional<DataQuality> object with cumulated coverage information or Optional.empty() if no strategy was registered for given object and domain ID
    • setBackofficeDataQualityCalculationService

      public void setBackofficeDataQualityCalculationService(BackofficeDataQualityCalculationService backofficeDataQualityCalculationService)