Interface DataSetService

All Superinterfaces:
IdentifiedService<DataSet>, LabelProviderService
All Known Implementing Classes:
DataSetServiceImpl

public interface DataSetService extends IdentifiedService<DataSet>, LabelProviderService
  • Method Details

    • create

      @Nonnull DataSet create(@Nonnull UUID dslId, @Nonnull String name)
    • getInItfFormat

      @Nullable com.fasterxml.jackson.databind.node.ObjectNode getInItfFormat(@Nonnull MixInId id)
    • writeInAtpFormat

      @Nullable CheckedConsumer<OutputStream,IOException> writeInAtpFormat(@Nonnull MixInId id, @Nullable Map<String,String> context, boolean evaluate)
    • getAll

      @Nonnull List<DataSet> getAll(@Nonnull List<UUID> dataSetsIds)
      Returns bulky List of DataSet.
      Parameters:
      dataSetsIds - List of data sets ids
      Returns:
      List of DataSet
    • getAllDslDsByAttribute

      @Nonnull List<DataSet> getAllDslDsByAttribute(UUID targetAttrId, List<UUID> attrPathIds)
    • rename

      void rename(@Nonnull UUID id, @Nonnull String name)
    • delete

      void delete(@Nonnull UUID dataSetId)
      Delete DS by id.
    • copy

      DataSet copy(@Nonnull UUID dataSetId, @Nonnull String name)
      Copy DS.
    • copy

      DataSet copy(@Nonnull UUID dataSetId, @Nonnull UUID dataSetListId, @Nonnull Map<UUID,UUID> attributes)
      Copy DS to another dsl.
      Parameters:
      dataSetListId - - id of dsl where to copy.
      attributes - - mapping of old and new attributes if ds copied to another dsl.
      Returns:
      data set with parameters and labels.
    • copy

      DataSet copy(@Nonnull DataSet dataSet, @Nonnull UUID dataSetListId, @Nonnull Map<UUID,UUID> attributes)
      Copy DS to another dsl.
    • getOverlapContainers

      List<?> getOverlapContainers(@Nonnull UUID dataSetId, @Nonnull UUID attributeId, boolean withInfo)
      Return all datasets which contains overlapped parameters.
      Returns:
      DataSets with parameter overlaps on the target attribute provided.
    • getAffectedDataSetsByChangesDataSetReference

      List<?> getAffectedDataSetsByChangesDataSetReference(@Nonnull UUID dataSetId, boolean deleteDs)
      Return all datasets which contains overlapped parameters.
    • getParametersOnAttributePath

      @Nullable UiManAttribute getParametersOnAttributePath(@Nonnull UUID dslId, @Nonnull List<UUID> attrPath, boolean evaluate)
      Returns attribute with parameters found by provided path.
      Parameters:
      attrPath - path to attribute inclusive
    • deleteAllParameterOverlaps

      void deleteAllParameterOverlaps(UUID attributeId, List<UUID> dataSetsIds)
    • deleteParameterOverlap

      Parameter deleteParameterOverlap(@Nonnull UUID dsId, @Nonnull UUID targetAttrId, @Nonnull List<UUID> attrPathIds)
      Delete all overlap parameters for DataSet and Parameter by attribute path.
      Returns:
      the parameter which lays underneath deleted overlap.
    • getByParentId

      Stream<DataSet> getByParentId(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 - - name of a label.
      Returns:
      list of DataSet under target DataSetList.
    • getByParentId

      List<ObjectShortResponse> getByParentId(UUID dataSetListId)
      Returns all datasets (id + name) under target DataSetList.
      Parameters:
      dataSetListId - - id of target DataSetList.
      Returns:
      list of DataSet under target DataSetList.
    • restore

      boolean restore(@Nonnull com.fasterxml.jackson.databind.JsonNode dataSetJson)
    • getAffectedDataSets

      PaginationResponse<TableResponse> getAffectedDataSets(UUID dataSetId, Integer page, Integer size)
    • getAffectedDataSetsCount

      Long getAffectedDataSetsCount(UUID dataSetId)
    • lock

      void lock(UUID dataSetListId, @Nonnull List<UUID> uuids, boolean isLock)
      Lock the datasets and their parameters from changes.
      Parameters:
      dataSetListId - dataSetList Id
      uuids - Ids datasets
      isLock - Flag true/false lock
    • evictAllAffectedDatasetsFromContextCacheByDslId

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

      void evictAllAffectedDatasetsFromContextCacheByDsId(UUID updatedDataSetId)
      Evict affected datasets from ATP_DATASETS_DATASET_LIST_CONTEXT_CACHE cache.
      Parameters:
      updatedDataSetId - updated dataset id
    • collectAffectedDatasetsByDslId

      @Nonnull Set<UUID> collectAffectedDatasetsByDslId(UUID updatedDataSetListId)
      Collects all affected DataSet Ids recursively. Used then dsl updated or attribute created/updated/deleted
      Parameters:
      updatedDataSetListId - updated dataSetList id
      Returns:
      set of updated dataset ids include updatedDataSetId
    • collectAffectedDatasetsByDsId

      @Nonnull Set<UUID> collectAffectedDatasetsByDsId(UUID updatedDataSetId)
      Collects all affected DataSet Ids recursively. Used then dataset updated or parameter updated
      Parameters:
      updatedDataSetId - updated dataSet id
      Returns:
      set of updated dataset ids include updatedDataSetId