Interface ParameterService

All Superinterfaces:
IdentifiedService<Parameter>
All Known Implementing Classes:
ParameterServiceImpl

public interface ParameterService extends IdentifiedService<Parameter>
  • Method Details

    • create

      @Nonnull Parameter create(@Nonnull UUID dsId, @Nonnull UUID attrId, @Nullable String text, @Nullable UUID listValueReference, @Nullable UUID referenceDataSet)
    • set

      @Nonnull Parameter set(@Nonnull UUID dsId, @Nonnull UUID targetAttrId, @Nullable List<UUID> attrPathIds, @Nullable String stringValue, @Nullable UUID dsRef, @Nullable UUID listValueRef)
      Creates or updates value of Parameter or ParameterOverlap.
      Parameters:
      attrPathIds - should be specified if you want an overlap value.
    • set

      @Nonnull Parameter set(@Nonnull UUID dsId, @Nonnull UUID targetAttrId, @Nonnull String value, List<UUID> attrPathIds)
    • setParamSelectJavers

      @Nonnull Parameter setParamSelectJavers(@Nonnull UUID dsId, @Nonnull UUID targetAttrId, @Nullable List<UUID> attrPathIds, @Nullable String stringValue, @Nullable UUID dsRef, @Nullable UUID listValueRef, boolean isJavers)
      Creates or updates value of Parameter or ParameterOverlap. Without Snapshot
      Parameters:
      attrPathIds - should be specified if you want an overlap value.
      isJavers - Specifies whether Javers is enabled or disabled (Versioning)
    • bulkUpdateValue

      boolean bulkUpdateValue(@Nullable String stringValue, @Nullable UUID dsRef, @Nullable UUID listValueRef, @Nonnull List<UUID> parameterIds)
      Updates list of Parameter. Do not use it for file or ParameterOverlap.
    • upload

      FileData upload(UUID parameterUuid, String contentType, String fileName, InputStream file)
    • upload

      FileData upload(UUID datasetId, UUID attributeId, List<UUID> attrPathIds, String contentType, String fileName, InputStream file)
    • bulkUploadAttachment

      List<FileData> bulkUploadAttachment(UUID dataSetListId, List<UUID> dataSetsIds, UUID attributeId, org.springframework.web.multipart.MultipartFile file, List<UUID> attrPathIds)
    • bulkUpdate

      List<Object> bulkUpdate(UUID dataSetListId, List<UUID> attrPathIds, List<UUID> dataSetsIds, UUID attributeId, String value, org.springframework.web.multipart.MultipartFile file)
    • clearAttachment

      void clearAttachment(UUID parameterId)
    • update

      boolean update(@Nonnull UUID parameterId, String text)
    • delete

      boolean delete(@Nonnull Parameter parameter)
    • delete

      boolean delete(@Nonnull UUID attributeId, @Nonnull UUID dataSetId, UUID datasetListId, List<UUID> attrPathIds)
    • deleteParamSelectJavers

      void deleteParamSelectJavers(@Nonnull UUID attributeId, @Nonnull UUID dataSetId, UUID datasetListId, List<UUID> attrPathIds, boolean isJavers)
    • copy

      Parameter copy(@Nonnull DataSet newParentDs, @Nonnull Parameter parameter, @Nullable Map<UUID,UUID> attributes)
      Copy Parameters to attribute.
      Parameters:
      attributes - - mapping of old and new attributes if ds copied to another dsl.
    • getByDataSetIdAttributeId

      @Nullable Parameter getByDataSetIdAttributeId(UUID dataSetId, UUID attrId)
      get parameter by dataset and attribute id.
    • getByAttributeIdAndDatasetIds

      List<Parameter> getByAttributeIdAndDatasetIds(@Nonnull UUID attributeId, @Nonnull Set<UUID> datasetIds)
      Get patameters by attribute id and dataset ids.
    • getOrCreateByDataSetIdAttributeId

      @Nullable Parameter getOrCreateByDataSetIdAttributeId(UUID dataSetId, UUID attrId)
      Get parameter by dataset and attribute id. If it doesn't exist - create new.
    • getOrCreateOverlap

      @Nonnull Parameter getOrCreateOverlap(UUID dsId, UUID targetAttrId, List<UUID> attrPathIds)
    • getOverlap

      @Nullable ParameterOverlap getOverlap(@Nonnull UUID dsId, @Nonnull UUID attributeId, @Nonnull List<UUID> attributePathIds)
    • getOverlaps

      Stream<ParameterOverlap> getOverlaps(@Nonnull UUID targetAttributeId, Predicate<AttributePath> filter)
    • getParametersAffectedByListValue

      List<?> getParametersAffectedByListValue(UUID listValueId, boolean withDsl)
    • getParametersAffectedByListValues

      List<TableResponse> getParametersAffectedByListValues(List<UUID> listValueIds)