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,
                                   @NotNull
                                   @NotNull UUID collectionKey)
        Creates a new descriptor group.

        // TODO

        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,
                                   @NotNull
                                   @javax.validation.constraints.NotNull byte[] descriptorsGroupFile,
                                   @NotNull
                                   @NotNull ExportFormat format,
                                   @NotNull
                                   @NotNull String title,
                                   String description)
        Updates an existing 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