org.silverpeas.attachment.web
Class AbstractSimpleDocumentResource

java.lang.Object
  extended by com.silverpeas.web.RESTWebService
      extended by org.silverpeas.attachment.web.AbstractSimpleDocumentResource
Direct Known Subclasses:
SimpleDocumentResource, SimpleDocumentResourceCreator

public class AbstractSimpleDocumentResource
extends RESTWebService


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.web.RESTWebService
RESPONSE_HEADER_ARRAYSIZE, REST_WEB_SERVICES_URI_BASE
 
Constructor Summary
AbstractSimpleDocumentResource()
           
 
Method Summary
protected  void checkUploadedFile(File fileToCheck)
          Check the file.
protected  String getBundleLocation()
          Gets the location of the bundle to use.
 String getComponentId()
          Gets the identifier of the component instance to which the requested resource belongs to.
protected  void performRuntimeException(RuntimeException re)
          Manages the runtime errors.
 
Methods inherited from class com.silverpeas.web.RESTWebService
getBundle, 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

AbstractSimpleDocumentResource

public AbstractSimpleDocumentResource()
Method Detail

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.

getBundleLocation

protected String getBundleLocation()
Description copied from class: RESTWebService
Gets the location of the bundle to use.

Overrides:
getBundleLocation in class RESTWebService
Returns:

checkUploadedFile

protected void checkUploadedFile(File fileToCheck)
Check the file.

Parameters:
fileToCheck -

performRuntimeException

protected void performRuntimeException(RuntimeException re)
Manages the runtime errors.

Parameters:
re -


Copyright © 2016 Silverpeas. All Rights Reserved.