Interface DescriptorsService

    • Method Detail

      • createDescriptorGroup

        long createDescriptorGroup​(@NotNull @Valid
                                   @javax.validation.constraints.NotNull,@javax.validation.Valid byte[] descriptorsGroupFile,
                                   @NotNull
                                   @NotNull ExportFormat format,
                                   @NotNull
                                   @NotNull String title,
                                   String description,
                                   Set<String> tags,
                                   @NotNull
                                   @NotNull UUID collectionKey)
        Creates a new descriptor group. Takes the descriptor group file content, format, title, description, tags, and collection key as input.
        Parameters:
        descriptorsGroupFile - The byte array content of the descriptor group file.
        format - The format of the descriptor group file (e.g., CSV, TSV).
        title - The title of the descriptor group.
        description - Optional description for the descriptor group.
        tags - Optional set of tags associated with the descriptor group.
        collectionKey - The UUID key of the collection this descriptor group belongs to.
        Returns:
        key of the created descriptor group.
      • deleteDescriptorGroup

        void deleteDescriptorGroup​(@NotNull
                                   @javax.validation.constraints.NotNull long key)
        Deletes a descriptor group by key.
        Parameters:
        key - of the descriptor group to be deleted.
      • getDescriptorGroup

        DescriptorGroup getDescriptorGroup​(@NotNull
                                           @javax.validation.constraints.NotNull long key)
        Retrieves a descriptor group by its key.
        Parameters:
        key - of the descriptor group to be retrieved.
        Returns:
        the descriptor group
      • updateDescriptorGroup

        void updateDescriptorGroup​(@NotNull
                                   @javax.validation.constraints.NotNull long descriptorGroupKey,
                                   byte[] descriptorsGroupFile,
                                   @NotNull
                                   @NotNull ExportFormat format,
                                   @NotNull
                                   @NotNull String title,
                                   Set<String> tags,
                                   String description)
        Updates an existing descriptor group.
        Parameters:
        descriptorGroupKey - The key of the descriptor group to update.
        descriptorsGroupFile - The new byte array content of the descriptor group file.
        format - The format of the new descriptor group file.
        title - The new title for the descriptor group.
        tags - An optional set of new tags for the descriptor group. Existing tags not included will be removed.
        description - An optional new description for the descriptor group.
      • getDescriptor

        Descriptor getDescriptor​(@NotNull
                                 @javax.validation.constraints.NotNull long key)
        Retrieves a descriptor by its key.
        Parameters:
        key - of the descriptor to be retrieved.
        Returns:
        the descriptor
      • getVerbatimNames

        Set<StringgetVerbatimNames​(long descriptorGroupKey)
        Get the names of the verbatim fields of a descriptor group.
        Parameters:
        descriptorGroupKey - key of the descriptor group.
        Returns:
        the names
      • reinterpretDescriptorGroup

        void reinterpretDescriptorGroup​(@NotNull
                                        @javax.validation.constraints.NotNull long descriptorGroupKey)
        Reinterprets a descriptor group.
        Parameters:
        descriptorGroupKey - key of the descriptor group.
      • reinterpretCollectionDescriptorGroups

        void reinterpretCollectionDescriptorGroups​(@NotNull
                                                   @NotNull UUID collectionKey)
        Reinterprets all the descriptor groups of a collection.
        Parameters:
        collectionKey - key of the collection