Interface ParameterService
- All Superinterfaces:
IdentifiedService<Parameter>
- All Known Implementing Classes:
ParameterServiceImpl
-
Method Summary
Modifier and TypeMethodDescriptionbulkUpdate(UUID dataSetListId, List<UUID> attrPathIds, List<UUID> dataSetsIds, UUID attributeId, String value, org.springframework.web.multipart.MultipartFile file) booleanUpdates list ofParameter.bulkUploadAttachment(UUID dataSetListId, List<UUID> dataSetsIds, UUID attributeId, org.springframework.web.multipart.MultipartFile file, List<UUID> attrPathIds) voidclearAttachment(UUID parameterId) Copy Parameters to attribute.booleanbooleanvoiddeleteParamSelectJavers(UUID attributeId, UUID dataSetId, UUID datasetListId, List<UUID> attrPathIds, boolean isJavers) getByAttributeIdAndDatasetIds(UUID attributeId, Set<UUID> datasetIds) Get patameters by attribute id and dataset ids.getByDataSetIdAttributeId(UUID dataSetId, UUID attrId) get parameter by dataset and attribute id.getOrCreateByDataSetIdAttributeId(UUID dataSetId, UUID attrId) Get parameter by dataset and attribute id.getOrCreateOverlap(UUID dsId, UUID targetAttrId, List<UUID> attrPathIds) getOverlap(UUID dsId, UUID attributeId, List<UUID> attributePathIds) getOverlaps(UUID targetAttributeId, Predicate<AttributePath> filter) List<?> getParametersAffectedByListValue(UUID listValueId, boolean withDsl) getParametersAffectedByListValues(List<UUID> listValueIds) set(UUID dsId, UUID targetAttrId, List<UUID> attrPathIds, String stringValue, UUID dsRef, UUID listValueRef) Creates or updates value ofParameterorParameterOverlap.setParamSelectJavers(UUID dsId, UUID targetAttrId, List<UUID> attrPathIds, String stringValue, UUID dsRef, UUID listValueRef, boolean isJavers) Creates or updates value ofParameterorParameterOverlap.booleanupload(UUID parameterUuid, String contentType, String fileName, InputStream file) upload(UUID datasetId, UUID attributeId, List<UUID> attrPathIds, String contentType, String fileName, InputStream file) Methods inherited from interface org.qubership.atp.dataset.service.direct.IdentifiedService
existsById, get, getAll
-
Method Details
-
create
-
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 ofParameterorParameterOverlap.- Parameters:
attrPathIds- should be specified if you want an overlap value.
-
set
-
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 ofParameterorParameterOverlap. 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 ofParameter. Do not use it for file orParameterOverlap. -
upload
-
upload
-
bulkUploadAttachment
-
bulkUpdate
-
clearAttachment
-
update
-
delete
-
delete
-
deleteParamSelectJavers
-
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
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
Get parameter by dataset and attribute id. If it doesn't exist - create new. -
getOrCreateOverlap
-
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
-
getParametersAffectedByListValues
-