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)
Create a { @link ResourceTypeDescriptor }.
|
void |
delete(java.lang.String uid)
Delete an existing { @link ResourceTypeDescriptor }.
|
ResourceTypeDescriptor |
get(java.lang.String uid)
Fetch a { @link ResourceTypeDescriptor }.
|
byte[] |
getIcon(java.lang.String uid)
Fetch a { @link ResourceTypeDescriptor } icon.
|
java.util.List<ResourceType> |
getTypes()
Fetch all resources types
|
void |
setIcon(java.lang.String uid,
byte[] icon)
Set an icon to { @link ResourceTypeDescriptor }.
|
void |
update(java.lang.String uid,
ResourceTypeDescriptor descriptor)
Modify an existing { @link ResourceTypeDescriptor }.
|
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
- { @link ResourceTypeDescriptor } unique iddescriptor
- { @link ResourceTypeDescriptor }ServerFault
- standard error objectpublic void update(java.lang.String uid, ResourceTypeDescriptor descriptor) throws ServerFault
IResourceTypes
update
in interface IResourceTypes
uid
- { @link ResourceTypeDescriptor } unique iddescriptor
- updated { @link ResourceTypeDescriptor }ServerFault
- standard error objectpublic void delete(java.lang.String uid) throws ServerFault
IResourceTypes
delete
in interface IResourceTypes
uid
- { @link ResourceTypeDescriptor } unique idServerFault
- standard error objectpublic ResourceTypeDescriptor get(@PathParam(value="uid") java.lang.String uid) throws ServerFault
IResourceTypes
get
in interface IResourceTypes
uid
- { @link ResourceTypeDescriptor } unique idServerFault
- standard error objectpublic java.util.List<ResourceType> getTypes() throws ServerFault
IResourceTypes
getTypes
in interface IResourceTypes
ServerFault
- standard error objectpublic byte[] getIcon(java.lang.String uid) throws ServerFault
IResourceTypes
getIcon
in interface IResourceTypes
uid
- { @link ResourceTypeDescriptor } unique idServerFault
- standard error objectpublic void setIcon(java.lang.String uid, byte[] icon) throws ServerFault
IResourceTypes
setIcon
in interface IResourceTypes
uid
- { @link ResourceTypeDescriptor } unique idicon
- icon binary data (png format)ServerFault
- standard error objectCopyright © 2021. All Rights Reserved.