Class SolutionsResourceImpl

  • All Implemented Interfaces:
    com.artisol.teneo.studio.api.resources.SolutionsResource

    public class SolutionsResourceImpl
    extends AbstractResource
    implements com.artisol.teneo.studio.api.resources.SolutionsResource
    • Field Summary

      • Fields inherited from interface com.artisol.teneo.studio.api.resources.SolutionsResource

        DELETE_SOLUTION_PATH, DELETE_SOLUTION_SUMMARY, GET_EXPORT_RESULT_PATH, GET_EXPORT_RESULT_SUMMARY, GET_OWNERS_PATH, GET_OWNERS_SUMMARY, GET_PROPERTIES_PATH, GET_PROPERTIES_SUMMARY, GET_PROPERTIES_VERSION_PATH, GET_PROPERTIES_VERSION_SUMMARY, GET_SOLUTION_PATH, GET_SOLUTION_SUMMARY, GET_SOLUTION_TASK_RESULT_PATH, GET_SOLUTION_TASK_RESULT_SUMMARY, GET_SOLUTIONS_PATH, GET_SOLUTIONS_SUMMARY, GET_STATISTICS_PATH, GET_STATISTICS_SUMMARY, PATH, POST_EXPORT_BEGIN_PATH, POST_EXPORT_BEGIN_SUMMARY, POST_SOLUTION_PATH, POST_SOLUTION_SUMMARY, PUT_OWNERS_PATH, PUT_OWNERS_SUMMARY, PUT_PROPERTIES_PATH, PUT_PROPERTIES_SUMMARY, PUT_SOLUTION_PATH, PUT_SOLUTION_SUMMARY
    • Constructor Summary

      Constructors 
      Constructor Description
      SolutionsResourceImpl​(javax.ws.rs.client.WebTarget webTarget)  
    • Constructor Detail

      • SolutionsResourceImpl

        public SolutionsResourceImpl​(javax.ws.rs.client.WebTarget webTarget)
    • Method Detail

      • getSolutions

        public List<com.artisol.teneo.studio.api.models.Solution> getSolutions​(boolean owned)
                                                                        throws com.artisol.teneo.studio.api.exceptions.ResourceException
        Specified by:
        getSolutions in interface com.artisol.teneo.studio.api.resources.SolutionsResource
        Throws:
        com.artisol.teneo.studio.api.exceptions.ResourceException
      • getSolution

        public com.artisol.teneo.studio.api.models.Solution getSolution​(UUID solutionId)
                                                                 throws com.artisol.teneo.studio.api.exceptions.ResourceException
        Specified by:
        getSolution in interface com.artisol.teneo.studio.api.resources.SolutionsResource
        Throws:
        com.artisol.teneo.studio.api.exceptions.ResourceException
      • beginCreateSolution

        public UUID beginCreateSolution​(InputStream inputStream,
                                        com.artisol.teneo.studio.api.models.Solution solution,
                                        boolean keepId,
                                        UUID templateId)
                                 throws com.artisol.teneo.studio.api.exceptions.ResourceException
        Specified by:
        beginCreateSolution in interface com.artisol.teneo.studio.api.resources.SolutionsResource
        Throws:
        com.artisol.teneo.studio.api.exceptions.ResourceException
      • getSolutionTaskResult

        public Collection<com.artisol.teneo.studio.api.models.SuccessReport> getSolutionTaskResult​(UUID taskId)
                                                                                            throws com.artisol.teneo.studio.api.exceptions.ResourceException
        Specified by:
        getSolutionTaskResult in interface com.artisol.teneo.studio.api.resources.SolutionsResource
        Throws:
        com.artisol.teneo.studio.api.exceptions.ResourceException
      • beginUpdateSolution

        public UUID beginUpdateSolution​(UUID solutionId,
                                        InputStream inputStream,
                                        com.artisol.teneo.studio.api.models.Solution solution)
                                 throws com.artisol.teneo.studio.api.exceptions.ResourceException
        Specified by:
        beginUpdateSolution in interface com.artisol.teneo.studio.api.resources.SolutionsResource
        Throws:
        com.artisol.teneo.studio.api.exceptions.ResourceException
      • deleteSolution

        public void deleteSolution​(UUID solutionId)
                            throws com.artisol.teneo.studio.api.exceptions.ResourceException
        Specified by:
        deleteSolution in interface com.artisol.teneo.studio.api.resources.SolutionsResource
        Throws:
        com.artisol.teneo.studio.api.exceptions.ResourceException
      • getProperties

        public com.artisol.teneo.studio.api.models.SolutionProperties getProperties​(UUID solutionId)
                                                                             throws com.artisol.teneo.studio.api.exceptions.ResourceException
        Specified by:
        getProperties in interface com.artisol.teneo.studio.api.resources.SolutionsResource
        Throws:
        com.artisol.teneo.studio.api.exceptions.ResourceException
      • getPropertiesVersion

        public com.artisol.teneo.studio.api.models.SolutionProperties getPropertiesVersion​(UUID solutionId,
                                                                                           String version)
                                                                                    throws com.artisol.teneo.studio.api.exceptions.ResourceException
        Specified by:
        getPropertiesVersion in interface com.artisol.teneo.studio.api.resources.SolutionsResource
        Throws:
        com.artisol.teneo.studio.api.exceptions.ResourceException
      • updateProperties

        public com.artisol.teneo.studio.api.models.SolutionProperties updateProperties​(UUID solutionId,
                                                                                       com.artisol.teneo.studio.api.models.SolutionProperties solutionProperties)
                                                                                throws com.artisol.teneo.studio.api.exceptions.ResourceException
        Specified by:
        updateProperties in interface com.artisol.teneo.studio.api.resources.SolutionsResource
        Throws:
        com.artisol.teneo.studio.api.exceptions.ResourceException
      • getSolutionStatistics

        public com.artisol.teneo.studio.api.models.SolutionStatistics getSolutionStatistics​(UUID solutionId)
                                                                                     throws com.artisol.teneo.studio.api.exceptions.ResourceException
        Specified by:
        getSolutionStatistics in interface com.artisol.teneo.studio.api.resources.SolutionsResource
        Throws:
        com.artisol.teneo.studio.api.exceptions.ResourceException
      • getSolutionOwners

        public List<com.artisol.teneo.studio.api.models.User> getSolutionOwners​(UUID solutionId)
                                                                         throws com.artisol.teneo.studio.api.exceptions.ResourceException
        Specified by:
        getSolutionOwners in interface com.artisol.teneo.studio.api.resources.SolutionsResource
        Throws:
        com.artisol.teneo.studio.api.exceptions.ResourceException
      • updateSolutionOwners

        public List<com.artisol.teneo.studio.api.models.User> updateSolutionOwners​(UUID solutionId,
                                                                                   List<UUID> solutionOwners)
                                                                            throws com.artisol.teneo.studio.api.exceptions.ResourceException
        Specified by:
        updateSolutionOwners in interface com.artisol.teneo.studio.api.resources.SolutionsResource
        Throws:
        com.artisol.teneo.studio.api.exceptions.ResourceException
      • beginExportSolution

        public UUID beginExportSolution​(UUID solutionId)
                                 throws com.artisol.teneo.studio.api.exceptions.ResourceException
        Specified by:
        beginExportSolution in interface com.artisol.teneo.studio.api.resources.SolutionsResource
        Throws:
        com.artisol.teneo.studio.api.exceptions.ResourceException
      • getExportSolutionResult

        public InputStream getExportSolutionResult​(UUID taskId)
                                            throws com.artisol.teneo.studio.api.exceptions.ResourceException
        Specified by:
        getExportSolutionResult in interface com.artisol.teneo.studio.api.resources.SolutionsResource
        Throws:
        com.artisol.teneo.studio.api.exceptions.ResourceException