@Path(value="/resources/{domainUid}/type")
public interface IResourceTypes
Modifier and Type | Method and Description |
---|---|
void |
create(java.lang.String identifier,
ResourceTypeDescriptor rt)
Creates a resource type
|
void |
delete(java.lang.String uid)
Deletes an existing resource type
|
ResourceTypeDescriptor |
get(java.lang.String uid)
Retrieve a resource type descriptor
|
byte[] |
getIcon(java.lang.String uid) |
java.util.List<ResourceType> |
getTypes()
Retrieve all resources types of a domain
|
void |
setIcon(java.lang.String uid,
byte[] icon) |
void |
update(java.lang.String uid,
ResourceTypeDescriptor rt)
Modifies an existing resource type
|
@PUT @Path(value="{identifier}") void create(@PathParam(value="identifier") java.lang.String identifier, ResourceTypeDescriptor rt) throws ServerFault
identifier
- resource type identifierrt
- resourcetype descriptorServerFault
@POST @Path(value="{uid}") void update(@PathParam(value="uid") java.lang.String uid, ResourceTypeDescriptor rt) throws ServerFault
domain
- ServerFault
@DELETE @Path(value="{uid}") void delete(@PathParam(value="uid") java.lang.String uid) throws ServerFault
ServerFault
@GET @Path(value="{uid}") ResourceTypeDescriptor get(@PathParam(value="uid") java.lang.String uid) throws ServerFault
uid
- ServerFault
@GET java.util.List<ResourceType> getTypes() throws ServerFault
ServerFault
@GET @Path(value="{uid}/icon") @Produces(value="image/png") byte[] getIcon(@PathParam(value="uid") java.lang.String uid) throws ServerFault
ServerFault
@POST @Path(value="{uid}/icon") @Consumes(value="image/png") void setIcon(@PathParam(value="uid") java.lang.String uid, byte[] icon) throws ServerFault
ServerFault
Copyright © 2021. All Rights Reserved.