Class AttachmentRest
java.lang.Object
org.exoplatform.social.rest.impl.attachment.AttachmentRest
- All Implemented Interfaces:
org.exoplatform.services.rest.resource.ResourceContainer
public class AttachmentRest
extends Object
implements org.exoplatform.services.rest.resource.ResourceContainer
-
Constructor Summary
ConstructorsConstructorDescriptionAttachmentRest(org.exoplatform.social.attachment.AttachmentService attachmentService) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.ResponsecreateAttachment(org.exoplatform.social.attachment.model.FileAttachmentResource attachmentResource) javax.ws.rs.core.ResponsedeleteAttachment(String objectType, String objectId, String fileId) javax.ws.rs.core.ResponsegetAttachment(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.Request request, String objectType, String objectId, String fileId, String lastModified, String size, boolean download) javax.ws.rs.core.ResponsegetAttachments(String objectType, String objectId, int offset, int limit) javax.ws.rs.core.ResponsesaveAttachments(org.exoplatform.social.attachment.model.FileAttachmentResourceList attachmentResource)
-
Constructor Details
-
AttachmentRest
public AttachmentRest(org.exoplatform.social.attachment.AttachmentService attachmentService)
-
-
Method Details
-
saveAttachments
@RolesAllowed("users") public javax.ws.rs.core.Response saveAttachments(org.exoplatform.social.attachment.model.FileAttachmentResourceList attachmentResource) -
getAttachments
-
getAttachment
-
createAttachment
@RolesAllowed("users") public javax.ws.rs.core.Response createAttachment(org.exoplatform.social.attachment.model.FileAttachmentResource attachmentResource) -
deleteAttachment
-