Search in sources :

Example 1 with FileFormatDAO

use of io.dockstore.webservice.jdbi.FileFormatDAO in project dockstore by dockstore.

the class AbstractImageRegistry method refreshTools.

/**
 * Updates/Adds/Deletes tools and their associated tags
 *
 * @param userId            The ID of the user
 * @param userDAO           ...
 * @param toolDAO           ...
 * @param tagDAO            ...
 * @param fileDAO           ...
 * @param githubToken       The user's GitHub token
 * @param bitbucketToken    The user's Bitbucket token
 * @param gitlabToken       The user's GitLab token
 * @param organization      If not null, only refresh tools belonging to the specific organization. Otherwise, refresh all.
 * @param dashboardPrefix   A string that prefixes logging statements to indicate that it will be used for Cloudwatch & Grafana.
 * @return The list of tools that have been updated
 */
@SuppressWarnings("checkstyle:parameternumber")
public List<Tool> refreshTools(final long userId, final UserDAO userDAO, final ToolDAO toolDAO, final TagDAO tagDAO, final FileDAO fileDAO, final FileFormatDAO fileFormatDAO, final Token githubToken, final Token bitbucketToken, final Token gitlabToken, String organization, final EventDAO eventDAO, final String dashboardPrefix) {
    // Get all the namespaces for the given registry
    List<String> namespaces;
    if (organization != null) {
        namespaces = Collections.singletonList(organization);
    } else {
        namespaces = getNamespaces();
    }
    // Get all the tools based on the found namespaces
    List<Tool> apiTools = getToolsFromNamespace(namespaces);
    String registryString = getRegistry().getDockerPath();
    // Add manual tools to list of api tools
    User user = userDAO.findById(userId);
    List<Tool> userTools = toolDAO.findByUserRegistryNamespace(userId, registryString, organization);
    // manualTools:
    // - isManualMode
    // - isTool
    // - belongs to user
    // - correct registry
    // - correct organization/namespace
    List<Tool> manualTools = userTools.stream().filter(tool -> ToolMode.MANUAL_IMAGE_PATH.equals(tool.getMode())).collect(Collectors.toList());
    // notManualTools is similar except it's not manualMode
    List<Tool> notManualTools = userTools.stream().filter(tool -> !ToolMode.MANUAL_IMAGE_PATH.equals(tool.getMode())).collect(Collectors.toList());
    apiTools.addAll(manualTools);
    // Update api tools with build information
    updateAPIToolsWithBuildInformation(apiTools);
    // Update db tools by copying over from api tools
    List<Tool> newDBTools = updateTools(apiTools, notManualTools, user, toolDAO);
    // Get tags and update for each tool
    for (Tool tool : newDBTools) {
        logToolRefresh(dashboardPrefix, tool);
        List<Tag> toolTags = getTags(tool);
        final SourceCodeRepoInterface sourceCodeRepo = SourceCodeRepoFactory.createSourceCodeRepo(tool.getGitUrl(), bitbucketToken == null ? null : bitbucketToken.getContent(), gitlabToken == null ? null : gitlabToken.getContent(), githubToken);
        updateTags(toolTags, tool, sourceCodeRepo, tagDAO, fileDAO, toolDAO, fileFormatDAO, eventDAO, user);
    }
    return newDBTools;
}
Also used : GitLabTag(io.dockstore.webservice.core.gitlab.GitLabTag) SourceCodeRepoFactory.parseGitUrl(io.dockstore.webservice.helpers.SourceCodeRepoFactory.parseGitUrl) TypeToken(com.google.gson.reflect.TypeToken) SortedSet(java.util.SortedSet) URL(java.net.URL) Date(java.util.Date) Results(io.dockstore.webservice.core.dockerhub.Results) LoggerFactory(org.slf4j.LoggerFactory) CustomWebApplicationException(io.dockstore.webservice.CustomWebApplicationException) HttpStatus(org.apache.http.HttpStatus) GitLabContainerRegistry(io.dockstore.webservice.core.gitlab.GitLabContainerRegistry) Registry(io.dockstore.common.Registry) SourceFile(io.dockstore.webservice.core.SourceFile) Gson(com.google.gson.Gson) Map(java.util.Map) User(io.dockstore.webservice.core.User) DockerHubImage(io.dockstore.webservice.core.dockerhub.DockerHubImage) TagDAO(io.dockstore.webservice.jdbi.TagDAO) Set(java.util.Set) NotNull(javax.validation.constraints.NotNull) Tag(io.dockstore.webservice.core.Tag) Tool(io.dockstore.webservice.core.Tool) Collectors(java.util.stream.Collectors) DockerHubTag(io.dockstore.webservice.core.dockerhub.DockerHubTag) StandardCharsets(java.nio.charset.StandardCharsets) Objects(java.util.Objects) IOUtils(org.apache.commons.io.IOUtils) List(java.util.List) Type(java.lang.reflect.Type) Optional(java.util.Optional) Validation(io.dockstore.webservice.core.Validation) DescriptorLanguage(io.dockstore.common.DescriptorLanguage) VersionTypeValidation(io.dockstore.common.VersionTypeValidation) Image(io.dockstore.webservice.core.Image) HashMap(java.util.HashMap) TreeSet(java.util.TreeSet) ArrayList(java.util.ArrayList) HashSet(java.util.HashSet) LanguageHandlerFactory(io.dockstore.webservice.languages.LanguageHandlerFactory) FileFormatDAO(io.dockstore.webservice.jdbi.FileFormatDAO) Checksum(io.dockstore.webservice.core.Checksum) EventDAO(io.dockstore.webservice.jdbi.EventDAO) Token(io.dockstore.webservice.core.Token) UserDAO(io.dockstore.webservice.jdbi.UserDAO) FileDAO(io.dockstore.webservice.jdbi.FileDAO) ToolDAO(io.dockstore.webservice.jdbi.ToolDAO) Logger(org.slf4j.Logger) Iterator(java.util.Iterator) IOException(java.io.IOException) ToolMode(io.dockstore.webservice.core.ToolMode) Collections(java.util.Collections) User(io.dockstore.webservice.core.User) GitLabTag(io.dockstore.webservice.core.gitlab.GitLabTag) Tag(io.dockstore.webservice.core.Tag) DockerHubTag(io.dockstore.webservice.core.dockerhub.DockerHubTag) Tool(io.dockstore.webservice.core.Tool)

Example 2 with FileFormatDAO

use of io.dockstore.webservice.jdbi.FileFormatDAO in project dockstore by dockstore.

the class AbstractImageRegistry method refreshTool.

@SuppressWarnings("checkstyle:ParameterNumber")
public void refreshTool(final long userId, final UserDAO userDAO, final ToolDAO toolDAO, final TagDAO tagDAO, final FileDAO fileDAO, final FileFormatDAO fileFormatDAO, final Token githubToken, final Token bitbucketToken, final Token gitlabToken, String organization, final EventDAO eventDAO, final String dashboardPrefix, String repository) {
    // Get all the tools based on the found namespaces
    List<Tool> apiTools;
    if (repository != null) {
        apiTools = new ArrayList<>(Collections.singletonList(getToolFromNamespaceAndRepo(organization, repository)));
    } else {
        throw new CustomWebApplicationException("Trying to refresh/register a tool without a repository name", HttpStatus.SC_BAD_REQUEST);
    }
    // Add manual tools to list of api tools
    String registryString = getRegistry().getDockerPath();
    User user = userDAO.findById(userId);
    List<Tool> userRegistryNamespaceRepositoryTools = toolDAO.findByUserRegistryNamespaceRepository(userId, registryString, organization, repository);
    List<Tool> manualTools = userRegistryNamespaceRepositoryTools.stream().filter(tool -> ToolMode.MANUAL_IMAGE_PATH.equals(tool.getMode())).collect(Collectors.toList());
    List<Tool> notManualTools = userRegistryNamespaceRepositoryTools.stream().filter(tool -> !ToolMode.MANUAL_IMAGE_PATH.equals(tool.getMode())).collect(Collectors.toList());
    apiTools.addAll(manualTools);
    // Update api tools with build information
    updateAPIToolsWithBuildInformation(apiTools);
    // Update db tools by copying over from api tools
    List<Tool> newDBTools = updateTools(apiTools, notManualTools, user, toolDAO);
    // Get tags and update for each tool
    for (Tool tool : newDBTools) {
        logToolRefresh(dashboardPrefix, tool);
        List<Tag> toolTags = getTags(tool);
        final SourceCodeRepoInterface sourceCodeRepo = SourceCodeRepoFactory.createSourceCodeRepo(tool.getGitUrl(), bitbucketToken == null ? null : bitbucketToken.getContent(), gitlabToken == null ? null : gitlabToken.getContent(), githubToken);
        updateTags(toolTags, tool, sourceCodeRepo, tagDAO, fileDAO, toolDAO, fileFormatDAO, eventDAO, user);
    }
}
Also used : GitLabTag(io.dockstore.webservice.core.gitlab.GitLabTag) SourceCodeRepoFactory.parseGitUrl(io.dockstore.webservice.helpers.SourceCodeRepoFactory.parseGitUrl) TypeToken(com.google.gson.reflect.TypeToken) SortedSet(java.util.SortedSet) URL(java.net.URL) Date(java.util.Date) Results(io.dockstore.webservice.core.dockerhub.Results) LoggerFactory(org.slf4j.LoggerFactory) CustomWebApplicationException(io.dockstore.webservice.CustomWebApplicationException) HttpStatus(org.apache.http.HttpStatus) GitLabContainerRegistry(io.dockstore.webservice.core.gitlab.GitLabContainerRegistry) Registry(io.dockstore.common.Registry) SourceFile(io.dockstore.webservice.core.SourceFile) Gson(com.google.gson.Gson) Map(java.util.Map) User(io.dockstore.webservice.core.User) DockerHubImage(io.dockstore.webservice.core.dockerhub.DockerHubImage) TagDAO(io.dockstore.webservice.jdbi.TagDAO) Set(java.util.Set) NotNull(javax.validation.constraints.NotNull) Tag(io.dockstore.webservice.core.Tag) Tool(io.dockstore.webservice.core.Tool) Collectors(java.util.stream.Collectors) DockerHubTag(io.dockstore.webservice.core.dockerhub.DockerHubTag) StandardCharsets(java.nio.charset.StandardCharsets) Objects(java.util.Objects) IOUtils(org.apache.commons.io.IOUtils) List(java.util.List) Type(java.lang.reflect.Type) Optional(java.util.Optional) Validation(io.dockstore.webservice.core.Validation) DescriptorLanguage(io.dockstore.common.DescriptorLanguage) VersionTypeValidation(io.dockstore.common.VersionTypeValidation) Image(io.dockstore.webservice.core.Image) HashMap(java.util.HashMap) TreeSet(java.util.TreeSet) ArrayList(java.util.ArrayList) HashSet(java.util.HashSet) LanguageHandlerFactory(io.dockstore.webservice.languages.LanguageHandlerFactory) FileFormatDAO(io.dockstore.webservice.jdbi.FileFormatDAO) Checksum(io.dockstore.webservice.core.Checksum) EventDAO(io.dockstore.webservice.jdbi.EventDAO) Token(io.dockstore.webservice.core.Token) UserDAO(io.dockstore.webservice.jdbi.UserDAO) FileDAO(io.dockstore.webservice.jdbi.FileDAO) ToolDAO(io.dockstore.webservice.jdbi.ToolDAO) Logger(org.slf4j.Logger) Iterator(java.util.Iterator) IOException(java.io.IOException) ToolMode(io.dockstore.webservice.core.ToolMode) Collections(java.util.Collections) User(io.dockstore.webservice.core.User) CustomWebApplicationException(io.dockstore.webservice.CustomWebApplicationException) GitLabTag(io.dockstore.webservice.core.gitlab.GitLabTag) Tag(io.dockstore.webservice.core.Tag) DockerHubTag(io.dockstore.webservice.core.dockerhub.DockerHubTag) Tool(io.dockstore.webservice.core.Tool)

Example 3 with FileFormatDAO

use of io.dockstore.webservice.jdbi.FileFormatDAO in project dockstore by dockstore.

the class AbstractImageRegistry method updateTags.

/**
 * Updates/Adds/Deletes tags for a specific tool
 *
 * @param newTags
 * @param tool
 * @param tagDAO
 * @param fileDAO
 * @param toolDAO
 */
@SuppressWarnings("checkstyle:ParameterNumber")
private void updateTags(List<Tag> newTags, @NotNull Tool tool, SourceCodeRepoInterface sourceCodeRepoInterface, final TagDAO tagDAO, final FileDAO fileDAO, final ToolDAO toolDAO, final FileFormatDAO fileFormatDAO, final EventDAO eventDAO, final User user) {
    // Get all existing tags
    List<Tag> existingTags = new ArrayList<>(tool.getWorkflowVersions());
    if (tool.getMode() != ToolMode.MANUAL_IMAGE_PATH || (tool.getRegistry().equals(Registry.QUAY_IO.getDockerPath()) && existingTags.isEmpty())) {
        if (newTags == null) {
            LOG.info(tool.getToolPath() + " : Tags for tool {} did not get updated because new tags were not found", tool.getPath());
            return;
        }
        List<Tag> toDelete = new ArrayList<>(0);
        for (Iterator<Tag> iterator = existingTags.iterator(); iterator.hasNext(); ) {
            Tag oldTag = iterator.next();
            boolean exists = false;
            for (Tag newTag : newTags) {
                if (newTag.getName().equals(oldTag.getName())) {
                    exists = true;
                    break;
                }
            }
            if (!exists) {
                toDelete.add(oldTag);
                iterator.remove();
            }
        }
        for (Tag newTag : newTags) {
            boolean exists = false;
            // Find if user already has the tag
            for (Tag oldTag : existingTags) {
                if (newTag.getName().equals(oldTag.getName())) {
                    exists = true;
                    updateImageInformation(tool, newTag, oldTag);
                    oldTag.update(newTag);
                    // Update tag with default paths if dirty bit not set
                    if (!oldTag.isDirtyBit()) {
                        // Has not been modified => set paths
                        oldTag.setCwlPath(tool.getDefaultCwlPath());
                        oldTag.setWdlPath(tool.getDefaultWdlPath());
                        oldTag.setDockerfilePath(tool.getDefaultDockerfilePath());
                        // TODO: keep an eye on this, this used to always create new test params no matter what
                        if (tool.getDefaultTestCwlParameterFile() != null && oldTag.getSourceFiles().stream().noneMatch(file -> file.getPath().equals(tool.getDefaultTestCwlParameterFile()))) {
                            oldTag.getSourceFiles().add(createSourceFile(tool.getDefaultTestCwlParameterFile(), DescriptorLanguage.FileType.CWL_TEST_JSON));
                        }
                        if (tool.getDefaultTestWdlParameterFile() != null && oldTag.getSourceFiles().stream().noneMatch(file -> file.getPath().equals(tool.getDefaultTestWdlParameterFile()))) {
                            oldTag.getSourceFiles().add(createSourceFile(tool.getDefaultTestWdlParameterFile(), DescriptorLanguage.FileType.WDL_TEST_JSON));
                        }
                    }
                    break;
                }
            }
            // Tag does not already exist
            if (!exists) {
                // this could result in the same tag being added to multiple containers with the same path, need to clone
                Tag clonedTag = new Tag();
                clonedTag.clone(newTag);
                clonedTag.getImages().addAll(newTag.getImages());
                if (tool.getDefaultTestCwlParameterFile() != null) {
                    clonedTag.getSourceFiles().add(createSourceFile(tool.getDefaultTestCwlParameterFile(), DescriptorLanguage.FileType.CWL_TEST_JSON));
                }
                if (tool.getDefaultTestWdlParameterFile() != null) {
                    clonedTag.getSourceFiles().add(createSourceFile(tool.getDefaultTestWdlParameterFile(), DescriptorLanguage.FileType.WDL_TEST_JSON));
                }
                existingTags.add(clonedTag);
            }
        }
        boolean allAutomated = true;
        for (Tag tag : existingTags) {
            // create and add a tag if it does not already exist
            if (!tool.getWorkflowVersions().contains(tag)) {
                LOG.info(tool.getToolPath() + " : Updating tag {}", tag.getName());
                tag.setParent(tool);
                long id = tagDAO.create(tag);
                tag = tagDAO.findById(id);
                eventDAO.createAddTagToEntryEvent(user, tool, tag);
                tool.addWorkflowVersion(tag);
                if (!tag.isAutomated()) {
                    allAutomated = false;
                }
            }
        }
        // delete tool if it has no users
        deleteToolWithNoUsers(tool, toDelete);
        if (tool.getMode() != ToolMode.MANUAL_IMAGE_PATH) {
            if (allAutomated) {
                tool.setMode(ToolMode.AUTO_DETECT_QUAY_TAGS_AUTOMATED_BUILDS);
            } else {
                tool.setMode(ToolMode.AUTO_DETECT_QUAY_TAGS_WITH_MIXED);
            }
        }
    }
    // For tools from dockerhub, grab/update the image and checksum information
    if (tool.getRegistry().equals(Registry.DOCKER_HUB.getDockerPath()) || tool.getRegistry().equals(Registry.GITLAB.getDockerPath())) {
        updateNonQuayImageInformation(newTags, tool, existingTags);
    }
    // Now grab default/main tag to grab general information (defaults to github/bitbucket "main branch")
    if (sourceCodeRepoInterface != null) {
        // Grab files for each version/tag and check if valid
        Set<Tag> tags = tool.getWorkflowVersions();
        for (Tag tag : tags) {
            // check to see whether the commit id has changed
            // TODO: calls validation eventually, may simplify if we take into account metadata parsing below
            updateFiles(tool, tag, fileDAO, sourceCodeRepoInterface, sourceCodeRepoInterface.gitUsername);
        // Grab and parse files to get tool information
        // Add for new descriptor types
        }
        if (tool.getDefaultCwlPath() != null) {
            LOG.info(tool.getToolPath() + " " + sourceCodeRepoInterface.gitUsername + " : Parsing CWL...");
            sourceCodeRepoInterface.updateEntryMetadata(tool, DescriptorLanguage.CWL);
        }
        if (tool.getDefaultWdlPath() != null) {
            LOG.info(tool.getToolPath() + " " + sourceCodeRepoInterface.gitUsername + " : Parsing WDL...");
            sourceCodeRepoInterface.updateEntryMetadata(tool, DescriptorLanguage.WDL);
        }
    }
    FileFormatHelper.updateFileFormats(tool, tool.getWorkflowVersions(), fileFormatDAO, true);
    // ensure updated tags are saved to the database, not sure why this is necessary. See GeneralIT#testImageIDUpdateDuringRefresh
    tool.getWorkflowVersions().forEach(tagDAO::create);
    toolDAO.create(tool);
}
Also used : GitLabTag(io.dockstore.webservice.core.gitlab.GitLabTag) SourceCodeRepoFactory.parseGitUrl(io.dockstore.webservice.helpers.SourceCodeRepoFactory.parseGitUrl) TypeToken(com.google.gson.reflect.TypeToken) SortedSet(java.util.SortedSet) URL(java.net.URL) Date(java.util.Date) Results(io.dockstore.webservice.core.dockerhub.Results) LoggerFactory(org.slf4j.LoggerFactory) CustomWebApplicationException(io.dockstore.webservice.CustomWebApplicationException) HttpStatus(org.apache.http.HttpStatus) GitLabContainerRegistry(io.dockstore.webservice.core.gitlab.GitLabContainerRegistry) Registry(io.dockstore.common.Registry) SourceFile(io.dockstore.webservice.core.SourceFile) Gson(com.google.gson.Gson) Map(java.util.Map) User(io.dockstore.webservice.core.User) DockerHubImage(io.dockstore.webservice.core.dockerhub.DockerHubImage) TagDAO(io.dockstore.webservice.jdbi.TagDAO) Set(java.util.Set) NotNull(javax.validation.constraints.NotNull) Tag(io.dockstore.webservice.core.Tag) Tool(io.dockstore.webservice.core.Tool) Collectors(java.util.stream.Collectors) DockerHubTag(io.dockstore.webservice.core.dockerhub.DockerHubTag) StandardCharsets(java.nio.charset.StandardCharsets) Objects(java.util.Objects) IOUtils(org.apache.commons.io.IOUtils) List(java.util.List) Type(java.lang.reflect.Type) Optional(java.util.Optional) Validation(io.dockstore.webservice.core.Validation) DescriptorLanguage(io.dockstore.common.DescriptorLanguage) VersionTypeValidation(io.dockstore.common.VersionTypeValidation) Image(io.dockstore.webservice.core.Image) HashMap(java.util.HashMap) TreeSet(java.util.TreeSet) ArrayList(java.util.ArrayList) HashSet(java.util.HashSet) LanguageHandlerFactory(io.dockstore.webservice.languages.LanguageHandlerFactory) FileFormatDAO(io.dockstore.webservice.jdbi.FileFormatDAO) Checksum(io.dockstore.webservice.core.Checksum) EventDAO(io.dockstore.webservice.jdbi.EventDAO) Token(io.dockstore.webservice.core.Token) UserDAO(io.dockstore.webservice.jdbi.UserDAO) FileDAO(io.dockstore.webservice.jdbi.FileDAO) ToolDAO(io.dockstore.webservice.jdbi.ToolDAO) Logger(org.slf4j.Logger) Iterator(java.util.Iterator) IOException(java.io.IOException) ToolMode(io.dockstore.webservice.core.ToolMode) Collections(java.util.Collections) ArrayList(java.util.ArrayList) GitLabTag(io.dockstore.webservice.core.gitlab.GitLabTag) Tag(io.dockstore.webservice.core.Tag) DockerHubTag(io.dockstore.webservice.core.dockerhub.DockerHubTag)

Example 4 with FileFormatDAO

use of io.dockstore.webservice.jdbi.FileFormatDAO in project dockstore by dockstore.

the class FileFormatHelper method updateFileFormats.

/**
 * Updates the given tool/workflow to show which file formats are associated with its sourcefiles
 * @param entry The tool or workflow to update
 * @param versions  A tool/workflow's versions (tags/workflowVersions)
 * @param fileFormatDAO  The FileFormatDAO to check the FileFormat table
 * @param updateAllVersions If updating all versions, then this will clear the entry's input/output formats and reset them. Otherwise it will only add the file formats
 */
public static void updateFileFormats(Entry entry, Set<? extends Version> versions, final FileFormatDAO fileFormatDAO, boolean updateAllVersions) {
    SortedSet<FileFormat> entrysInputFileFormats = new TreeSet<>();
    SortedSet<FileFormat> entrysOutputFileFormats = new TreeSet<>();
    CWLHandler cwlHandler = new CWLHandler();
    versions.stream().filter(tag -> !((Version) tag).isFrozen()).forEach(tag -> {
        SortedSet<FileFormat> inputFileFormats = new TreeSet<>();
        SortedSet<FileFormat> outputFileFormats = new TreeSet<>();
        SortedSet<SourceFile> sourceFiles = tag.getSourceFiles();
        List<SourceFile> cwlFiles = sourceFiles.stream().filter(sourceFile -> sourceFile.getType() == DescriptorLanguage.FileType.DOCKSTORE_CWL).collect(Collectors.toList());
        cwlFiles.stream().filter(cwlFile -> cwlFile.getContent() != null).forEach(cwlFile -> {
            inputFileFormats.addAll(cwlHandler.getFileFormats(cwlFile.getContent(), "inputs"));
            outputFileFormats.addAll(cwlHandler.getFileFormats(cwlFile.getContent(), "outputs"));
        });
        SortedSet<FileFormat> realInputFileFormats = getFileFormatsFromDatabase(fileFormatDAO, inputFileFormats);
        SortedSet<FileFormat> realOutputFileFormats = getFileFormatsFromDatabase(fileFormatDAO, outputFileFormats);
        tag.setInputFileFormats(realInputFileFormats);
        tag.setOutputFileFormats(realOutputFileFormats);
        entrysInputFileFormats.addAll(realInputFileFormats);
        entrysOutputFileFormats.addAll(realOutputFileFormats);
    });
    if (updateAllVersions) {
        entry.getInputFileFormats().clear();
        entry.getOutputFileFormats().clear();
    }
    entry.getInputFileFormats().addAll(entrysInputFileFormats);
    entry.getOutputFileFormats().addAll(entrysOutputFileFormats);
}
Also used : DescriptorLanguage(io.dockstore.common.DescriptorLanguage) CWLHandler(io.dockstore.webservice.languages.CWLHandler) Logger(org.slf4j.Logger) SortedSet(java.util.SortedSet) MessageDigest(java.security.MessageDigest) LoggerFactory(org.slf4j.LoggerFactory) Set(java.util.Set) Collectors(java.util.stream.Collectors) StandardCharsets(java.nio.charset.StandardCharsets) TreeSet(java.util.TreeSet) SourceFile(io.dockstore.webservice.core.SourceFile) List(java.util.List) Version(io.dockstore.webservice.core.Version) Entry(io.dockstore.webservice.core.Entry) NoSuchAlgorithmException(java.security.NoSuchAlgorithmException) FileFormatDAO(io.dockstore.webservice.jdbi.FileFormatDAO) Optional(java.util.Optional) DatatypeConverter(javax.xml.bind.DatatypeConverter) FileFormat(io.dockstore.webservice.core.FileFormat) CWLHandler(io.dockstore.webservice.languages.CWLHandler) TreeSet(java.util.TreeSet) SourceFile(io.dockstore.webservice.core.SourceFile) FileFormat(io.dockstore.webservice.core.FileFormat)

Aggregations

DescriptorLanguage (io.dockstore.common.DescriptorLanguage)4 SourceFile (io.dockstore.webservice.core.SourceFile)4 FileFormatDAO (io.dockstore.webservice.jdbi.FileFormatDAO)4 StandardCharsets (java.nio.charset.StandardCharsets)4 List (java.util.List)4 Optional (java.util.Optional)4 Set (java.util.Set)4 SortedSet (java.util.SortedSet)4 TreeSet (java.util.TreeSet)4 Collectors (java.util.stream.Collectors)4 Logger (org.slf4j.Logger)4 LoggerFactory (org.slf4j.LoggerFactory)4 Gson (com.google.gson.Gson)3 TypeToken (com.google.gson.reflect.TypeToken)3 Registry (io.dockstore.common.Registry)3 VersionTypeValidation (io.dockstore.common.VersionTypeValidation)3 CustomWebApplicationException (io.dockstore.webservice.CustomWebApplicationException)3 Checksum (io.dockstore.webservice.core.Checksum)3 Image (io.dockstore.webservice.core.Image)3 Tag (io.dockstore.webservice.core.Tag)3