Package org.damap.base.rest
Class InternalStorageResource
java.lang.Object
org.damap.base.rest.InternalStorageResource
- All Implemented Interfaces:
ResourceCreate<InternalStorageDO,,InternalStorageDO> ResourceDelete,ResourceRead<InternalStorageDO>,ResourceSearch<InternalStorageDO>,ResourceUpdate<InternalStorageDO,InternalStorageDO>
@Path("/api/storages")
@Produces("application/json")
public class InternalStorageResource
extends Object
implements ResourceRead<InternalStorageDO>, ResourceCreate<InternalStorageDO,InternalStorageDO>, ResourceUpdate<InternalStorageDO,InternalStorageDO>, ResourceDelete, ResourceSearch<InternalStorageDO>
InternalStorageResource class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(@Valid InternalStorageDO data) create a new internal storage option.voiddelete an existing internal storage option.read a specific internal storage option.search(jakarta.ws.rs.core.UriInfo uriInfo) search for internal storage options.update(String id, @Valid InternalStorageDO data) update an existing internal storage option.
-
Constructor Details
-
InternalStorageResource
public InternalStorageResource()
-
-
Method Details
-
create
@POST @Path("") @Consumes("application/json") @RolesAllowed("Damap Admin") public InternalStorageDO create(@Valid @Valid InternalStorageDO data) create a new internal storage option.- Specified by:
createin interfaceResourceCreate<InternalStorageDO,InternalStorageDO> - Parameters:
data- aInternalStorageDOobject- Returns:
- a
InternalStorageDOobject, with the ID set
-
read
@GET @Path("/{id}") public InternalStorageDO read(@PathParam("id") String id, @Context jakarta.ws.rs.core.UriInfo uriInfo) read a specific internal storage option.- Specified by:
readin interfaceResourceRead<InternalStorageDO>- Parameters:
id- aStringobjecturiInfo- aUriInfoobject- Returns:
- a
InternalStorageDOobject
-
update
@PUT @Path("/{id}") @Consumes("application/json") @RolesAllowed("Damap Admin") public InternalStorageDO update(@PathParam("id") String id, @Valid @Valid InternalStorageDO data) update an existing internal storage option.- Specified by:
updatein interfaceResourceUpdate<InternalStorageDO,InternalStorageDO> - Parameters:
id- aStringobject representing the ID of the internal storage option to updatedata- aInternalStorageDOobject representing the new data- Returns:
- a
InternalStorageDOobject, with the updated data
-
delete
delete an existing internal storage option.- Specified by:
deletein interfaceResourceDelete- Parameters:
id- aStringobject, representing the ID of the internal storage option to delete
-
search
@GET @Consumes("application/json") public ResultList<InternalStorageDO> search(@Context jakarta.ws.rs.core.UriInfo uriInfo) search for internal storage options.- Specified by:
searchin interfaceResourceSearch<InternalStorageDO>- Parameters:
uriInfo- aUriInfoobject, representing the query parameters- Returns:
- a ResultList of
InternalStorageDOobjects, that match the criteria
-