@Path(value="/resources/{domainUid}")
public interface IResources
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)
Fetch an existing
ResourceDescriptor by its email. |
java.util.List<java.lang.String> |
byType(java.lang.String typeUid)
List all
ResourceDescriptor by type. |
void |
create(java.lang.String uid,
ResourceDescriptor resourceDescriptor)
Creates a
ResourceDescriptor . |
TaskRef |
delete(java.lang.String uid)
Delete an existing
ResourceDescriptor . |
ResourceDescriptor |
get(java.lang.String uid)
Fetch an existing
ResourceDescriptor by its unique id. |
byte[] |
getIcon(java.lang.String uid)
Fetch a
ResourceDescriptor icon. |
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)
Set a
ResourceDescriptor icon. |
void |
update(java.lang.String uid,
ResourceDescriptor resourceDescriptor)
Modify an existing
ResourceDescriptor . |
@PUT @Path(value="{uid}") void create(@PathParam(value="uid") java.lang.String uid, ResourceDescriptor resourceDescriptor) throws ServerFault
ResourceDescriptor
.uid
- { @link ResourceDescriptor } unique idresourceDescriptor
- { ResourceDescriptor
ServerFault
- standard error object@POST @Path(value="{uid}") void update(@PathParam(value="uid") java.lang.String uid, ResourceDescriptor resourceDescriptor) throws ServerFault
ResourceDescriptor
.uid
- { @link ResourceDescriptor } unique idresourceDescriptor
- updated { ResourceDescriptor
ServerFault
- standard error object@DELETE @Path(value="{uid}") TaskRef delete(@PathParam(value="uid") java.lang.String uid) throws ServerFault
ResourceDescriptor
.uid
- { @link ResourceDescriptor } unique idServerFault
- standard error object@GET @Path(value="{uid}") ResourceDescriptor get(@PathParam(value="uid") java.lang.String uid) throws ServerFault
ResourceDescriptor
by its unique id.uid
- { @link ResourceDescriptor } unique idResourceDescriptor
, or null if the
ResourceDescriptor
does not existServerFault
- standard error object@GET @Path(value="{uid}/icon") @Produces(value="image/png") byte[] getIcon(@PathParam(value="uid") java.lang.String uid) throws ServerFault
ResourceDescriptor
icon.uid
- { @link ResourceDescriptor } unique idResourceDescriptor
does not existServerFault
- standard error object@POST @Path(value="{uid}/icon") @Consumes(value="image/png") void setIcon(@PathParam(value="uid") java.lang.String uid, byte[] icon) throws ServerFault
ResourceDescriptor
icon.uid
- { @link ResourceDescriptor } unique idicon
- icon binary data (png format)ServerFault
- standard error object@GET @Path(value="byEmail/{email}") ItemValue<ResourceDescriptor> byEmail(@PathParam(value="email") java.lang.String email) throws ServerFault
ResourceDescriptor
by its email.email
- { @link ResourceDescriptor } emailResourceDescriptor
net.bluemind.core.container.api.ItemValue
, or null if the
ResourceDescriptor
does not existServerFault
- standard error object@GET @Path(value="byType/{type}") java.util.List<java.lang.String> byType(@PathParam(value="type") java.lang.String typeUid) throws ServerFault
ResourceDescriptor
by type.typeUid
- { @link net.bluemind.resource.api.type.ResourceType } unique
idResourceDescriptor
uids or null if the type does
not exists or if there are no ResourceDescriptor
matching.ServerFault
- standard error object@POST @Path(value="{uid}/addToEventDesc") java.lang.String addToEventDescription(@PathParam(value="uid") java.lang.String resourceUid, EventInfo eventInfo) throws ServerFault
eventDescription
.resourceUid
- the identifier of ResourceDescriptor
organizer
- the organizer of the calendar eventeventDescription
ServerFault
- standard error objectResourceTypeDescriptor.templates
@POST @Path(value="{uid}/removeFromEventDesc") java.lang.String removeFromEventDescription(@PathParam(value="uid") java.lang.String resourceUid, EventInfo eventInfo) throws ServerFault
eventDescription
.resourceUid
- the identifier of ResourceDescriptor
eventDescription
ServerFault
- standard error objectResourceTypeDescriptor.templates
Copyright © 2021. All Rights Reserved.