fr.opensagres.xdocreport.remoting.resources.services
Interface ResourcesService

All Known Subinterfaces:
JAXRSResourcesService, JAXWSResourcesService
All Known Implementing Classes:
AbstractResourcesService, DelegateResourcesService, FileResourcesService, JAXRSResourcesServiceClient, JAXRSResourcesServiceImpl, JAXWSResourcesServiceClient, JAXWSResourcesServiceImpl, WebAppResourcesServiceListener

public interface ResourcesService

Interface to define resources services to retrieves from a repository list of resources (folder/files), and upload/download some resources.


Method Summary
 BinaryData download(String resourceId)
          Download the content of the given unique resource id.
 List<BinaryData> downloadMultiple(List<String> resourceIds)
           
 String getName()
          Returns the repository name.
 Resource getRoot()
          Returns the root resource.
 Resource getRootWithFilter(Filter filter)
           
 void upload(BinaryData data)
           
 

Method Detail

getName

String getName()
Returns the repository name.

Returns:

getRoot

Resource getRoot()
                 throws ResourcesException
Returns the root resource.

Returns:
Throws:
ResourcesException

getRootWithFilter

Resource getRootWithFilter(Filter filter)
                           throws ResourcesException
Throws:
ResourcesException

downloadMultiple

List<BinaryData> downloadMultiple(List<String> resourceIds)
                                  throws ResourcesException
Throws:
ResourcesException

download

BinaryData download(String resourceId)
                    throws ResourcesException
Download the content of the given unique resource id.

Parameters:
resourcePath - the unique resource id.
Returns:
the byte array of the content of the given resourcePath.
Throws:
ResourcesException

upload

void upload(BinaryData data)
            throws ResourcesException
Throws:
ResourcesException


Copyright © 2013. All rights reserved.