Interface ExportService<P extends Export>

  • All Superinterfaces:
    com.broadleafcommerce.data.tracking.core.service.MappableCrudEntityService<P>, com.broadleafcommerce.data.tracking.core.service.RsqlMappableCrudEntityService<P>
    All Known Implementing Classes:
    DefaultExportService

    public interface ExportService<P extends Export>
    extends com.broadleafcommerce.data.tracking.core.service.RsqlMappableCrudEntityService<P>
    Service API for Exports. Supported by ExportRepository.
    Author:
    Samarth Dhruva (samarthd)
    • Method Detail

      • readByTargetAndApplicationIdAndTenantId

        org.springframework.data.domain.Page<P> readByTargetAndApplicationIdAndTenantId​(String target,
                                                                                        @Nullable
                                                                                        String applicationId,
                                                                                        @NonNull
                                                                                        @NonNull String tenantId,
                                                                                        cz.jirutka.rsql.parser.ast.Node filters,
                                                                                        org.springframework.data.domain.Pageable pageable)
        Reads the exports with the given Export.target and Export.applicationId.
        Parameters:
        target - the Export.target to filter by
        applicationId - the Export.applicationId to filter by. Note that if this is null, only exports with null application IDs will be returned.
        tenantId - the Export.tenantId to filter by
        pageable - information about which page of results to return from the database
        Returns:
        the exports with the given Export.target and Export.applicationId
      • readByTargetAndAuthorAndApplicationIdAndTenantId

        org.springframework.data.domain.Page<P> readByTargetAndAuthorAndApplicationIdAndTenantId​(String target,
                                                                                                 String author,
                                                                                                 @Nullable
                                                                                                 String applicationId,
                                                                                                 @NonNull
                                                                                                 @NonNull String tenantId,
                                                                                                 cz.jirutka.rsql.parser.ast.Node filters,
                                                                                                 org.springframework.data.domain.Pageable pageable)
        Reads the exports with the given Export.target, Export.author, and Export.applicationId.
        Parameters:
        target - the target to filter results by
        author - the author to filter results by
        applicationId - the Export.applicationId to filter by. Note that if this is null, only exports with null application IDs will be returned.
        tenantId - the Export.tenantId to filter by
        filters - additional filters to apply, must not be null
        pageable - information about which page of results to return from the database
        Returns:
        the exports matching the given criteria
      • readIncompleteLastUpdatedBeforeAndTenantId

        List<P> readIncompleteLastUpdatedBeforeAndTenantId​(Instant cutoff,
                                                           String tenantId)
        Reads the exports which are incomplete (those with status ExportStatus.REQUESTED or ExportStatus.PROCESSING) whose Export.lastUpdated is before the given cutoff, within the specified tenant.
        Parameters:
        cutoff - the results will be filtered to only include those exports whose Export.lastUpdated is before this value
        tenantId - the tenant id that this export operation was initiated from
        Returns:
        the exports which are incomplete and have a Export.lastUpdated before the given cutoff
      • readByTargetAndAuthorAndApplicationIdAndTenantIdAndParentId

        org.springframework.data.domain.Page<P> readByTargetAndAuthorAndApplicationIdAndTenantIdAndParentId​(String target,
                                                                                                            String author,
                                                                                                            @Nullable
                                                                                                            String applicationId,
                                                                                                            @NonNull
                                                                                                            @NonNull String tenantId,
                                                                                                            @NonNull
                                                                                                            @NonNull String parentId,
                                                                                                            cz.jirutka.rsql.parser.ast.Node filters,
                                                                                                            org.springframework.data.domain.Pageable pageable)
        Reads the exports with the given Export.target, Export.author, and Export.applicationId.
        Parameters:
        target - the target to filter results by
        author - the author to filter results by
        applicationId - the Export.applicationId to filter by. Note that if this is null, only exports with null application IDs will be returned.
        tenantId - the Export.tenantId to filter by
        parentId - the Export.parentId to filter by
        filters - additional filters to apply, must not be null
        pageable - information about which page of results to return from the database
        Returns:
        the exports matching the given criteria