public class ResourcesService extends java.lang.Object implements IResources
| Constructor and Description | 
|---|
ResourcesService(BmContext context,
                ItemValue<Domain> domain,
                Container resourcesContainer)  | 
| Modifier and Type | Method and Description | 
|---|---|
java.lang.String | 
addToEventDescription(java.lang.String resourceUid,
                     EventInfo eventInfo)
Compute the transformed template associated to the given resource if any,
 then append it to the given  
eventDescription. | 
ItemValue<ResourceDescriptor> | 
byEmail(java.lang.String email)
Fetches a  
ResourceDescriptor item from the database with its
 email. | 
java.util.List<java.lang.String> | 
byType(java.lang.String typeUid)
Search resources by type. 
 | 
void | 
create(java.lang.String uid,
      ResourceDescriptor rd)
Creates a resource 
 | 
TaskRef | 
delete(java.lang.String uid)
Deletes an existing resource 
 | 
ResourceDescriptor | 
get(java.lang.String uid)
Retrieve an existing resource 
 | 
byte[] | 
getIcon(java.lang.String uid)  | 
java.lang.String | 
removeFromEventDescription(java.lang.String resourceUid,
                          EventInfo eventInfo)
Remove the transformed template associated to the given resource from the
 given  
eventDescription. | 
void | 
setIcon(java.lang.String uid,
       byte[] icon)  | 
void | 
update(java.lang.String uid,
      ResourceDescriptor rd)
Modifies an existing resource 
 | 
public ResourcesService(BmContext context, ItemValue<Domain> domain, Container resourcesContainer) throws ServerFault
ServerFaultpublic void create(java.lang.String uid,
                   ResourceDescriptor rd)
            throws ServerFault
IResourcescreate in interface IResourcesServerFault - { ResourceDescriptorpublic void update(java.lang.String uid,
                   ResourceDescriptor rd)
            throws ServerFault
IResourcesupdate in interface IResourcesServerFault - updated { ResourceDescriptorpublic TaskRef delete(java.lang.String uid) throws ServerFault
IResourcesdelete in interface IResourcesServerFaultpublic ResourceDescriptor get(java.lang.String uid) throws ServerFault
IResourcesget in interface IResourcesServerFaultpublic byte[] getIcon(java.lang.String uid)
               throws ServerFault
getIcon in interface IResourcesServerFaultpublic void setIcon(java.lang.String uid,
                    byte[] icon)
             throws ServerFault
setIcon in interface IResourcesServerFaultpublic ItemValue<ResourceDescriptor> byEmail(java.lang.String email) throws ServerFault
IResourcesResourceDescriptor item from the database with its
 email.byEmail in interface IResourcesServerFault - standard error objectpublic java.util.List<java.lang.String> byType(java.lang.String typeUid)
                                        throws ServerFault
IResourcesbyType in interface IResourcestypeUid - ResourceType.identifierServerFaultpublic java.lang.String addToEventDescription(java.lang.String resourceUid,
                                              EventInfo eventInfo)
IResourceseventDescription.addToEventDescription in interface IResourcesresourceUid - the identifier of ResourceDescriptoreventDescriptionResourceTypeDescriptor.templatespublic java.lang.String removeFromEventDescription(java.lang.String resourceUid,
                                                   EventInfo eventInfo)
IResourceseventDescription.removeFromEventDescription in interface IResourcesresourceUid - the identifier of ResourceDescriptoreventDescriptionResourceTypeDescriptor.templatesCopyright © 2021. All Rights Reserved.