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 UUIDbeginExportLibrary(UUID solutionId, String libraryVersion)UUIDbeginImportLibrary(InputStream file)voiddeleteLibrary(UUID libraryId, String libraryVersion)List<com.artisol.teneo.studio.api.models.LibraryAssignment>getAssignments(UUID libraryId, String libraryVersion)com.artisol.teneo.studio.api.models.EntitygetEntity(UUID libraryId, String libraryVersion, UUID entityId)InputStreamgetExportLibraryResult(UUID taskId)com.artisol.teneo.studio.api.models.LibraryFoldergetFolder(UUID libraryId, String libraryVersion)com.artisol.teneo.studio.api.models.LibraryFoldergetFolder(UUID libraryId, String libraryVersion, UUID folderId)com.artisol.teneo.studio.api.models.LanguageObjectgetLanguageObject(UUID libraryId, String libraryVersion, UUID languageObjectId)List<com.artisol.teneo.studio.api.models.Library>getLibraries(String language)com.artisol.teneo.studio.api.models.LibrarygetLibrary(UUID libraryId, String libraryVersion)com.artisol.teneo.studio.api.models.SolutionLibrariesgetSolutionLibraries(UUID solutionId)com.artisol.teneo.studio.api.models.SolutionLibrariesgetSolutionLibrariesVersion(UUID solutionId, String version)com.artisol.teneo.studio.api.models.SolutionLibrariesupdateSolutionLibraries(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:
getLibrariesin 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:
getLibraryin 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:
beginImportLibraryin 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:
beginExportLibraryin 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:
getExportLibraryResultin 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:
deleteLibraryin 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:
getFolderin 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:
getFolderin 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:
getEntityin 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:
getLanguageObjectin 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:
getAssignmentsin 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:
getSolutionLibrariesin 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:
getSolutionLibrariesVersionin 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:
updateSolutionLibrariesin interfacecom.artisol.teneo.studio.api.resources.LibrariesResource- Throws:
com.artisol.teneo.studio.api.exceptions.ResourceException
-
-