Interface DictionaryService


  • public interface DictionaryService
    A service to retrieve dictionaries.
    Since:
    2.2
    • Method Detail

      • getDictionaryDescriptorsByStatus

        java.util.Set<DictionaryDescriptor> getDictionaryDescriptorsByStatus​(EntityStatus status)
        Gets all dictionary descriptors by EntityStatus. If you do not have the Manage Standards global privilege, only dictionaries with a PUBLISHED status are returned.
        Parameters:
        status - The EntityStatus of the dictionary.
        Returns:
        A set of dictionary descriptors with the specified status.
      • exportDictionaryToDataSet

        java.lang.String exportDictionaryToDataSet​(java.lang.String dictionaryId,
                                                   EntityStatus dictionaryStatus,
                                                   java.lang.String version,
                                                   ExportFileCreateInfo info)
                                            throws DictionaryNotFoundException,
                                                   ExportException
        Exports a dictionary as a data set to a location in the repository or your workspace.
        Parameters:
        dictionaryId - The identifier of the dictionary.
        dictionaryStatus - The EntityStatus of the dictionary.
        version - The version of the published dictionary to export. The default version is the latest. If the version is provided, the status is ignored because only published versions can be exported.
        info - The method to add the exported data set.
        Returns:
        The path to the exported data set.
        Throws:
        DictionaryNotFoundException - Thrown when the dictionary does not exist.
        ExportException - Thrown when there is an issue exporting the dictionary.