continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject svn commit: r1236030 - in /continuum/trunk/continuum-webapp/src/main: java/org/apache/maven/continuum/web/action/component/BuildDefinitionSummaryAction.java webapp/WEB-INF/jsp/components/buildDefinitionGroupSummaryComponent.jsp
Date Thu, 26 Jan 2012 02:57:44 GMT
Author: ctan
Date: Thu Jan 26 02:57:44 2012
New Revision: 1236030

URL: http://svn.apache.org/viewvc?rev=1236030&view=rev
Log:
[CONTINUUM-2670] added projectGroupId parameter when editing project level build definition
from the group build definition page

Modified:
    continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/component/BuildDefinitionSummaryAction.java
    continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/components/buildDefinitionGroupSummaryComponent.jsp

Modified: continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/component/BuildDefinitionSummaryAction.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/component/BuildDefinitionSummaryAction.java?rev=1236030&r1=1236029&r2=1236030&view=diff
==============================================================================
--- continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/component/BuildDefinitionSummaryAction.java
(original)
+++ continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/component/BuildDefinitionSummaryAction.java
Thu Jan 26 02:57:44 2012
@@ -74,7 +74,7 @@ public class BuildDefinitionSummaryActio
             checkViewProjectGroupAuthorization( projectGroupName );
 
             groupBuildDefinitionSummaries = gatherGroupBuildDefinitionSummaries( projectGroupId
);
-            projectBuildDefinitionSummaries = gatherProjectBuildDefinitionSummaries( projectId
);
+            projectBuildDefinitionSummaries = gatherProjectBuildDefinitionSummaries( projectId,
projectGroupId );
 
             fixDefaultBuildDefinitions();
 
@@ -107,7 +107,7 @@ public class BuildDefinitionSummaryActio
 
             for ( Project project : (List<Project>) projectGroup.getProjects() )
             {
-                projectBuildDefinitionSummaries.addAll( gatherProjectBuildDefinitionSummaries(
project.getId() ) );
+                projectBuildDefinitionSummaries.addAll( gatherProjectBuildDefinitionSummaries(
project.getId(), projectGroupId ) );
 
             }
 
@@ -154,7 +154,7 @@ public class BuildDefinitionSummaryActio
         }
     }
 
-    private List<BuildDefinitionSummary> gatherProjectBuildDefinitionSummaries( int
projectId )
+    private List<BuildDefinitionSummary> gatherProjectBuildDefinitionSummaries( int
projectId, int projectGroupId )
         throws ContinuumException
     {
         List<BuildDefinitionSummary> summaryList = new ArrayList<BuildDefinitionSummary>();
@@ -166,6 +166,7 @@ public class BuildDefinitionSummaryActio
             bds.setFrom( "PROJECT" );
             bds.setProjectId( project.getId() );
             bds.setProjectName( project.getName() );
+            bds.setProjectGroupId( projectGroupId );
 
             summaryList.add( bds );
         }

Modified: continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/components/buildDefinitionGroupSummaryComponent.jsp
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/components/buildDefinitionGroupSummaryComponent.jsp?rev=1236030&r1=1236029&r2=1236030&view=diff
==============================================================================
--- continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/components/buildDefinitionGroupSummaryComponent.jsp
(original)
+++ continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/components/buildDefinitionGroupSummaryComponent.jsp
Thu Jan 26 02:57:44 2012
@@ -194,6 +194,7 @@
             <s:param name="projectId"><c:out value="${pageScope.buildDefinitionSummary.projectId}"/></s:param>
             <s:param name="buildDefinitionId"><c:out value="${pageScope.buildDefinitionSummary.id}"/></s:param>
             <s:param name="groupBuildView" value="true"/>
+            <s:param name="projectGroupId"><c:out value="${pageScope.buildDefinitionSummary.projectGroupId}"/></s:param>
           </s:url>
           <s:a href="%{editUrl}">
               <img src="<s:url value='/images/edit.gif' includeParams="none"/>"
alt="<s:text name='edit'/>" title="<s:text name='edit'/>" border="0">



Mime
View raw message