com.silverpeas.attachment.web
Class SharedAttachmentResource

java.lang.Object
  extended by com.silverpeas.web.RESTWebService
      extended by com.silverpeas.attachment.web.AbstractAttachmentResource
          extended by com.silverpeas.attachment.web.SharedAttachmentResource

@Service
@RequestScoped
public class SharedAttachmentResource
extends AbstractAttachmentResource

A REST Web resource providing access to attachments through sharing mode.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.silverpeas.web.RESTWebService
RESTWebService.WebProcess<RETURN_VALUE>, RESTWebService.WebTreatment<RETURN_VALUE>
 
Field Summary
 
Fields inherited from class com.silverpeas.attachment.web.AbstractAttachmentResource
componentId
 
Fields inherited from class com.silverpeas.web.RESTWebService
RESPONSE_HEADER_ARRAYSIZE, REST_WEB_SERVICES_URI_BASE
 
Constructor Summary
SharedAttachmentResource()
           
 
Method Summary
 javax.ws.rs.core.Response getFileContent(String attachmentId)
           
protected  String getToken()
           
 javax.ws.rs.core.Response getZipContent(String zipFileName)
           
protected  boolean isFileReadable(SimpleDocument attachment)
           
 ZipEntity zipFiles(String attachmentIds)
           
 
Methods inherited from class com.silverpeas.attachment.web.AbstractAttachmentResource
getComponentId
 
Methods inherited from class com.silverpeas.web.RESTWebService
getBundle, getBundleLocation, getGreaterUserRole, getHttpRequest, getHttpServletRequest, getHttpServletResponse, getOrganisationController, getUriInfo, getUserDetail, getUserPreferences, getUserRoles, process, validateUserAuthentication, validateUserAuthorization
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SharedAttachmentResource

public SharedAttachmentResource()
Method Detail

getFileContent

public javax.ws.rs.core.Response getFileContent(String attachmentId)
Overrides:
getFileContent in class AbstractAttachmentResource

zipFiles

public ZipEntity zipFiles(String attachmentIds)

getZipContent

public javax.ws.rs.core.Response getZipContent(String zipFileName)

isFileReadable

protected boolean isFileReadable(SimpleDocument attachment)
Specified by:
isFileReadable in class AbstractAttachmentResource

getToken

protected String getToken()


Copyright © 2016 Silverpeas. All Rights Reserved.