All Implemented Interfaces:
Serializable

public class DataSetList extends AbstractObjectWrapper<DataSetListEntity>
See Also:
  • Constructor Details

  • Method Details

    • getId

      public UUID getId()
    • getName

      public String getName()
    • getVisibilityArea

      public VisibilityArea getVisibilityArea()
    • getTestPlan

      public TestPlanEntity getTestPlan()
    • getAttributeKeys

      public List<AttributeKey> getAttributeKeys()
      Get overlaps.
    • getOverLapParameters

      public List<Parameter> getOverLapParameters()
      Get parameters without empty attributes.
    • getOverLapParametersMapping

      public Map<AttributeKey,Parameter> getOverLapParametersMapping()
      Get parameters without empty attributes.
    • getAttributeKeysByDataSet

      public List<AttributeKey> getAttributeKeysByDataSet(UUID dataSetId)
      Overlaps by datasets.
    • getAttributes

      public List<Attribute> getAttributes()
      Get attributes.
    • getAttributesCount

      public Integer getAttributesCount()
      Attributes count.
    • getAttributeById

      public Attribute getAttributeById(UUID id)
      Get DSl attribute by id.
    • getDataSetsColumns

      public List<Integer> getDataSetsColumns(List<UUID> dataSetIds)
      Takes Data Sets Ids list, returns their columns.
    • getDataSetColumnByName

      public Integer getDataSetColumnByName(String dataSetName)
      Gets DS name, returns its column.
    • getDataSetColumnById

      public Integer getDataSetColumnById(UUID dataSetId)
      Gets DS id, returns its column.
    • getDataSetColumnsByIds

      public List<Integer> getDataSetColumnsByIds(List<UUID> dataSetIds)
      Get columns by dataset ids.
    • getDataSets

      public List<DataSet> getDataSets()
      All DSs.
    • getDataSetByColumn

      public DataSet getDataSetByColumn(int columnNumber)
      Gets DS column, returns DS.
    • getDataSetByName

      public DataSet getDataSetByName(String dataSetName)
      Gets DS name, returns DS.
    • getDataSetById

      public DataSet getDataSetById(UUID dataSetId)
      Gets DS id, returns DS.
    • getDataSetsCount

      public Integer getDataSetsCount()
      How many DSs this DSL has.
    • getLabels

      public List<LabelEntity> getLabels()
    • getAttributesByTypes

      public List<Attribute> getAttributesByTypes(List<AttributeTypeName> attributeTypeNames)
      Returns attributes filtered by type.
    • getAttributesByTypesPageable

      public org.springframework.data.domain.Page<AttributeEntity> getAttributesByTypesPageable(UUID uuid, List<AttributeTypeName> attributeTypeNames, org.springframework.data.domain.Pageable pageable)
      Get page of attributes.
      Parameters:
      uuid - dsl id
      attributeTypeNames - types
      pageable - page
      Returns:
      page of attributes.
    • getAttributesOfPage

      public List<Attribute> getAttributesOfPage(org.springframework.data.domain.Page<AttributeEntity> entities, List<AttributeTypeName> attributeTypeNames)
      Extract attributes of page.
      Parameters:
      entities - attribute entities
      attributeTypeNames - types
      Returns:
      list of attributes
    • getDependencies

      public List<DataSetList> getDependencies()
      Returns DSL dependencies.
    • setDataSetListAttributes

      public void setDataSetListAttributes(List<AttributeEntity> entityList)
      Set DSL reference attributes.
    • getDataSetListReferences

      public List<Attribute> getDataSetListReferences()
      Returns DSL reference attributes.
    • createDataSet

      public DataSet createDataSet(String name)
      Create with name.
    • createDataSet

      public DataSet createDataSet(String name, long order)
      Create with name and order.
    • insertDataSet

      public DataSet insertDataSet(UUID id, String name)
      Create with name and id.
    • beforeRemove

      public void beforeRemove()
      Overrides:
      beforeRemove in class AbstractObjectWrapper<DataSetListEntity>
    • createAttribute

      public Attribute createAttribute(String name, AttributeTypeName type)
      Creates new attribute with name and type.
    • createAttribute

      public Attribute createAttribute(String name, AttributeTypeName type, Integer ordering)
      Creates new attribute with name, type and ordering.
    • insertAttribute

      public Attribute insertAttribute(UUID id, String name, AttributeTypeName type, int ordering)
      Creates new attribute with name and type.
    • getLastAttributeOrderNumber

      public int getLastAttributeOrderNumber()
      Returns maximum attribute order number.
    • getLastDataSetsOrderNumber

      public long getLastDataSetsOrderNumber()
      Returns maximum data set order number.
    • setName

      public void setName(String name)
    • setVisibilityArea

      public void setVisibilityArea(UUID visibilityAreaId)
      Sets visibility area.
      Parameters:
      visibilityAreaId - the visibility area id
    • duplicate

      public DataSetListCopyData duplicate(@Nullable String postfix, String prevNamePattern, @Nullable UUID sagaSessionId)
      Copies a DSL with the same name using postfix or, if postfix is not specified, uses (N) postfix where N - is copy number.
    • updateDslReferences

      public void updateDslReferences(Map<UUID,DataSetListCopyData> copiesData, Map<UUID,UUID> dataSetsMap)
      Changes attribute DSL reference to the new one according to the map.
    • updateOverlaps

      public void updateOverlaps(Map<UUID,DataSetListCopyData> copiesData)
      Updates overlaps keys.
    • setModifiedBy

      public void setModifiedBy(UUID id)
    • setModifiedWhen

      public void setModifiedWhen(Timestamp timestamp)
    • insertOverlap

      public Parameter insertOverlap(UUID dataSetId, UUID attributeKeyId, UUID attributeId, List<UUID> path, UUID parameterId)
      Insert overlap with id and parameter for data set.
    • getModifiedWhen

      public Timestamp getModifiedWhen()
    • getSagaSessionId

      public UUID getSagaSessionId()