Interface AttributeService

All Superinterfaces:
IdentifiedService<Attribute>
All Known Implementing Classes:
AttributeServiceImpl

public interface AttributeService extends IdentifiedService<Attribute>
  • Method Details

    • create

      @Nonnull Attribute create(@Nonnull UUID dslId, @Nonnull Integer order, @Nonnull String name, @Nonnull AttributeType type, @Nullable UUID dslRefId, @Nullable List<String> listValues)
    • updateTypeDslId

      boolean updateTypeDslId(@Nonnull UUID dslId, UUID id)
    • update

      boolean update(@Nonnull UUID id, @Nonnull String name)
    • updateDslReference

      boolean updateDslReference(@Nonnull UUID id, @Nonnull UUID dslReferenceId)
    • getOptions

      @Nullable Object getOptions(@Nonnull UUID id)
    • getByDslId

      @Nullable Collection<Attribute> getByDslId(@Nonnull UUID dslId)
      Returns all attributes by dataSetList id.
      Returns:
      collection of attributes by dataSetList id.
    • getByDslIdInItfFormat

      @Nullable com.fasterxml.jackson.databind.node.ArrayNode getByDslIdInItfFormat(@Nonnull UUID dslId)
    • delete

      boolean delete(@Nonnull UUID id)
    • createListValue

      @Nonnull ListValue createListValue(@Nonnull UUID attributeId, @Nonnull String value)
      Creates list value.
    • createListValues

      @Nonnull List<UUID> createListValues(@Nonnull UUID attributeId, @Nonnull List<String> values)
      Bulk create list values.
    • deleteListValue

      boolean deleteListValue(UUID attributeId, @Nonnull UUID id)
      Deletes list value from attribute.
    • deleteListValues

      boolean deleteListValues(UUID attributeId, @Nonnull List<UUID> ids)
      Bulk delete list values from attribute.
    • copy

      Attribute copy(@Nonnull DataSetList newParentDsl, @Nonnull Attribute attribute, int ordering)
    • updateOrdering

      void updateOrdering(@Nonnull List<Pair<UUID,Integer>> attributesOrdering)
    • saveAttributeSortConfigurationForUser

      void saveAttributeSortConfigurationForUser(@Nonnull UUID userId, boolean isSortEnabled)
    • getAttributeSortConfigurationForUser

      UserSettingsEntity getAttributeSortConfigurationForUser(@Nonnull UUID userId)
    • getParametersAndDataSetIdsForAttributeSorting

      Map<String,List<UUID>> getParametersAndDataSetIdsForAttributeSorting(@Nonnull UiManDataSetList tree, @Nonnull UUID dataSetListId, @Nonnull UUID targetAttrId, @Nonnull List<UUID> attrFilterIds)