fr.opensagres.xdocreport.remoting.resources.services
Class DelegateResourcesService

java.lang.Object
  extended by fr.opensagres.xdocreport.remoting.resources.services.DelegateResourcesService
All Implemented Interfaces:
ResourcesService
Direct Known Subclasses:
JAXRSResourcesServiceImpl, JAXWSResourcesServiceImpl

public class DelegateResourcesService
extends Object
implements ResourcesService


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

Constructor Detail

DelegateResourcesService

public DelegateResourcesService(ResourcesService delegate)
Method Detail

getName

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

Specified by:
getName in interface ResourcesService
Returns:

getRoot

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

Specified by:
getRoot in interface ResourcesService
Returns:
Throws:
ResourcesException

getRootWithFilter

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

downloadMultiple

public List<BinaryData> downloadMultiple(List<String> resourceIds)
                                  throws ResourcesException
Specified by:
downloadMultiple in interface ResourcesService
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 ResourcesService
Returns:
the byte array of the content of the given resourcePath.
Throws:
ResourcesException

upload

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

getDelegate

protected ResourcesService getDelegate()


Copyright © 2013. All rights reserved.