public DeflectionSearchResource(final PermissionManager permissionManager, final PluginSettingsFactory pluginSettingsFactory, final DeflectionSearchService deflectionSearchService, final JiraAuthenticationContext authenticationContext) { this.permissionManager = permissionManager; this.deflectionSearchService = deflectionSearchService; this.authenticationContext = authenticationContext; this.pluginSettings = pluginSettingsFactory.createGlobalSettings(); }
public DefaultInvitationTracker( final PluginSettingsFactory pluginSettingsFactory) { this.pluginSettingsFactory = pluginSettingsFactory; this.pluginSettings = pluginSettingsFactory.createGlobalSettings(); }
public PluginSettingsJwtIssuerRegistry(PluginSettingsFactory factory, String prefix) { pluginSettings = factory.createGlobalSettings(); settingPrefix = prefix; }
public KeyFactory(EncryptionProvider encryptionProvider, PluginSettingsFactory pluginSettingsFactory, ApplicationProperties applicationProperties) { this.encryptionProvider = encryptionProvider; this.applicationProperties = applicationProperties; pluginSettings = pluginSettingsFactory.createGlobalSettings(); }
PluginSettings getPluginSettings() { if (pluginSettings == null) { pluginSettings = pluginSettingsFactory.createGlobalSettings(); } return pluginSettings; }
public LicenseStatusService(UserManager userManager, PluginSettingsFactory pluginSettingsFactory) { this.userManager = userManager; // Need to create global settings, because FeCru doesn't like "key" settings - they have to correlate with repo's pluginSettings = pluginSettingsFactory.createGlobalSettings(); }
@Autowired public DefaultConnectAddonRegistry(@Nonnull PluginSettingsFactory pluginSettingsFactory, @Nonnull TransactionTemplate transactionTemplate, @Nonnull ConnectAddonBeanFactory connectAddonBeanFactory, @Nonnull DependenciesValidator dependenciesValidator, @Nonnull VertigoAwareAddonSettingsLock lock) { this.settings = pluginSettingsFactory.createGlobalSettings(); this.transactionTemplate = transactionTemplate; this.connectAddonBeanFactory = connectAddonBeanFactory; this.dependenciesValidator = dependenciesValidator; this.lock = lock; }
@Inject public UpgradeSettingsWithRuleLog(@ComponentImport final PluginSettingsFactory pluginSettingsFactory) { pluginSettings = pluginSettingsFactory.createGlobalSettings(); }
/** * Get all project keys * * @return All the project keys */ public Collection<String> getAllProjectKeys() { List<String> charlies = (List<String>) pluginSettingsFactory.createGlobalSettings().get(CHARLIE_KEYS); if (charlies == null) { charlies = new ArrayList<String>(); } return charlies; }
@Inject public UpgradeSettings(@ComponentImport final PluginSettingsFactory pluginSettingsFactory) { pluginSettings = pluginSettingsFactory.createGlobalSettings(); }
public Object getGlobalPluginSetting(String dataKey) { PluginSettings pluginSettings = pluginSettingsFactory.createGlobalSettings(); return pluginSettings.get(dataKey); }
private void put(Map<String, SubscribedGadgetFeed> feeds) { PluginSettings settings = factory.createGlobalSettings(); Properties properties = new Properties(); properties.putAll(Maps.transformValues(feeds, serialize())); settings.put(KEY, properties); }
private String getLastVersion(String type) { String value = (String) pluginSettingsFactory.createGlobalSettings().get( getSettingsKey(type)); return value != null ? value : ""; } }
@Test public void testSpecialCharactersMustBeSupported() { final PluginSettings settings = factory.createGlobalSettings(); Map<String, String> hashMap = new HashMap<String, String>(); hashMap.put("key\n\t\f\r", "value\n\t\f\r"); settings.put("hashMap", hashMap); hashMap = (Map) settings.get("hashMap"); assertTrue("Should be able to store and retrieve a real map", hashMap != null && "value\n\t\f\r".equals(hashMap.get("key\n\t\f\r"))); }
public Collection<Message> doUpgrade() throws Exception { // remove special field originally created by previous version of upgrade task 7 - TODO: we can remove this line in studio 1.7 pluginSettingsFactory.createGlobalSettings().remove("sysadmin-groups"); fisheyeAccessor.addSysadminGroup(UserGroup.SYSTEM_ADMINS); return null; }
private synchronized ApplicationInstances getApplicationsInstancesInternalSynchronized(Application app) { return new ApplicationInstances(app, getInstanceListenersForApp(app), pluginSettingsFactory.createGlobalSettings(), transactionTemplate); }
public DefaultLogScanService(SupportApplicationInfo applicationInfo, MailUtility mailUtility, PluginSettingsFactory pluginSettingsFactory, SchedulerServiceProvider schedulerServiceProvider, LogScanCacheSupplier cacheSupplier, MonitoredTaskExecutorFactory taskExecutorFactory, ScheduleFactory scheduleFactory) { this.applicationInfo = applicationInfo; this.cacheSupplier = cacheSupplier; this.mailUtility = mailUtility; this.schedulerServiceProvider = schedulerServiceProvider; executor = taskExecutorFactory.create("hercules", 1); taskSettingsStore = new TaskSettingsStore(TASK_ID_HERCULES, pluginSettingsFactory.createGlobalSettings(), scheduleFactory); }
private void resetBuildNumber(MockedUpgradeTask upgradeTask) { // Yes, we just happen to know how to clear the data build number.... pluginSettingsFactory.createGlobalSettings().remove(upgradeTask.getPluginKey() + ":build"); } }
@Test public void testMapMustBeSupported() { final PluginSettings settings = factory.createGlobalSettings(); Map<String, String> oldMap = new HashMap<String, String>(); oldMap.put("key1", "value1"); oldMap.put("key2", "value2"); settings.put("map", oldMap); Map<String, String> map = (Map) settings.get("map"); assertNotNull("Should be able to store and retrieve a map", map); assertTrue("Should be able to store and retrieve a map", map.equals(oldMap)); }
@Test public void testGetWithLongKeyShouldSucceed() { PluginSettings ps = factory.createGlobalSettings(); ps.get(StringUtils.repeat("a", 100)); ps.get(StringUtils.repeat("a", 101)); ps.get(StringUtils.repeat("a", 255)); ps.get(StringUtils.repeat("a", 256)); }