Class IridaWorkflowsConfig

    • Constructor Detail

      • IridaWorkflowsConfig

        public IridaWorkflowsConfig()
    • Method Detail

      • iridaWorkflowTypesPath

        @Bean
        public java.nio.file.Path iridaWorkflowTypesPath()
                                                  throws java.net.URISyntaxException
        Gets the Path for all IRIDA workflow types.
        Returns:
        The Path for all IRIDA workflow types.
        Throws:
        java.net.URISyntaxException - if the path is not a valid uri.
      • iridaPipelinePluginStyle

        @Bean(name="iridaPipelinePluginStyle")
        public java.lang.String iridaPipelinePluginStyle()
        Gets a String containing pipeline plugin styles (CSS).
        Returns:
        A CSS String containing pipeline plugin styles.
      • iridaWorkflows

        @Bean
        public IridaWorkflowSet iridaWorkflows​(java.nio.file.Path iridaWorkflowTypesPath)
                                        throws java.io.IOException,
                                               IridaWorkflowLoadException,
                                               IridaPluginException
        Builds a set of workflows to load up into IRIDA.
        Parameters:
        iridaWorkflowTypesPath - The parent directory containing sub-directories for all IRIDA workflow types.
        Returns:
        A set of workflows to load into IRIDA.
        Throws:
        java.io.IOException - If an I/O error occured.
        IridaWorkflowLoadException - If there was an issue loading a specific workflow.
        IridaPluginException - If there was an issue when loading pipeline plugin workflows.
      • defaultIridaWorkflows

        @Bean
        public IridaWorkflowIdSet defaultIridaWorkflows()
        A set of workflow ids to use as defaults.
        Returns:
        A set of workflow ids to use as defaults.
      • workflowDescriptionUnmarshaller

        @Bean
        public org.springframework.oxm.Unmarshaller workflowDescriptionUnmarshaller()
        Sets up an Unmarshaller for workflow objects.
        Returns:
        An Unmarshaller for workflow objects.
      • iridaWorkflowLoaderService

        @Bean
        public IridaWorkflowLoaderService iridaWorkflowLoaderService()
        Constructs a service for loading up workflows for IRIDA.
        Returns:
        A service for loading workflows for IRIDA.