summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSidharth Singh2012-05-30 09:22:42 (EDT)
committer Manik Kishore2012-06-19 07:31:02 (EDT)
commit4536b9410eadd10d7d5dd889cc310ed9fbb25fa3 (patch)
tree6c3a7b6a04165a41c2483fa26589de0c6a8a0f91
parent1b6b2f013a72404329c85225e6b0cd52d3d57fab (diff)
downloadorg.eclipse.stardust.ui.web-4536b9410eadd10d7d5dd889cc310ed9fbb25fa3.zip
org.eclipse.stardust.ui.web-4536b9410eadd10d7d5dd889cc310ed9fbb25fa3.tar.gz
org.eclipse.stardust.ui.web-4536b9410eadd10d7d5dd889cc310ed9fbb25fa3.tar.bz2
Jira-ID: CRNT-24894
1)Added code to get PreferenceManager() from SessionContext and call cleanCache() on it. git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ui.web@56713 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--admin-portal/src/main/java/org/eclipse/stardust/ui/web/admin/views/CreateOrModifyPreferenceBean.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/admin-portal/src/main/java/org/eclipse/stardust/ui/web/admin/views/CreateOrModifyPreferenceBean.java b/admin-portal/src/main/java/org/eclipse/stardust/ui/web/admin/views/CreateOrModifyPreferenceBean.java
index 4eba35f..25f07e4 100644
--- a/admin-portal/src/main/java/org/eclipse/stardust/ui/web/admin/views/CreateOrModifyPreferenceBean.java
+++ b/admin-portal/src/main/java/org/eclipse/stardust/ui/web/admin/views/CreateOrModifyPreferenceBean.java
@@ -26,8 +26,10 @@ import org.eclipse.stardust.common.CollectionUtils;
import org.eclipse.stardust.engine.api.query.PreferenceQuery;
import org.eclipse.stardust.engine.api.runtime.AdministrationService;
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.messages.AdminMessagesPropertiesBean;
import org.eclipse.stardust.ui.web.admin.views.PreferenceManagerBean.PREF_VIEW_TYPE;
import org.eclipse.stardust.ui.web.common.PopupUIComponentBean;
@@ -144,8 +146,13 @@ public class CreateOrModifyPreferenceBean extends PopupUIComponentBean
else
{
adminService.savePreferences(prefs);
+ IPreferencesManager prefMngr = SessionContext.findSessionContext().getPreferencesManager();
+ if (prefMngr instanceof org.eclipse.stardust.engine.core.preferences.IPreferenceCache)
+ {
+ IPreferenceCache cache = (IPreferenceCache) prefMngr;
+ cache.cleanCache(PreferenceScope.PARTITION, preferenceBean.getModuleId(), preferenceBean.getPreferenceId());
+ }
}
-
PreferenceManagerBean.getCurrent().update();
closePopup();
}