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 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

      public javax.ws.rs.core.Response getAttachments(String objectType, String objectId, int offset, int limit)
    • getAttachment

      public javax.ws.rs.core.Response getAttachment(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.Request request, String objectType, String objectId, String fileId, String lastModified, String size, boolean download)
    • createAttachment

      @RolesAllowed("users") public javax.ws.rs.core.Response createAttachment(org.exoplatform.social.attachment.model.FileAttachmentResource attachmentResource)
    • deleteAttachment

      @RolesAllowed("administrators") public javax.ws.rs.core.Response deleteAttachment(String objectType, String objectId, String fileId)