in cloud-vmware-server/src/main/java/jetbrains/buildServer/clouds/vmware/web/VMWareEditProfileController.java [50:76]
public VMWareEditProfileController(@NotNull final SBuildServer server,
@NotNull final PluginDescriptor pluginDescriptor,
@NotNull final WebControllerManager manager,
@NotNull final ProjectManager projectManager,
@NotNull final AuthorizationInterceptor authInterceptor,
@NotNull final AgentPoolManager agentPoolManager,
@NotNull final SSLTrustStoreProvider sslTrustStoreProvider
) {
super(server);
myHtmlPath = pluginDescriptor.getPluginResourcesPath("vmware-settings.html");
myPluginDescriptor = pluginDescriptor;
myProjectManager = projectManager;
myAgentPoolManager = agentPoolManager;
mySslTrustStoreProvider = sslTrustStoreProvider;
myJspPath = myPluginDescriptor.getPluginResourcesPath("vmware-settings.jsp");
mySnapshotsPath = pluginDescriptor.getPluginResourcesPath("vmware-getsnapshotlist.html");
myConfigHelperPath = pluginDescriptor.getPluginResourcesPath("vmware-config-helper.html");
authInterceptor.addPathBasedPermissionsChecker(myHtmlPath, new VmwareEditProfilePermissionChecker());
manager.registerController(myHtmlPath, this);
authInterceptor.addPathBasedPermissionsChecker(mySnapshotsPath, new VmwareEditProfilePermissionChecker());
manager.registerController(mySnapshotsPath, new GetSnapshotsListController(mySslTrustStoreProvider));
authInterceptor.addPathBasedPermissionsChecker(myConfigHelperPath, new VmwareEditProfilePermissionChecker());
manager.registerController(myConfigHelperPath, new ConfigurationHelperController(mySslTrustStoreProvider));
}