public class ResourceTypesService extends java.lang.Object implements IResourceTypes
Constructor and Description |
---|
ResourceTypesService(BmContext context,
java.lang.String domainUid,
Container resourcesContainer) |
Modifier and Type | Method and Description |
---|---|
void |
create(java.lang.String uid,
ResourceTypeDescriptor descriptor)
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 descriptor)
Modifies an existing resource type
|
public ResourceTypesService(BmContext context, java.lang.String domainUid, Container resourcesContainer) throws ServerFault
ServerFault
public void create(java.lang.String uid, ResourceTypeDescriptor descriptor) throws ServerFault
IResourceTypes
create
in interface IResourceTypes
uid
- resource type identifierdescriptor
- resourcetype descriptorServerFault
public void update(java.lang.String uid, ResourceTypeDescriptor descriptor) throws ServerFault
IResourceTypes
update
in interface IResourceTypes
ServerFault
public void delete(java.lang.String uid) throws ServerFault
IResourceTypes
delete
in interface IResourceTypes
ServerFault
public ResourceTypeDescriptor get(@PathParam(value="uid") java.lang.String uid) throws ServerFault
IResourceTypes
get
in interface IResourceTypes
ServerFault
public java.util.List<ResourceType> getTypes() throws ServerFault
IResourceTypes
getTypes
in interface IResourceTypes
ServerFault
public byte[] getIcon(java.lang.String uid) throws ServerFault
getIcon
in interface IResourceTypes
ServerFault
public void setIcon(java.lang.String uid, byte[] icon) throws ServerFault
setIcon
in interface IResourceTypes
ServerFault
Copyright © 2021. All Rights Reserved.