com.trendmicro.grid.acl.l0
Interface FileRequestService

All Superinterfaces:
Service

@ProcessingContext
@WebServlet(value="/ws/level-0/internal/filecontent-request")
public interface FileRequestService
extends Service

Defines services that allow accessing previously stored files from remote.

Version:
1.0
Author:
Juergen_Kellerer, 2010-04-23

Method Summary
 URL getRemoteTransferURL(FileIdentifier file)
          Returns a transfer URL for the given file that allows access to the file from remote.
 List<URL> getRemoteTransferURLs(BatchCollection<FileIdentifier> files)
          Returns a list of remotely accessible transfer URLs for the given files.
 

Method Detail

getRemoteTransferURL

@RequiredRoles(value={"access.protected.services","access.binary.content"})
URL getRemoteTransferURL(FileIdentifier file)
                         throws AuthenticationException
Returns a transfer URL for the given file that allows access to the file from remote.

Parameters:
file - The file to return the URL for.
Returns:
A remote accessible URL of the given file or 'null' if the file does not exist.
Throws:
AuthenticationException - In case of the current user is not authenticated or doesn't have the right to access the service.

getRemoteTransferURLs

@ResponseWrapper(className="com.trendmicro.grid.acl.l0.wrappers.GetRemoteTransferURLsResponse")
@RequiredRoles(value={"access.protected.services","access.binary.content"})
List<URL> getRemoteTransferURLs(BatchCollection<FileIdentifier> files)
                                throws AuthenticationException
Returns a list of remotely accessible transfer URLs for the given files.

Parameters:
files - The files to return the URLs for.
Returns:
A list of remote accessible URLs of the given file or 'nulls' if the file does not exist.
Throws:
AuthenticationException - In case of the current user is not authenticated or doesn't have the right to access the service.