Class LibrariesResourceImpl
- java.lang.Object
-
- com.artisol.teneo.studio.client.resources.AbstractResource
-
- com.artisol.teneo.studio.client.resources.LibrariesResourceImpl
-
- All Implemented Interfaces:
com.artisol.teneo.studio.api.resources.LibrariesResource
public class LibrariesResourceImpl extends AbstractResource implements com.artisol.teneo.studio.api.resources.LibrariesResource
-
-
Field Summary
-
Fields inherited from interface com.artisol.teneo.studio.api.resources.LibrariesResource
DELETE_LIBRARY_PATH, GET_ASSIGNMENTS_PATH, GET_ENTITY_PATH, GET_ENTITY_SUMMARY, GET_EXPORT_RESULT_PATH, GET_FOLDER_PATH, GET_FOLDER_SUMMARY, GET_LANGUAGE_OBJECT_PATH, GET_LANGUAGE_OBJECT_SUMMARY, GET_LIBRARIES_PATH, GET_LIBRARY_PATH, GET_ROOT_FOLDER_PATH, GET_ROOT_FOLDER_SUMMARY, GET_SOLUTION_LIBRARIES_PATH, GET_SOLUTION_LIBRARIES_VERSION_PATH, PATH, POST_EXPORT_LIBRARY_BEGIN_PATH, POST_IMPORT_LIBRARY_BEGIN_PATH, PUT_SOLUTION_LIBRARIES_PATH
-
-
Constructor Summary
Constructors Constructor Description LibrariesResourceImpl(javax.ws.rs.client.WebTarget webTarget)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UUID
beginExportLibrary(UUID solutionId, String libraryVersion)
UUID
beginImportLibrary(InputStream file)
void
deleteLibrary(UUID libraryId, String libraryVersion)
List<com.artisol.teneo.studio.api.models.LibraryAssignment>
getAssignments(UUID libraryId, String libraryVersion)
com.artisol.teneo.studio.api.models.Entity
getEntity(UUID libraryId, String libraryVersion, UUID entityId)
InputStream
getExportLibraryResult(UUID taskId)
com.artisol.teneo.studio.api.models.LibraryFolder
getFolder(UUID libraryId, String libraryVersion)
com.artisol.teneo.studio.api.models.LibraryFolder
getFolder(UUID libraryId, String libraryVersion, UUID folderId)
com.artisol.teneo.studio.api.models.LanguageObject
getLanguageObject(UUID libraryId, String libraryVersion, UUID languageObjectId)
List<com.artisol.teneo.studio.api.models.Library>
getLibraries(String language)
com.artisol.teneo.studio.api.models.Library
getLibrary(UUID libraryId, String libraryVersion)
com.artisol.teneo.studio.api.models.SolutionLibraries
getSolutionLibraries(UUID solutionId)
com.artisol.teneo.studio.api.models.SolutionLibraries
getSolutionLibrariesVersion(UUID solutionId, String version)
com.artisol.teneo.studio.api.models.SolutionLibraries
updateSolutionLibraries(UUID solutionId, com.artisol.teneo.studio.api.models.SolutionLibraries solutionLibraries)
-
-
-
Method Detail
-
getLibraries
public List<com.artisol.teneo.studio.api.models.Library> getLibraries(String language) throws com.artisol.teneo.studio.api.exceptions.ResourceException
- Specified by:
getLibraries
in interfacecom.artisol.teneo.studio.api.resources.LibrariesResource
- Throws:
com.artisol.teneo.studio.api.exceptions.ResourceException
-
getLibrary
public com.artisol.teneo.studio.api.models.Library getLibrary(UUID libraryId, String libraryVersion) throws com.artisol.teneo.studio.api.exceptions.ResourceException
- Specified by:
getLibrary
in interfacecom.artisol.teneo.studio.api.resources.LibrariesResource
- Throws:
com.artisol.teneo.studio.api.exceptions.ResourceException
-
beginImportLibrary
public UUID beginImportLibrary(InputStream file) throws com.artisol.teneo.studio.api.exceptions.ResourceException
- Specified by:
beginImportLibrary
in interfacecom.artisol.teneo.studio.api.resources.LibrariesResource
- Throws:
com.artisol.teneo.studio.api.exceptions.ResourceException
-
beginExportLibrary
public UUID beginExportLibrary(UUID solutionId, String libraryVersion) throws com.artisol.teneo.studio.api.exceptions.ResourceException
- Specified by:
beginExportLibrary
in interfacecom.artisol.teneo.studio.api.resources.LibrariesResource
- Throws:
com.artisol.teneo.studio.api.exceptions.ResourceException
-
getExportLibraryResult
public InputStream getExportLibraryResult(UUID taskId) throws com.artisol.teneo.studio.api.exceptions.ResourceException
- Specified by:
getExportLibraryResult
in interfacecom.artisol.teneo.studio.api.resources.LibrariesResource
- Throws:
com.artisol.teneo.studio.api.exceptions.ResourceException
-
deleteLibrary
public void deleteLibrary(UUID libraryId, String libraryVersion) throws com.artisol.teneo.studio.api.exceptions.ResourceException
- Specified by:
deleteLibrary
in interfacecom.artisol.teneo.studio.api.resources.LibrariesResource
- Throws:
com.artisol.teneo.studio.api.exceptions.ResourceException
-
getFolder
public com.artisol.teneo.studio.api.models.LibraryFolder getFolder(UUID libraryId, String libraryVersion) throws com.artisol.teneo.studio.api.exceptions.ResourceException
- Specified by:
getFolder
in interfacecom.artisol.teneo.studio.api.resources.LibrariesResource
- Throws:
com.artisol.teneo.studio.api.exceptions.ResourceException
-
getFolder
public com.artisol.teneo.studio.api.models.LibraryFolder getFolder(UUID libraryId, String libraryVersion, UUID folderId) throws com.artisol.teneo.studio.api.exceptions.ResourceException
- Specified by:
getFolder
in interfacecom.artisol.teneo.studio.api.resources.LibrariesResource
- Throws:
com.artisol.teneo.studio.api.exceptions.ResourceException
-
getEntity
public com.artisol.teneo.studio.api.models.Entity getEntity(UUID libraryId, String libraryVersion, UUID entityId) throws com.artisol.teneo.studio.api.exceptions.ResourceException
- Specified by:
getEntity
in interfacecom.artisol.teneo.studio.api.resources.LibrariesResource
- Throws:
com.artisol.teneo.studio.api.exceptions.ResourceException
-
getLanguageObject
public com.artisol.teneo.studio.api.models.LanguageObject getLanguageObject(UUID libraryId, String libraryVersion, UUID languageObjectId) throws com.artisol.teneo.studio.api.exceptions.ResourceException
- Specified by:
getLanguageObject
in interfacecom.artisol.teneo.studio.api.resources.LibrariesResource
- Throws:
com.artisol.teneo.studio.api.exceptions.ResourceException
-
getAssignments
public List<com.artisol.teneo.studio.api.models.LibraryAssignment> getAssignments(UUID libraryId, String libraryVersion) throws com.artisol.teneo.studio.api.exceptions.ResourceException
- Specified by:
getAssignments
in interfacecom.artisol.teneo.studio.api.resources.LibrariesResource
- Throws:
com.artisol.teneo.studio.api.exceptions.ResourceException
-
getSolutionLibraries
public com.artisol.teneo.studio.api.models.SolutionLibraries getSolutionLibraries(UUID solutionId) throws com.artisol.teneo.studio.api.exceptions.ResourceException
- Specified by:
getSolutionLibraries
in interfacecom.artisol.teneo.studio.api.resources.LibrariesResource
- Throws:
com.artisol.teneo.studio.api.exceptions.ResourceException
-
getSolutionLibrariesVersion
public com.artisol.teneo.studio.api.models.SolutionLibraries getSolutionLibrariesVersion(UUID solutionId, String version) throws com.artisol.teneo.studio.api.exceptions.ResourceException
- Specified by:
getSolutionLibrariesVersion
in interfacecom.artisol.teneo.studio.api.resources.LibrariesResource
- Throws:
com.artisol.teneo.studio.api.exceptions.ResourceException
-
updateSolutionLibraries
public com.artisol.teneo.studio.api.models.SolutionLibraries updateSolutionLibraries(UUID solutionId, com.artisol.teneo.studio.api.models.SolutionLibraries solutionLibraries) throws com.artisol.teneo.studio.api.exceptions.ResourceException
- Specified by:
updateSolutionLibraries
in interfacecom.artisol.teneo.studio.api.resources.LibrariesResource
- Throws:
com.artisol.teneo.studio.api.exceptions.ResourceException
-
-