Class AssetResource
java.lang.Object
io.jans.configapi.core.rest.BaseResource
io.jans.configapi.rest.resource.auth.ConfigBaseResource
io.jans.configapi.rest.resource.auth.AssetResource
@Path("/jans-assets")
@Produces("application/json")
@Consumes("application/json")
public class AssetResource
extends ConfigBaseResource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponsedeleteAsset(@NotNull String inum) jakarta.ws.rs.core.ResponsegetAssetByInum(@NotNull String inum) jakarta.ws.rs.core.ResponsegetAssetByName(@NotNull String name) jakarta.ws.rs.core.Responsejakarta.ws.rs.core.ResponsegetAssets(int limit, String pattern, String status, int startIndex, String sortBy, String sortOrder, String fieldValuePair) jakarta.ws.rs.core.Responsejakarta.ws.rs.core.Responsejakarta.ws.rs.core.ResponseloadServiceAsset(@NotNull String serviceName) jakarta.ws.rs.core.ResponseupdateAsset(AssetForm assetForm) jakarta.ws.rs.core.ResponseuploadAsset(AssetForm assetForm) Methods inherited from class io.jans.configapi.rest.resource.auth.ConfigBaseResource
getMaxCountMethods inherited from class io.jans.configapi.core.rest.BaseResource
checkNotEmpty, checkNotEmpty, checkNotNull, checkNotNull, checkNotNull, checkResourceNotNull, createSearchRequest, findRootError, getBadRequestException, getBadRequestException, getBadRequestException, getHttpHeaders, getHttpRequest, getInternalServerException, getInternalServerException, getMissingAttributeError, getNotAcceptableException, getNotFoundError, getNotFoundError, getUriInfo, throwBadRequestException, throwBadRequestException, throwBadRequestException, throwInternalServerException, throwInternalServerException, throwInternalServerException, throwInternalServerException, throwMissingAttributeError, throwNotFoundException, throwNotFoundException
-
Constructor Details
-
AssetResource
public AssetResource()
-
-
Method Details
-
getAssets
@GET public jakarta.ws.rs.core.Response getAssets(@DefaultValue("50") @QueryParam("limit") int limit, @DefaultValue("") @QueryParam("pattern") String pattern, @DefaultValue("all") @QueryParam("status") String status, @DefaultValue("0") @QueryParam("startIndex") int startIndex, @DefaultValue("inum") @QueryParam("sortBy") String sortBy, @DefaultValue("ascending") @QueryParam("sortOrder") String sortOrder, @DefaultValue("") @QueryParam("fieldValuePair") String fieldValuePair) throws Exception - Throws:
Exception
-
getAssetByInum
@GET @Path("{inum}") public jakarta.ws.rs.core.Response getAssetByInum(@PathParam("inum") @NotNull @NotNull String inum) throws Exception - Throws:
Exception
-
getAssetByName
@GET @Path("name/{name}") public jakarta.ws.rs.core.Response getAssetByName(@PathParam("name") @NotNull @NotNull String name) throws Exception - Throws:
Exception
-
getJansServices
@GET @Path("/services") public jakarta.ws.rs.core.Response getJansServices() -
getValidAssetTypes
@GET @Path("/asset-type") public jakarta.ws.rs.core.Response getValidAssetTypes() -
getAssetDirMapping
@GET @Path("/asset-dir-mapping") public jakarta.ws.rs.core.Response getAssetDirMapping() -
uploadAsset
@Consumes("multipart/form-data") @POST @Path("/upload") public jakarta.ws.rs.core.Response uploadAsset(AssetForm assetForm) throws Exception - Throws:
Exception
-
updateAsset
@Consumes("multipart/form-data") @PUT @Path("/upload") public jakarta.ws.rs.core.Response updateAsset(AssetForm assetForm) throws Exception - Throws:
Exception
-
loadServiceAsset
@Consumes("multipart/form-data") @POST @Path("/service/{service-name}") public jakarta.ws.rs.core.Response loadServiceAsset(@PathParam("service-name") @NotNull @NotNull String serviceName) throws Exception - Throws:
Exception
-
deleteAsset
@DELETE @Path("{inum}") public jakarta.ws.rs.core.Response deleteAsset(@PathParam("inum") @NotNull @NotNull String inum)
-