Class FileResourcesResourceImpl
- java.lang.Object
-
- com.artisol.teneo.studio.client.resources.AbstractResource
-
- com.artisol.teneo.studio.client.resources.FileResourcesResourceImpl
-
- All Implemented Interfaces:
com.artisol.teneo.studio.api.resources.FileResourcesResource
public class FileResourcesResourceImpl extends AbstractResource implements com.artisol.teneo.studio.api.resources.FileResourcesResource
-
-
Field Summary
-
Fields inherited from interface com.artisol.teneo.studio.api.resources.FileResourcesResource
DELETE_FILE_RESOURCE_PATH, DELETE_FILE_RESOURCE_SUMMARY, GET_FILE_RESOURCE_CONTENT_PATH, GET_FILE_RESOURCE_CONTENT_SUMMARY, GET_FILE_RESOURCE_CONTENT_VERSION_PATH, GET_FILE_RESOURCE_CONTENT_VERSION_SUMMARY, GET_FILE_RESOURCE_PATH, GET_FILE_RESOURCE_SUMMARY, GET_FILE_RESOURCE_VERSION_PATH, GET_FILE_RESOURCE_VERSION_SUMMARY, GET_FILE_RESOURCES_PATH, GET_FILE_RESOURCES_SUMMARY, PATH, POST_FILE_RESOURCE_PATH, POST_FILE_RESOURCE_SUMMARY, PUT_FILE_RESOURCE_PATH, PUT_FILE_RESOURCE_SUMMARY
-
-
Constructor Summary
Constructors Constructor Description FileResourcesResourceImpl(javax.ws.rs.client.WebTarget webTarget)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.artisol.teneo.studio.api.models.FileResource
createFileResource(UUID solutionId, InputStream file, com.artisol.teneo.studio.api.models.FileResource fileResource)
void
deleteFileResource(UUID solutionId, UUID fileResourceId)
com.artisol.teneo.studio.api.models.FileResource
getFileResource(UUID solutionId, UUID fileResourceId)
InputStream
getFileResourceContent(UUID solutionId, UUID fileResourceId)
InputStream
getFileResourceContentVersion(UUID solutionId, UUID fileResourceId, String version)
List<com.artisol.teneo.studio.api.models.FileResource>
getFileResources(UUID solutionId)
com.artisol.teneo.studio.api.models.FileResource
getFileResourceVersion(UUID solutionId, UUID fileResourceId, String version)
com.artisol.teneo.studio.api.models.FileResource
updateFileResource(UUID solutionId, UUID fileResourceId, InputStream file, com.artisol.teneo.studio.api.models.FileResource fileResource)
-
-
-
Method Detail
-
getFileResources
public List<com.artisol.teneo.studio.api.models.FileResource> getFileResources(UUID solutionId) throws com.artisol.teneo.studio.api.exceptions.ResourceException
- Specified by:
getFileResources
in interfacecom.artisol.teneo.studio.api.resources.FileResourcesResource
- Throws:
com.artisol.teneo.studio.api.exceptions.ResourceException
-
getFileResource
public com.artisol.teneo.studio.api.models.FileResource getFileResource(UUID solutionId, UUID fileResourceId) throws com.artisol.teneo.studio.api.exceptions.ResourceException
- Specified by:
getFileResource
in interfacecom.artisol.teneo.studio.api.resources.FileResourcesResource
- Throws:
com.artisol.teneo.studio.api.exceptions.ResourceException
-
getFileResourceVersion
public com.artisol.teneo.studio.api.models.FileResource getFileResourceVersion(UUID solutionId, UUID fileResourceId, String version) throws com.artisol.teneo.studio.api.exceptions.ResourceException
- Specified by:
getFileResourceVersion
in interfacecom.artisol.teneo.studio.api.resources.FileResourcesResource
- Throws:
com.artisol.teneo.studio.api.exceptions.ResourceException
-
getFileResourceContent
public InputStream getFileResourceContent(UUID solutionId, UUID fileResourceId) throws com.artisol.teneo.studio.api.exceptions.ResourceException
- Specified by:
getFileResourceContent
in interfacecom.artisol.teneo.studio.api.resources.FileResourcesResource
- Throws:
com.artisol.teneo.studio.api.exceptions.ResourceException
-
getFileResourceContentVersion
public InputStream getFileResourceContentVersion(UUID solutionId, UUID fileResourceId, String version) throws com.artisol.teneo.studio.api.exceptions.ResourceException
- Specified by:
getFileResourceContentVersion
in interfacecom.artisol.teneo.studio.api.resources.FileResourcesResource
- Throws:
com.artisol.teneo.studio.api.exceptions.ResourceException
-
createFileResource
public com.artisol.teneo.studio.api.models.FileResource createFileResource(UUID solutionId, InputStream file, com.artisol.teneo.studio.api.models.FileResource fileResource) throws com.artisol.teneo.studio.api.exceptions.ResourceException
- Specified by:
createFileResource
in interfacecom.artisol.teneo.studio.api.resources.FileResourcesResource
- Throws:
com.artisol.teneo.studio.api.exceptions.ResourceException
-
updateFileResource
public com.artisol.teneo.studio.api.models.FileResource updateFileResource(UUID solutionId, UUID fileResourceId, InputStream file, com.artisol.teneo.studio.api.models.FileResource fileResource) throws com.artisol.teneo.studio.api.exceptions.ResourceException
- Specified by:
updateFileResource
in interfacecom.artisol.teneo.studio.api.resources.FileResourcesResource
- Throws:
com.artisol.teneo.studio.api.exceptions.ResourceException
-
deleteFileResource
public void deleteFileResource(UUID solutionId, UUID fileResourceId) throws com.artisol.teneo.studio.api.exceptions.ResourceException
- Specified by:
deleteFileResource
in interfacecom.artisol.teneo.studio.api.resources.FileResourcesResource
- Throws:
com.artisol.teneo.studio.api.exceptions.ResourceException
-
-