Interface DataSetListService

All Superinterfaces:
IdentifiedService<DataSetList>, LabelProviderService
All Known Implementing Classes:
DataSetListServiceImpl

public interface DataSetListService extends IdentifiedService<DataSetList>, LabelProviderService
  • Method Details

    • getAsFlat

      @Nullable FlatDataImpl getAsFlat(UUID id, boolean evaluate)
    • getAsTree

      @Deprecated @Nullable UiManDataSetList getAsTree(UUID id, boolean evaluate, @Nullable Collection<UUID> dataSetsFilter, @Nullable Collection<UUID> dataAttributeFilter, Integer startIndex, Integer endIndex, boolean isSort, boolean expandAll)
      Deprecated.
      only for cases when the evaluate parameter equals true. Use JpaDataSetService.getDataSetTreeInAtpFormat(UUID, boolean, String, ContextType) instead.
      To get as tree with filter by datasets and attributes.
    • getAsTree

      @Nullable UiManDataSetList getAsTree(UUID id, boolean evaluate, @Nullable Collection<UUID> dataSetsFilter, boolean isSortEnabled)
      Deprecated.
      only for cases when the evaluate parameter equals true. Use JpaDataSetService.getDataSetTreeInAtpFormat(UUID, boolean, String, ContextType) instead.
      To get as tree with filter by datasets only.
    • getAsTree

      @Nullable UiManDataSetList getAsTree(UUID id, boolean evaluate)
      Deprecated.
      only for cases when the evaluate parameter equals true. Use JpaDataSetService.getDataSetTreeInAtpFormat(UUID, boolean, String, ContextType) instead.
      To get as tree without any filters.
    • checkOnDuplicate

      void checkOnDuplicate(UUID visibilityArea, String newNameDsl)
    • create

      @Nonnull DataSetList create(@Nonnull UUID visibilityArea, @Nonnull String name, @Nullable UUID testPlanId)
    • getAll

      @Nonnull default List<DataSetList> getAll(@Nonnull UUID visibilityArea)
    • getAll

      @Nonnull List<DataSetList> getAll(@Nonnull UUID visibilityArea, @Nullable String labelName)
    • getAll

      List<DataSetList> getAll(@Nonnull List<UUID> datasetListIds)
    • rename

      boolean rename(@Nonnull UUID id, @Nonnull String name)
    • getByNameUnderVisibilityArea

      DataSetList getByNameUnderVisibilityArea(UUID visibilityArea, String name)
    • getChildren

      default List<DataSet> getChildren(@Nonnull UUID dataSetListId, boolean evaluate)
    • getChildren

      List<DataSet> getChildren(@Nonnull UUID dataSetListId, boolean evaluate, @Nullable String labelName)
      Returns all datasets under target DataSetList.
      Parameters:
      dataSetListId - - id of target DataSetList.
      evaluate - - should apply structure changes or not.
      labelName - label name to filter with
    • delete

      void delete(@Nonnull UUID dataSetListId)
      Deletes DS by id.
    • copy

      DataSetList copy(@Nonnull UUID visibilityArea, @Nonnull UUID dataSetListId, @Nonnull String name, @Nullable Boolean withData, @Nullable UUID testPlanId) throws Exception
      Copy data set list.
      Throws:
      Exception
    • copy

      Map<UUID,org.apache.commons.lang3.tuple.Pair<UUID,UUID>> copy(String name, Map<UUID,Set<UUID>> data)
      Copy of dataSetLists and dataSets in it.
      Parameters:
      name - - new DSL name
      data - - DSL to copy with it's DSs to copy
      Returns:
      - structure wich contains mapping of old DS and pair of new DS and DSL
    • modify

      boolean modify(UUID dataSetListId, String name, UUID testPlanId, boolean clearTestPlan)
      Rename dsl or add test plan to dsl.
      Parameters:
      dataSetListId - dsl id.
      name - new name of dsl.
      testPlanId - new test plan id for dsl.
      clearTestPlan - true if you want test plan in dsl be null.
      Returns:
      success or failure of update entity.
      Throws:
      IllegalArgumentException - if dsl's and testPlan's visibility area ids are not equals.
    • getListOfDsIdsAndNameAndDslId

      List<DatasetResponse> getListOfDsIdsAndNameAndDslId(@Nonnull List<UUID> dataSetListIds)
      Get list of dsId, dsNme, dslId for each datasetlist.
      Parameters:
      dataSetListIds - dsl ids.
      Returns:
      list of DsIdNameDslId.
    • getAffectedAttributes

      PaginationResponse<TableResponse> getAffectedAttributes(UUID dataSetListId, Integer page, Integer size)
      Get affected attribute by dsl.
    • getAffectedAttributes

      List<TableResponse> getAffectedAttributes(UUID dataSetListId)
      Get affected attribute by dsl.
    • updateModifiedFields

      void updateModifiedFields(UUID dataSetListId, UUID modifiedBy, Timestamp modifiedWhen)
    • existsById

      boolean existsById(@Nonnull UUID dataSetListId)
      Check if dsl exists.
      Specified by:
      existsById in interface IdentifiedService<DataSetList>
      Parameters:
      dataSetListId - DSL id
      Returns:
      'true' if dsl exists, otherwise 'false'
    • getAffectedDataSetLists

      List<AffectedDataSetList> getAffectedDataSetLists(@Nonnull UUID dataSetListId, @Nullable Integer limit, @Nullable Integer offset)
      Get affected DSL by dataSetListId.
      Parameters:
      dataSetListId - DSL id
      limit - number of rows that are returned
      offset - number of rows that are skipped
      Returns:
      list with DSL id and DSL name
    • getModifiedWhen

      Timestamp getModifiedWhen(UUID dataSetListId)
      Get modifiedWhen by dataSetListId.
      Parameters:
      dataSetListId - dataSetListId
      Returns:
      Timestamp of modified
    • getAffectedAttributesCount

      Long getAffectedAttributesCount(UUID dataSetListId)
      Get affected DSL count by dataSetListId.
      Parameters:
      dataSetListId - DSL id
      Returns:
      affected DSL count
    • evictAllAffectedDatasetsFromContextCacheByDslId

      void evictAllAffectedDatasetsFromContextCacheByDslId(UUID updatedDataSetListId)
      Evict affected datasets from ATP_DATASETS_DATASET_LIST_CONTEXT_CACHE cache.
      Parameters:
      updatedDataSetListId - updated dataset list id
    • revert

      void revert(UUID sagaSessionId, RevertRequest request)