Class LibrariesResourceImpl

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

    public class LibrariesResourceImpl
    extends AbstractResource
    implements com.artisol.teneo.studio.api.resources.LibrariesResource
    • Constructor Detail

      • LibrariesResourceImpl

        public LibrariesResourceImpl​(javax.ws.rs.client.WebTarget webTarget)
    • 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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.artisol.teneo.studio.api.resources.LibrariesResource
        Throws:
        com.artisol.teneo.studio.api.exceptions.ResourceException