jetbrains.buildServer.web
Class WebAccessService

java.lang.Object
  extended by jetbrains.buildServer.web.WebAccessService

public class WebAccessService
extends java.lang.Object

The service provides the interface to open file access from the web UI. The client should register using allowAccess method, specifying the permissions required, desired id, etc. The links to the files can be then obtained via WebAccess.getLinkForFile and WebAccess.getLinkForZip methods.

Since:
6.0
Author:
Maxim Podkolzine (maxim.podkolzine@jetbrains.com)
See Also:
WebAccess

Nested Class Summary
static class WebAccessService.ProviderBean
           
 
Constructor Summary
WebAccessService(WebLinks webLinks)
           
 
Method Summary
 WebAccess allowAccess(java.io.File directory, PermissionChecker checker, WebAccessHelper helper)
           
 WebAccess allowAccess(java.lang.String directoryPath, PermissionChecker checker, WebAccessHelper helper)
           
 WebAccess findAccessForFile(java.io.File directory)
           
 WebAccess findAccessForFile(java.lang.String directoryPath)
           
 WebAccessService.ProviderBean getMatchedProvider(java.lang.String requestPath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebAccessService

public WebAccessService(@NotNull
                        WebLinks webLinks)
Method Detail

allowAccess

@NotNull
public WebAccess allowAccess(@NotNull
                                     java.lang.String directoryPath,
                                     @Nullable
                                     PermissionChecker checker,
                                     @Nullable
                                     WebAccessHelper helper)

allowAccess

@NotNull
public WebAccess allowAccess(@NotNull
                                     java.io.File directory,
                                     @Nullable
                                     PermissionChecker checker,
                                     @Nullable
                                     WebAccessHelper helper)

getMatchedProvider

@Nullable
public WebAccessService.ProviderBean getMatchedProvider(@NotNull
                                                                 java.lang.String requestPath)

findAccessForFile

@Nullable
public WebAccess findAccessForFile(@NotNull
                                            java.lang.String directoryPath)

findAccessForFile

@Nullable
public WebAccess findAccessForFile(@NotNull
                                            java.io.File directory)