continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r593181 - in /maven/continuum/trunk/continuum-xmlrpc: continuum-xmlrpc-api/src/main/java/org/apache/maven/continuum/xmlrpc/ continuum-xmlrpc-client/src/main/java/org/apache/maven/continuum/xmlrpc/client/ continuum-xmlrpc-server/src/main/jav...
Date Thu, 08 Nov 2007 15:00:48 GMT
Author: evenisse
Date: Thu Nov  8 07:00:47 2007
New Revision: 593181

URL: http://svn.apache.org/viewvc?rev=593181&view=rev
Log:
[CONTINUUM-1546] Add addProjectGroup methods

Modified:
    maven/continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-api/src/main/java/org/apache/maven/continuum/xmlrpc/ContinuumService.java
    maven/continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-client/src/main/java/org/apache/maven/continuum/xmlrpc/client/ContinuumXmlRpcClient.java
    maven/continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-server/src/main/java/org/apache/maven/continuum/xmlrpc/server/ContinuumServiceImpl.java

Modified: maven/continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-api/src/main/java/org/apache/maven/continuum/xmlrpc/ContinuumService.java
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-api/src/main/java/org/apache/maven/continuum/xmlrpc/ContinuumService.java?rev=593181&r1=593180&r2=593181&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-api/src/main/java/org/apache/maven/continuum/xmlrpc/ContinuumService.java
(original)
+++ maven/continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-api/src/main/java/org/apache/maven/continuum/xmlrpc/ContinuumService.java
Thu Nov  8 07:00:47 2007
@@ -164,6 +164,18 @@
     ProjectGroupSummary updateProjectGroup( ProjectGroupSummary projectGroup )
         throws Exception;
 
+    /**
+     * Add a project Group.
+     *
+     * @param groupName   The project group name
+     * @param groupId     The project group id
+     * @param description The project group description
+     * @return the project group summary of the created project group
+     * @throws Exception
+     */
+    ProjectGroupSummary addProjectGroup( String groupName, String groupId, String description
)
+        throws Exception;
+
     // ----------------------------------------------------------------------
     // Build Definitions
     // ----------------------------------------------------------------------

Modified: maven/continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-client/src/main/java/org/apache/maven/continuum/xmlrpc/client/ContinuumXmlRpcClient.java
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-client/src/main/java/org/apache/maven/continuum/xmlrpc/client/ContinuumXmlRpcClient.java?rev=593181&r1=593180&r2=593181&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-client/src/main/java/org/apache/maven/continuum/xmlrpc/client/ContinuumXmlRpcClient.java
(original)
+++ maven/continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-client/src/main/java/org/apache/maven/continuum/xmlrpc/client/ContinuumXmlRpcClient.java
Thu Nov  8 07:00:47 2007
@@ -224,6 +224,18 @@
         return continuum.updateProjectGroup( projectGroup );
     }
 
+    public ProjectGroupSummary addProjectGroup( ProjectGroupSummary pg )
+        throws Exception
+    {
+        return addProjectGroup( pg.getName(), pg.getGroupId(), pg.getDescription() );
+    }
+
+    public ProjectGroupSummary addProjectGroup( String groupName, String groupId, String
description )
+        throws Exception
+    {
+        return continuum.addProjectGroup( groupName, groupId, description );
+    }
+
     // ----------------------------------------------------------------------
     // Build Definitions
     // ----------------------------------------------------------------------

Modified: maven/continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-server/src/main/java/org/apache/maven/continuum/xmlrpc/server/ContinuumServiceImpl.java
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-server/src/main/java/org/apache/maven/continuum/xmlrpc/server/ContinuumServiceImpl.java?rev=593181&r1=593180&r2=593181&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-server/src/main/java/org/apache/maven/continuum/xmlrpc/server/ContinuumServiceImpl.java
(original)
+++ maven/continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-server/src/main/java/org/apache/maven/continuum/xmlrpc/server/ContinuumServiceImpl.java
Thu Nov  8 07:00:47 2007
@@ -309,6 +309,18 @@
         return getProjectGroupSummary( projectGroup.getId() );
     }
 
+    public ProjectGroupSummary addProjectGroup( String groupName, String groupId, String
description )
+        throws Exception
+    {
+        org.apache.maven.continuum.model.project.ProjectGroup pg =
+            new org.apache.maven.continuum.model.project.ProjectGroup();
+        pg.setName( groupName );
+        pg.setGroupId( groupId );
+        pg.setDescription( description );
+        continuum.addProjectGroup( pg );
+        return populateProjectGroupSummary( continuum.getProjectGroupByGroupId( groupId )
);
+    }
+
     // ----------------------------------------------------------------------
     // Build Definitions
     // ----------------------------------------------------------------------



Mime
View raw message