Class TapeCatalogResource

    • Constructor Detail

      • TapeCatalogResource

        public TapeCatalogResource​(TapeCatalogService tapeCatalogService)
        Constructor
        Parameters:
        tapeCatalogService -
      • TapeCatalogResource

        public TapeCatalogResource()
        TapeLibraryFactory should be already initialized
    • Method Detail

      • getTape

        @GET
        @Path("/tapecatalog/{tapeId}")
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response getTape​(@PathParam("tapeId")
                                                 java.lang.String tapeId)
        Get a tape model from catalog
        Parameters:
        tapeId -
        Returns:
        a tape model from catalog
      • getTapes

        @GET
        @Path("/tapecatalog/")
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response getTapes​(java.util.List<QueryCriteria> criteria)
        Get a list of tape model from catalog
        Parameters:
        criteria -
        Returns:
        a list of tape model from catalog
      • replaceTape

        @PUT
        @Path("/tapecatalog/tapeId")
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response replaceTape​(@PathParam("tapeId")
                                                     java.lang.String tapeId,
                                                     TapeCatalog tapeCatalog)
        replaces existing tape model by id.
        Returns:
      • updateTape

        @PUT
        @Path("/tapecatalog/tapeId")
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response updateTape​(@PathParam("tapeId")
                                                    java.lang.String tapeId,
                                                    java.util.Map<java.lang.String,​java.lang.Object> fields)
        updates existing tape model by id.
        Returns:
      • createTape

        @POST
        @Path("/tapecatalog/")
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response createTape​(TapeCatalog tapeCatalog)
        Creates a tape model.
        Returns: