summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSidharth Singh2012-06-12 02:10:53 (EDT)
committer Manik Kishore2012-06-19 07:31:40 (EDT)
commit6c47480bed41a74ca77b9a327bdd24a3d72967ad (patch)
tree68b6bc89acf55e01357c5c827a69c3cc368e1fd3
parent8f815d33f2c5c64884afe8af0a509fbc80a40a1c (diff)
downloadorg.eclipse.stardust.ui.web-6c47480bed41a74ca77b9a327bdd24a3d72967ad.zip
org.eclipse.stardust.ui.web-6c47480bed41a74ca77b9a327bdd24a3d72967ad.tar.gz
org.eclipse.stardust.ui.web-6c47480bed41a74ca77b9a327bdd24a3d72967ad.tar.bz2
Jira-ID: CRNT-25079
1)Added code to clear the Preference Manager Cache on delete operation on preference. git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ui.web@56983 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--admin-portal/src/main/java/org/eclipse/stardust/ui/web/admin/views/PreferenceManagerBean.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/admin-portal/src/main/java/org/eclipse/stardust/ui/web/admin/views/PreferenceManagerBean.java b/admin-portal/src/main/java/org/eclipse/stardust/ui/web/admin/views/PreferenceManagerBean.java
index be9427a..624110a 100644
--- a/admin-portal/src/main/java/org/eclipse/stardust/ui/web/admin/views/PreferenceManagerBean.java
+++ b/admin-portal/src/main/java/org/eclipse/stardust/ui/web/admin/views/PreferenceManagerBean.java
@@ -27,8 +27,10 @@ import org.eclipse.stardust.engine.api.query.PreferenceQuery;
import org.eclipse.stardust.engine.api.runtime.AdministrationService;
import org.eclipse.stardust.engine.api.runtime.QueryService;
import org.eclipse.stardust.engine.api.runtime.User;
+import org.eclipse.stardust.engine.core.preferences.IPreferenceCache;
import org.eclipse.stardust.engine.core.preferences.PreferenceScope;
import org.eclipse.stardust.engine.core.preferences.Preferences;
+import org.eclipse.stardust.engine.core.preferences.manager.IPreferencesManager;
import org.eclipse.stardust.ui.web.admin.common.configuration.UserPreferencesEntries;
import org.eclipse.stardust.ui.web.admin.messages.AdminMessagesPropertiesBean;
import org.eclipse.stardust.ui.web.common.UIComponentBean;
@@ -36,7 +38,6 @@ import org.eclipse.stardust.ui.web.common.column.ColumnPreference;
import org.eclipse.stardust.ui.web.common.column.ColumnPreference.ColumnDataType;
import org.eclipse.stardust.ui.web.common.column.DefaultColumnModel;
import org.eclipse.stardust.ui.web.common.column.IColumnModel;
-import org.eclipse.stardust.ui.web.common.columnSelector.TableColumnSelectorPopup;
import org.eclipse.stardust.ui.web.common.dialogs.ConfirmationDialog;
import org.eclipse.stardust.ui.web.common.dialogs.ConfirmationDialog.DialogActionType;
import org.eclipse.stardust.ui.web.common.dialogs.ConfirmationDialog.DialogContentType;
@@ -344,6 +345,12 @@ public class PreferenceManagerBean extends UIComponentBean implements ViewEventH
selPreference.getPreferences().remove(selectedPrefMngrObj.getPreferenceName());
adminService.savePreferences(selPreference);
+ IPreferencesManager prefMngr = SessionContext.findSessionContext().getPreferencesManager();
+ if (prefMngr instanceof org.eclipse.stardust.engine.core.preferences.IPreferenceCache)
+ {
+ IPreferenceCache cache = (IPreferenceCache) prefMngr;
+ cache.cleanCache(PreferenceScope.PARTITION, selectedPrefMngrObj.getModuleId(), selectedPrefMngrObj.getPreferenceId());
+ }
update();
prefMngrConfirmationDialog = null;
return true;