public void register(){ myWebManager.registerController("/slacknotifications/index.html", this); }
public void register(){ myWebManager.registerController("/webhooks/testWebHook.html", this); }
public void register(){ myWebManager.registerController("/webhooks/ajaxEdit.html", this); }
public WebHookRestApiActionController(@NotNull final PluginDescriptor pluginDescriptor, @NotNull final WebControllerManager controllerManager) { super(controllerManager); controllerManager.registerController("/admin/manageWebHooksRestApi.html", this); }
public S3PreSignedUrlController(@NotNull WebControllerManager web, @NotNull RunningBuildsCollection runningBuildsCollection, @NotNull S3PreSignedUrlProvider preSignedUrlProvider, @NotNull ServerArtifactStorageSettingsProvider storageSettingsProvider) { myRunningBuildsCollection = runningBuildsCollection; myPreSignedUrlProvider = preSignedUrlProvider; myStorageSettingsProvider = storageSettingsProvider; web.registerController(ARTEFACTS_S3_UPLOAD_PRESIGN_URLS_HTML, this); }
public SlackNotifierSettingsController(@NotNull SBuildServer server, @NotNull ServerPaths serverPaths, @NotNull WebControllerManager manager, @NotNull SlackNotificationMainConfig config, SlackNotificationPayloadManager payloadManager, PluginDescriptor descriptor){ this.server = server; this.serverPaths = serverPaths; this.manager = manager; this.config = config; this.payloadManager = payloadManager; this.descriptor = descriptor; manager.registerController(CONTROLLER_PATH, this); }
public WebHookHistoryController( @NotNull SBuildServer server, @NotNull PluginDescriptor pluginDescriptor, @NotNull WebControllerManager webControllerManager, @NotNull WebHookHistoryRepository webHookHistoryRepository ) { super(server); this.myPluginPath = pluginDescriptor.getPluginResourcesPath(); this.myWebHookHistoryRepository = webHookHistoryRepository; webControllerManager.registerController(MY_URL, this); }
public BaseReleaseManagementTab(@NotNull WebControllerManager manager, @NotNull ProjectManager projectManager, @NotNull String includeUrl, @NotNull String controllerUrl, @NotNull BaseFormXmlController controller, @NotNull DeployableArtifactoryServers deployableServers) { super(NAME, "Artifactory Release Management", manager, projectManager, includeUrl); this.deployableServers = deployableServers; register(); manager.registerController(controllerUrl, controller); }
public HubBuildFeatureController(@NotNull final PluginDescriptor descriptor, @NotNull final WebControllerManager web) { myDescriptor = descriptor; web.registerController(myDescriptor.getPluginResourcesPath("hubBuildFeatureEdit.html"), this); }
public PromotionResultsFragmentExtension(@NotNull final PagePlaces pagePlaces, @NotNull final WebControllerManager controllerManager, @NotNull final DeployableArtifactoryServers deployableServers, @NotNull final SBuildServer buildServer) { super(pagePlaces, PlaceId.BUILD_RESULTS_FRAGMENT, ConstantValues.NAME, "promotionResultsFragmentExtension.jsp"); this.buildServer = buildServer; controllerManager.registerController("/artifactory/promotion/promotionFragment.html", new PromotionResultsFragmentController(buildServer, deployableServers)); register(); }
protected void registerView(@NotNull final String url, @NotNull final String jsp) { viewUrl = pluginDescriptor.getPluginResourcesPath(url); final String actualJsp = pluginDescriptor.getPluginResourcesPath(jsp); webControllerManager.registerController(viewUrl, new BaseController() { @Override protected ModelAndView doHandle(final HttpServletRequest request, final HttpServletResponse response) { final ModelAndView modelAndView = new ModelAndView(actualJsp); modelAndView.getModel().put("controllerUrl", viewUrl); return modelAndView; } }); }
protected void registerView(@NotNull final String url, @NotNull final String jsp) { viewUrl = pluginDescriptor.getPluginResourcesPath(url); final String actualJsp = pluginDescriptor.getPluginResourcesPath(jsp); webControllerManager.registerController(viewUrl, new BaseController() { @Override protected ModelAndView doHandle(HttpServletRequest request, HttpServletResponse response) throws Exception { ModelAndView modelAndView = new ModelAndView(actualJsp); modelAndView.getModel().put("controllerUrl", viewUrl); modelAndView.getModel().put("deployableArtifactoryServers", deployableArtifactoryServers); return modelAndView; } }); }
public S3SettingsController(@NotNull final WebControllerManager manager, @NotNull final PluginDescriptor descriptor, @NotNull final ServerPaths serverPaths) { myServerPaths = serverPaths; final String path = descriptor.getPluginResourcesPath(S3Constants.S3_SETTINGS_PATH + ".html"); manager.registerController(path, this); myHandlers.put("buckets", new BucketsResourceHandler()); myHandlers.put("bucketLocation", new BucketLocationHandler()); }
public ArtifactoryBuildTriggerService(@NotNull final PluginDescriptor descriptor, @NotNull final WebControllerManager wcm, @NotNull final DeployableArtifactoryServers deployableServers) { this.deployableServers = deployableServers; this.watchedItems = HashMultimap.create(); this.watchedItems = Multimaps.synchronizedMultimap(watchedItems); actualUrl = descriptor.getPluginResourcesPath("editArtifactoryTrigger.html"); final String actualJsp = descriptor.getPluginResourcesPath("editArtifactoryTrigger.jsp"); wcm.registerController(actualUrl, new EditArtifactoryTriggerController(actualUrl, actualJsp, deployableServers)); }
public WebHookEndPointViewerController( SBuildServer server, WebHookEndPointContentStore endPointContentStore, PluginDescriptor pluginDescriptor, WebControllerManager webControllerManager) { super(server); this.endPointContentStore = endPointContentStore; this.myPluginPath = pluginDescriptor.getPluginResourcesPath(); this.myWebManager = webControllerManager; this.myWebManager.registerController(MY_URL, this); Loggers.SERVER.info("EndPointController:: Registering"); }
protected void registerEdit(@NotNull final String url, @NotNull final String jsp) { editUrl = pluginDescriptor.getPluginResourcesPath(url); String actualJsp = pluginDescriptor.getPluginResourcesPath(jsp); webControllerManager.registerController(editUrl, new ArtifactoryRunTypeConfigController(editUrl, actualJsp, deployableArtifactoryServers)); }
protected void registerEdit(@NotNull final String url, @NotNull final String jsp) { editUrl = pluginDescriptor.getPluginResourcesPath(url); final String actualJsp = pluginDescriptor.getPluginResourcesPath(jsp); webControllerManager.registerController(editUrl, new HubRunTypeConfigController(editUrl, actualJsp, serverPeristanceManager)); }
public WebHookEndPointController( SBuildServer server, WebHookEndPointContentStore endPointContentStore, PluginDescriptor pluginDescriptor, WebControllerManager webControllerManager, AuthorizationInterceptor authorizationInterceptor) { super(server); this.endPointContentStore = endPointContentStore; this.myWebManager = webControllerManager; this.myWebManager.registerController(MY_URL, this); authorizationInterceptor.addPathNotRequiringAuth(MY_URL); Loggers.SERVER.info("EndPointController:: Registering"); }
public ArtifactoryGlobalServerConfigTab(final @NotNull WebControllerManager controllerManager, final @NotNull ArtifactoryServerListener serverListener, final @NotNull SecurityContext securityContext) { super(controllerManager, PlaceId.ADMIN_SERVER_CONFIGURATION_TAB, ConstantValues.NAME, "artifactoryGlobalServerConfigTab.jsp", "Artifactory"); this.securityContext = securityContext; configPersistenceManager = serverListener.getConfigModel(); setPosition(PositionConstraint.after("serverConfigGeneral")); register(); controllerManager.registerController("/admin/artifactory/serverConfigTab.html", new ArtifactoryGlobalServerConfigController(configPersistenceManager)); }
public HubGlobalServerConfigTab(@NotNull final WebControllerManager controllerManager, @NotNull final HubServerListener codecenterListener) { super(controllerManager, PlaceId.ADMIN_SERVER_CONFIGURATION_TAB, "hub", "hubGlobalServerConfigTab.jsp", "Hub"); setPosition(PositionConstraint.after("serverConfigGeneral")); register(); configPersistenceManager = codecenterListener.getConfigManager(); controllerManager.registerController("/admin/hub/serverHubConfigTab.html", new HubGlobalServerConfigController(configPersistenceManager)); }