On 06/04/2012 08:47 PM, Miroslav Suchy wrote: >> So here is the latest version of the patches. > > Committed (with some white space and check style fixes). Thanks for > contribution.
Thank you very much, here is already a first follow up patch: Replace "default" string with the new constant RhnHelper.DEFAULT_FORWARD, just for being consistent with recent changes here. Regards, Johannes -- SUSE LINUX Products GmbH, HRB 16746 (AG Nürnberg) GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer
>From d3fe367991d13c85b83e5a821688d4c32db5f248 Mon Sep 17 00:00:00 2001 From: Johannes Renner <jren...@suse.de> Date: Wed, 6 Jun 2012 15:27:35 +0200 Subject: [PATCH] Refactor "default" to RhnHelper.DEFAULT_FORWARD --- .../images/ScheduleImageDeploymentAction.java | 3 ++- .../action/user/UserCredentialsDeleteAction.java | 3 ++- .../action/user/UserCredentialsEditAction.java | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/java/code/src/com/redhat/rhn/frontend/action/systems/images/ScheduleImageDeploymentAction.java b/java/code/src/com/redhat/rhn/frontend/action/systems/images/ScheduleImageDeploymentAction.java index 117f949..a3a9491 100644 --- a/java/code/src/com/redhat/rhn/frontend/action/systems/images/ScheduleImageDeploymentAction.java +++ b/java/code/src/com/redhat/rhn/frontend/action/systems/images/ScheduleImageDeploymentAction.java @@ -34,6 +34,7 @@ import com.redhat.rhn.domain.user.User; import com.redhat.rhn.frontend.action.renderers.ImagesRenderer; import com.redhat.rhn.frontend.struts.RequestContext; import com.redhat.rhn.frontend.struts.RhnAction; +import com.redhat.rhn.frontend.struts.RhnHelper; import com.redhat.rhn.frontend.taglibs.list.ListTagHelper; import com.redhat.rhn.manager.action.ActionManager; import com.redhat.rhn.manager.system.SystemManager; @@ -115,7 +116,7 @@ public class ScheduleImageDeploymentAction extends RhnAction { request.getRequestURI()); } // Find the default destination - forward = actionMapping.findForward("default"); + forward = actionMapping.findForward(RhnHelper.DEFAULT_FORWARD); } return forward; } diff --git a/java/code/src/com/redhat/rhn/frontend/action/user/UserCredentialsDeleteAction.java b/java/code/src/com/redhat/rhn/frontend/action/user/UserCredentialsDeleteAction.java index 7dcacef..431a2f1 100644 --- a/java/code/src/com/redhat/rhn/frontend/action/user/UserCredentialsDeleteAction.java +++ b/java/code/src/com/redhat/rhn/frontend/action/user/UserCredentialsDeleteAction.java @@ -28,6 +28,7 @@ import com.redhat.rhn.domain.credentials.CredentialsFactory; import com.redhat.rhn.domain.user.User; import com.redhat.rhn.frontend.struts.RequestContext; import com.redhat.rhn.frontend.struts.RhnAction; +import com.redhat.rhn.frontend.struts.RhnHelper; /** * Delete credentials for external systems or APIs. @@ -61,6 +62,6 @@ public class UserCredentialsDeleteAction extends RhnAction { getStrutsDelegate().saveMessages(request, messages); return mapping.findForward("success"); } - return mapping.findForward("default"); + return mapping.findForward(RhnHelper.DEFAULT_FORWARD); } } diff --git a/java/code/src/com/redhat/rhn/frontend/action/user/UserCredentialsEditAction.java b/java/code/src/com/redhat/rhn/frontend/action/user/UserCredentialsEditAction.java index 6473985..8048eb1 100644 --- a/java/code/src/com/redhat/rhn/frontend/action/user/UserCredentialsEditAction.java +++ b/java/code/src/com/redhat/rhn/frontend/action/user/UserCredentialsEditAction.java @@ -29,6 +29,7 @@ import com.redhat.rhn.domain.credentials.CredentialsFactory; import com.redhat.rhn.domain.user.User; import com.redhat.rhn.frontend.struts.RequestContext; import com.redhat.rhn.frontend.struts.RhnAction; +import com.redhat.rhn.frontend.struts.RhnHelper; /** * Create and edit credentials for external systems or APIs. @@ -93,6 +94,6 @@ public class UserCredentialsEditAction extends RhnAction { request.setAttribute(ATTRIB_CREDS, newCreds); } } - return mapping.findForward("default"); + return mapping.findForward(RhnHelper.DEFAULT_FORWARD); } } -- 1.7.7
_______________________________________________ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel