Package io.jans.as.client.uma
Interface UmaResourceService
-
public interface UmaResourceService
REST WS UMA resource set description API- Author:
- Yuriy Zabrovarnyy
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description io.jans.as.model.uma.UmaResourceResponse
addResource(java.lang.String authorization, io.jans.as.model.uma.UmaResource resource)
void
deleteResource(java.lang.String authorization, java.lang.String rsid)
io.jans.as.model.uma.UmaResourceWithId
getResource(java.lang.String authorization, java.lang.String rsid)
java.util.List<java.lang.String>
getResourceList(java.lang.String authorization, java.lang.String scope)
Gets resources.io.jans.as.model.uma.UmaResourceResponse
updateResource(java.lang.String authorization, java.lang.String rsid, io.jans.as.model.uma.UmaResource resource)
-
-
-
Method Detail
-
addResource
@POST @Consumes("application/json") @Produces("application/json") io.jans.as.model.uma.UmaResourceResponse addResource(@HeaderParam("Authorization") java.lang.String authorization, io.jans.as.model.uma.UmaResource resource)
-
updateResource
@PUT @Path("{rsid}") @Consumes("application/json") @Produces("application/json") io.jans.as.model.uma.UmaResourceResponse updateResource(@HeaderParam("Authorization") java.lang.String authorization, @PathParam("rsid") java.lang.String rsid, io.jans.as.model.uma.UmaResource resource)
-
getResource
@GET @Path("{rsid}") @Produces("application/json") io.jans.as.model.uma.UmaResourceWithId getResource(@HeaderParam("Authorization") java.lang.String authorization, @PathParam("rsid") java.lang.String rsid)
-
getResourceList
@GET @Produces("application/json") java.util.List<java.lang.String> getResourceList(@HeaderParam("Authorization") java.lang.String authorization, @QueryParam("scope") java.lang.String scope)
Gets resources. ATTENTION: "scope" is parameter added by gluu to have additional filtering. There is no such parameter in UMA specification.- Parameters:
authorization
- authorizationscope
- scope of resource set for additional filtering, can blank string.- Returns:
- resource set ids.
-
deleteResource
@DELETE @Path("{rsid}") void deleteResource(@HeaderParam("Authorization") java.lang.String authorization, @PathParam("rsid") java.lang.String rsid)
-
-