fr.opensagres.xdocreport.remoting.resources.services.server.jaxrs
Class JAXRSResourcesServiceImpl

java.lang.Object
  extended by fr.opensagres.xdocreport.remoting.resources.services.DelegateResourcesService
      extended by fr.opensagres.xdocreport.remoting.resources.services.server.jaxrs.JAXRSResourcesServiceImpl
All Implemented Interfaces:
JAXRSResourcesService, ResourcesService

public class JAXRSResourcesServiceImpl
extends DelegateResourcesService
implements JAXRSResourcesService


Constructor Summary
JAXRSResourcesServiceImpl(ResourcesService delegate)
           
 
Method Summary
 BinaryData download(String resourceId)
          Download the content of the given unique resource id.
 LargeBinaryData downloadLarge(String resourceId)
           
 List<BinaryData> downloadMultiple(List<String> resourceIds)
           
protected  JAXRSResourcesService getDelegate()
           
 String getName()
          Returns the repository name.
 Resource getRoot()
          Returns the root resource.
 Resource getRootWithFilter(Filter filter)
           
 void upload(BinaryData dataIn)
           
 void uploadLarge(LargeBinaryData data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JAXRSResourcesServiceImpl

public JAXRSResourcesServiceImpl(ResourcesService delegate)
Method Detail

getName

public String getName()
Description copied from interface: ResourcesService
Returns the repository name.

Specified by:
getName in interface JAXRSResourcesService
Specified by:
getName in interface ResourcesService
Overrides:
getName in class DelegateResourcesService
Returns:

getRoot

public Resource getRoot()
                 throws ResourcesException
Description copied from interface: ResourcesService
Returns the root resource.

Specified by:
getRoot in interface JAXRSResourcesService
Specified by:
getRoot in interface ResourcesService
Overrides:
getRoot in class DelegateResourcesService
Returns:
Throws:
ResourcesException

getRootWithFilter

public Resource getRootWithFilter(Filter filter)
                           throws ResourcesException
Specified by:
getRootWithFilter in interface ResourcesService
Overrides:
getRootWithFilter in class DelegateResourcesService
Throws:
ResourcesException

download

public BinaryData download(String resourceId)
                    throws ResourcesException
Description copied from interface: ResourcesService
Download the content of the given unique resource id.

Specified by:
download in interface JAXRSResourcesService
Specified by:
download in interface ResourcesService
Overrides:
download in class DelegateResourcesService
Returns:
the byte array of the content of the given resourcePath.
Throws:
ResourcesException

downloadMultiple

public List<BinaryData> downloadMultiple(List<String> resourceIds)
                                  throws ResourcesException
Specified by:
downloadMultiple in interface ResourcesService
Overrides:
downloadMultiple in class DelegateResourcesService
Throws:
ResourcesException

upload

public void upload(BinaryData dataIn)
            throws ResourcesException
Specified by:
upload in interface JAXRSResourcesService
Specified by:
upload in interface ResourcesService
Overrides:
upload in class DelegateResourcesService
Throws:
ResourcesException

downloadLarge

public LargeBinaryData downloadLarge(String resourceId)
                              throws ResourcesException
Specified by:
downloadLarge in interface JAXRSResourcesService
Throws:
ResourcesException

getDelegate

protected JAXRSResourcesService getDelegate()
Overrides:
getDelegate in class DelegateResourcesService

uploadLarge

public void uploadLarge(LargeBinaryData data)
                 throws ResourcesException
Specified by:
uploadLarge in interface JAXRSResourcesService
Throws:
ResourcesException


Copyright © 2013. All rights reserved.