public FirewallModule(RestletCloudConfig restletCloudConfig, ModulesSettings modulesSettings) { FirewallSettingsResource firewallSettingsClientResource = AgentUtils .getClientResource(restletCloudConfig, modulesSettings, FirewallSettingsResource.class, SETTINGS_PATH); try { firewallSettings = firewallSettingsClientResource.getSettings(); } catch (Exception e) { throw new AgentConfigurationException( "Could not get firewall module configuration from Restlet Cloud connector service", e); } }
public FirewallModule(RestletCloudConfig restletCloudConfig, ModulesSettings modulesSettings) { FirewallSettingsResource firewallSettingsClientResource = AgentUtils .getClientResource(restletCloudConfig, modulesSettings, FirewallSettingsResource.class, SETTINGS_PATH); try { firewallSettings = firewallSettingsClientResource.getSettings(); } catch (Exception e) { throw new AgentConfigurationException( "Could not get firewall module configuration from Restlet Cloud connector service", e); } }
public FirewallModule(RestletCloudConfig restletCloudConfig, ModulesSettings modulesSettings) { FirewallSettingsResource firewallSettingsClientResource = AgentUtils .getClientResource(restletCloudConfig, modulesSettings, FirewallSettingsResource.class, SETTINGS_PATH); try { firewallSettings = firewallSettingsClientResource.getSettings(); } catch (Exception e) { throw new AgentConfigurationException( "Could not get firewall module configuration from Restlet Cloud connector service", e); } }
public FirewallModule(RestletCloudConfig restletCloudConfig, ModulesSettings modulesSettings) { FirewallSettingsResource firewallSettingsClientResource = AgentUtils .getClientResource(restletCloudConfig, modulesSettings, FirewallSettingsResource.class, SETTINGS_PATH); try { firewallSettings = firewallSettingsClientResource.getSettings(); } catch (Exception e) { throw new AgentConfigurationException( "Could not get firewall module configuration from Restlet Cloud connector service", e); } }
/** * Retrieves the modules settings from the service if it has changed, null * otherwise. * * @param restletCloudConfig * The service's configuration * @param modulesSettings * The current modules settings * @return The updated modules settings if it has changed, null otherwise. */ public static ModulesSettings getModulesSettings( RestletCloudConfig restletCloudConfig, ModulesSettings modulesSettings) { // When modulesSettings not null, cell revision header is set ModulesSettingsResource modulesSettingsResource = AgentUtils .getClientResource(restletCloudConfig, modulesSettings, ModulesSettingsResource.class, MODULE_PATH); try { return modulesSettingsResource.getSettings(); } catch (Exception e) { throw new AgentConfigurationException( "Unable to retrieve agent settings from platform", e); } }
/** * Retrieves the modules settings from the service if it has changed, null * otherwise. * * @param restletCloudConfig * The service's configuration * @param modulesSettings * The current modules settings * @return The updated modules settings if it has changed, null otherwise. */ public static ModulesSettings getModulesSettings( RestletCloudConfig restletCloudConfig, ModulesSettings modulesSettings) { // When modulesSettings not null, cell revision header is set ModulesSettingsResource modulesSettingsResource = AgentUtils .getClientResource(restletCloudConfig, modulesSettings, ModulesSettingsResource.class, MODULE_PATH); try { return modulesSettingsResource.getSettings(); } catch (Exception e) { throw new AgentConfigurationException( "Unable to retrieve agent settings from platform", e); } }
/** * Retrieves the modules settings from the service if it has changed, null * otherwise. * * @param restletCloudConfig * The service's configuration * @param modulesSettings * The current modules settings * @return The updated modules settings if it has changed, null otherwise. */ public static ModulesSettings getModulesSettings( RestletCloudConfig restletCloudConfig, ModulesSettings modulesSettings) { // When modulesSettings not null, cell revision header is set ModulesSettingsResource modulesSettingsResource = AgentUtils .getClientResource(restletCloudConfig, modulesSettings, ModulesSettingsResource.class, MODULE_PATH); try { return modulesSettingsResource.getSettings(); } catch (Exception e) { throw new AgentConfigurationException( "Unable to retrieve agent settings from platform", e); } }
/** * Retrieves the modules settings from the service if it has changed, null * otherwise. * * @param restletCloudConfig * The service's configuration * @param modulesSettings * The current modules settings * @return The updated modules settings if it has changed, null otherwise. */ public static ModulesSettings getModulesSettings( RestletCloudConfig restletCloudConfig, ModulesSettings modulesSettings) { // When modulesSettings not null, cell revision header is set ModulesSettingsResource modulesSettingsResource = AgentUtils .getClientResource(restletCloudConfig, modulesSettings, ModulesSettingsResource.class, MODULE_PATH); try { return modulesSettingsResource.getSettings(); } catch (Exception e) { throw new AgentConfigurationException( "Unable to retrieve agent settings from platform", e); } }
.getAuthorizations(); } catch (Exception e) { throw new AgentConfigurationException( "Could not get authorization module configuration from Restlet Cloud connector service", e);
.getAuthorizations(); } catch (Exception e) { throw new AgentConfigurationException( "Could not get authorization module configuration from Restlet Cloud connector service", e);
.getAuthorizations(); } catch (Exception e) { throw new AgentConfigurationException( "Could not get authorization module configuration from Restlet Cloud connector service", e);
.getAuthorizations(); } catch (Exception e) { throw new AgentConfigurationException( "Could not get authorization module configuration from Restlet Cloud connector service", e);
throw new AgentConfigurationException( "The authorization module requires the authentication module which is not enabled");
throw new AgentConfigurationException( "The authorization module requires the authentication module which is not enabled");
throw new AgentConfigurationException( "The authorization module requires the authentication module which is not enabled");
throw new AgentConfigurationException( "The authorization module requires the authentication module which is not enabled");