@Override public Object remove(String key) { return pluginSettings.remove(KEY + key); } };
public Object remove(String key) { return studioTabSettings.remove(studioTabsPrefix + key); }
public void visit(PluginSettings studioTabSettings, int p, StudioTab studioTab) { studioTabSettings.remove(Integer.toString(p)); } });
public void visit(final String key, final BrowseHistoryItem browseHistoryItem) { if (keepDate == null || browseHistoryItem.getTimestamp() < keepDate.getTime()) { userBrowseHistorySettings.remove(key); } } });
@Override public boolean removeIssuer(@Nonnull String issuerName) { return pluginSettings.remove(settingsKey(issuerName)) != null; }
public Object remove(final String key) { return pluginSettings.remove(hashKeyIfTooLong(key)); } }
public boolean deleteApplication(final String id) { final PluginSettings pluginSettings = pluginSettingsFactory.createGlobalSettings(); final List<String> ids = (List<String>) pluginSettings.get(TRUSTED_APPS_KEY); if (ids != null && ids.contains(id)) { ids.remove(id); if (ids.isEmpty()) { pluginSettings.remove(TRUSTED_APPS_KEY); } else { pluginSettings.put(TRUSTED_APPS_KEY, ids); } } return pluginSettings.remove(TRUSTED_APP_KEY_PREFIX + id) != null; }
public Object remove(final String key) { String hashKey = hashKeyIfTooLong(key); if (LOG.isDebugEnabled()) { String message = String.format("Removing key [%s] as hashKey [%s] with value [%s]", key, hashKey, pluginSettings.get(hashKey)); LOG.debug(message); } return pluginSettings.remove(hashKey); } }
public void resetBannerHiddenProperty() { pluginSettings.remove(getUserSettingKey(userManager.getRemoteUsername())); } }
private void resetBuildNumber(MockedUpgradeTask upgradeTask) { // Yes, we just happen to know how to clear the data build number.... pluginSettingsFactory.createGlobalSettings().remove(upgradeTask.getPluginKey() + ":build"); } }
/** * Removes all subscriptions for a particular resource name and event * * @param resourceName The resource name * @param notificationEvent The notification event type */ public void removeSubscriptions(final String resourceName, final String notificationEvent) { removeSubscriptionFromCache(resourceName, notificationEvent); final PluginSettings pluginSettings = pluginSettingsFactory.createSettingsForKey(resourceName); pluginSettings.remove(PLUGIN_SETTINGS_PREFIX + notificationEvent); }
@Override public void setEnabledProjects(Set<String> enabledProjects) { if (enabledProjects == null || enabledProjects.isEmpty()) { getPluginSettings().remove(ENABLED_PROJECT_KEYS); } else { getPluginSettings().put(ENABLED_PROJECT_KEYS, Lists.newArrayList(enabledProjects)); } }
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; }
@Override public void clearDefaultValue(final String projectKey, final String fieldId, final String issueType) { PluginSettings settingsForProject = pluginSettingsFactory.createSettingsForKey(projectKey); settingsForProject.remove(createKey(fieldId, issueType)); }
public void clearFavorites(String pluginKey) { getPluginSettings().remove(createAccessKey(pluginKey, "votes")); }
@Override public void setMaximumBuildsPerPage(Integer maximumBuildsPerPage) { if (maximumBuildsPerPage == null || DEFAULT_MAX_BUILDS_PER_PAGE == maximumBuildsPerPage || (maximumBuildsPerPage < 1 && maximumBuildsPerPage != -1)) { getPluginSettings().remove(MAX_BUILDS_PER_PAGE); } else { getPluginSettings().put(MAX_BUILDS_PER_PAGE, String.valueOf(maximumBuildsPerPage)); } }
public void execute(final CtkTestResults results) { results.assertTrue("PluginUpgradeManager should be injectable", upgradeManager != null); results.assertTrueOrWarn("Upgrade task should have been called unless not first page load", called); called = false; upgradeManager.upgrade(); results.assertTrueOrWarn("Upgrade task should not have been called after already upgraded unless not first page load)", !called); // Yes, we just happen to know how to clear the data build number.... pluginSettingsFactory.createGlobalSettings().remove(getPluginKey()+":build"); }