Class SolutionsResourceImpl
- java.lang.Object
-
- com.artisol.teneo.studio.client.resources.AbstractResource
-
- com.artisol.teneo.studio.client.resources.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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UUID
beginCreateSolution(InputStream inputStream, com.artisol.teneo.studio.api.models.Solution solution, boolean keepId, UUID templateId)
UUID
beginExportSolution(UUID solutionId)
UUID
beginUpdateSolution(UUID solutionId, InputStream inputStream, com.artisol.teneo.studio.api.models.Solution solution)
void
deleteSolution(UUID solutionId)
InputStream
getExportSolutionResult(UUID taskId)
com.artisol.teneo.studio.api.models.SolutionProperties
getProperties(UUID solutionId)
com.artisol.teneo.studio.api.models.SolutionProperties
getPropertiesVersion(UUID solutionId, String version)
com.artisol.teneo.studio.api.models.Solution
getSolution(UUID solutionId)
List<com.artisol.teneo.studio.api.models.User>
getSolutionOwners(UUID solutionId)
List<com.artisol.teneo.studio.api.models.Solution>
getSolutions(boolean owned)
com.artisol.teneo.studio.api.models.SolutionStatistics
getSolutionStatistics(UUID solutionId)
Collection<com.artisol.teneo.studio.api.models.reports.Report>
getSolutionTaskResult(UUID taskId)
com.artisol.teneo.studio.api.models.SolutionProperties
updateProperties(UUID solutionId, com.artisol.teneo.studio.api.models.SolutionProperties solutionProperties)
List<com.artisol.teneo.studio.api.models.User>
updateSolutionOwners(UUID solutionId, List<UUID> solutionOwners)
-
-
-
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 interfacecom.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 interfacecom.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 interfacecom.artisol.teneo.studio.api.resources.SolutionsResource
- Throws:
com.artisol.teneo.studio.api.exceptions.ResourceException
-
getSolutionTaskResult
public Collection<com.artisol.teneo.studio.api.models.reports.Report> getSolutionTaskResult(UUID taskId) throws com.artisol.teneo.studio.api.exceptions.ResourceException
- Specified by:
getSolutionTaskResult
in interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.artisol.teneo.studio.api.resources.SolutionsResource
- Throws:
com.artisol.teneo.studio.api.exceptions.ResourceException
-
-