From: <pn...@hy...> - 2009-02-28 08:06:19
|
Author: pnguyen Date: 2009-02-28 00:06:13 -0800 (Sat, 28 Feb 2009) New Revision: 12642 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=12642 Modified: branches/HQ_4_1/src/org/hyperic/hq/ui/KeyConstants.java branches/HQ_4_1/src/org/hyperic/hq/ui/action/portlet/availsummary/PropertiesForm.java branches/HQ_4_1/src/org/hyperic/hq/ui/action/portlet/criticalalerts/ViewAction.java Log: HHQ-2854: move dashboard pref keys to constants class Modified: branches/HQ_4_1/src/org/hyperic/hq/ui/KeyConstants.java =================================================================== --- branches/HQ_4_1/src/org/hyperic/hq/ui/KeyConstants.java 2009-02-28 07:41:41 UTC (rev 12641) +++ branches/HQ_4_1/src/org/hyperic/hq/ui/KeyConstants.java 2009-02-28 08:06:13 UTC (rev 12642) @@ -57,6 +57,16 @@ public static final String USERPREF_KEY_FAVORITE_RESOURCES = ".dashContent.resourcehealth.resources"; /** + * The key that holds the user's critical alerts resources + */ + public static final String USERPREF_KEY_CRITICAL_ALERTS_RESOURCES = ".dashContent.criticalalerts.resources"; + + /** + * The key that holds the user's availability summary resources + */ + public static final String USERPREF_KEY_AVAILABITY_RESOURCES = ".dashContent.availsummary.resources"; + + /** * The key that holds the user's recent resources */ public static final String USERPREF_KEY_RECENT_RESOURCES = ".userPref.recent.resources"; Modified: branches/HQ_4_1/src/org/hyperic/hq/ui/action/portlet/availsummary/PropertiesForm.java =================================================================== --- branches/HQ_4_1/src/org/hyperic/hq/ui/action/portlet/availsummary/PropertiesForm.java 2009-02-28 07:41:41 UTC (rev 12641) +++ branches/HQ_4_1/src/org/hyperic/hq/ui/action/portlet/availsummary/PropertiesForm.java 2009-02-28 08:06:13 UTC (rev 12642) @@ -25,12 +25,13 @@ package org.hyperic.hq.ui.action.portlet.availsummary; +import org.hyperic.hq.ui.Constants; import org.hyperic.hq.ui.action.portlet.DashboardBaseForm; public class PropertiesForm extends DashboardBaseForm { public final static String RESOURCES = - ".dashContent.availsummary.resources"; + Constants.USERPREF_KEY_AVAILABITY_RESOURCES; public final static String NUM_TO_SHOW = ".dashContent.availsummary.numToShow"; public final static String TITLE = Modified: branches/HQ_4_1/src/org/hyperic/hq/ui/action/portlet/criticalalerts/ViewAction.java =================================================================== --- branches/HQ_4_1/src/org/hyperic/hq/ui/action/portlet/criticalalerts/ViewAction.java 2009-02-28 07:41:41 UTC (rev 12641) +++ branches/HQ_4_1/src/org/hyperic/hq/ui/action/portlet/criticalalerts/ViewAction.java 2009-02-28 08:06:13 UTC (rev 12642) @@ -64,7 +64,7 @@ */ public class ViewAction extends BaseAction { - static final String RESOURCES_KEY = ".dashContent.criticalalerts.resources"; + static final String RESOURCES_KEY = Constants.USERPREF_KEY_CRITICAL_ALERTS_RESOURCES; public ActionForward execute(ActionMapping mapping, ActionForm form, |