com.silverpeas.attachment.web
Class AbstractAttachmentResource
java.lang.Object
com.silverpeas.web.RESTWebService
com.silverpeas.attachment.web.AbstractAttachmentResource
- Direct Known Subclasses:
- AttachmentResource, SharedAttachmentResource
public abstract class AbstractAttachmentResource
- extends RESTWebService
A REST Web resource providing access to attachments.
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 |
componentId
protected String componentId
AbstractAttachmentResource
public AbstractAttachmentResource()
getComponentId
public String getComponentId()
- Description copied from class:
RESTWebService
- Gets the identifier of the component instance to which the requested resource belongs to.
- Specified by:
getComponentId
in class RESTWebService
- Returns:
- the identifier of the Silverpeas component instance.
getFileContent
protected javax.ws.rs.core.Response getFileContent(String attachmentId)
isFileReadable
protected abstract boolean isFileReadable(SimpleDocument attachment)
Copyright © 2016 Silverpeas. All Rights Reserved.