You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@continuum.apache.org by ri...@apache.org on 2006/12/28 09:42:58 UTC

svn commit: r490677 - in /maven/continuum/branches/key-based-refactor/continuum-api/src/main/java/org/apache/maven/continuum/store: ProjectGroupStore.java ProjectStore.java SystemStore.java

Author: rinku
Date: Thu Dec 28 00:42:55 2006
New Revision: 490677

URL: http://svn.apache.org/viewvc?view=rev&rev=490677
Log:
o  added more methods to retrieve *all* of specific entity instances in the store.

Modified:
    maven/continuum/branches/key-based-refactor/continuum-api/src/main/java/org/apache/maven/continuum/store/ProjectGroupStore.java
    maven/continuum/branches/key-based-refactor/continuum-api/src/main/java/org/apache/maven/continuum/store/ProjectStore.java
    maven/continuum/branches/key-based-refactor/continuum-api/src/main/java/org/apache/maven/continuum/store/SystemStore.java

Modified: maven/continuum/branches/key-based-refactor/continuum-api/src/main/java/org/apache/maven/continuum/store/ProjectGroupStore.java
URL: http://svn.apache.org/viewvc/maven/continuum/branches/key-based-refactor/continuum-api/src/main/java/org/apache/maven/continuum/store/ProjectGroupStore.java?view=diff&rev=490677&r1=490676&r2=490677
==============================================================================
--- maven/continuum/branches/key-based-refactor/continuum-api/src/main/java/org/apache/maven/continuum/store/ProjectGroupStore.java (original)
+++ maven/continuum/branches/key-based-refactor/continuum-api/src/main/java/org/apache/maven/continuum/store/ProjectGroupStore.java Thu Dec 28 00:42:55 2006
@@ -1,12 +1,27 @@
-/**
- * 
- */
 package org.apache.maven.continuum.store;
 
+/*
+ * Copyright 2004-2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 import org.apache.maven.continuum.key.GroupProjectKey;
 import org.apache.maven.continuum.model.project.Project;
 import org.apache.maven.continuum.model.project.ProjectGroup;
 
+import java.util.List;
+
 /**
  * Defines the contract consisting of operations that can be performed on
  * {@link ProjectGroup} entity.
@@ -17,7 +32,7 @@
  */
 public interface ProjectGroupStore
 {
-    
+
     public static final String ROLE = ProjectGroupStore.class.getName();
 
     /**
@@ -59,6 +74,14 @@
      * @throws ContinuumStoreException if there was an error saving the entity.
      */
     public ProjectGroup saveProjectGroup( ProjectGroup projectGroup ) throws ContinuumStoreException;
-    
+
+    /**
+     * Obtains and returns a {@link List} of <b>all</b> {@link ProjectGroup}
+     * instances for the system, stored in the underlying store.
+     * 
+     * @return list of all {@link ProjectGroup} instances stored.
+     * @throws ContinuumStoreException
+     */
+    public List getAllProjectGroups() throws ContinuumStoreException;
 
 }

Modified: maven/continuum/branches/key-based-refactor/continuum-api/src/main/java/org/apache/maven/continuum/store/ProjectStore.java
URL: http://svn.apache.org/viewvc/maven/continuum/branches/key-based-refactor/continuum-api/src/main/java/org/apache/maven/continuum/store/ProjectStore.java?view=diff&rev=490677&r1=490676&r2=490677
==============================================================================
--- maven/continuum/branches/key-based-refactor/continuum-api/src/main/java/org/apache/maven/continuum/store/ProjectStore.java (original)
+++ maven/continuum/branches/key-based-refactor/continuum-api/src/main/java/org/apache/maven/continuum/store/ProjectStore.java Thu Dec 28 00:42:55 2006
@@ -19,6 +19,8 @@
 import org.apache.maven.continuum.key.GroupProjectKey;
 import org.apache.maven.continuum.model.project.Project;
 
+import java.util.List;
+
 /**
  * Defines the contract consisting of operations that can be performed on
  * {@link Project} entity.
@@ -66,5 +68,14 @@
      *             entity.
      */
     public void deleteProject( Project project ) throws ContinuumStoreException;
+
+    /**
+     * Obtains and returns a {@link List} of <b>all</b> {@link Project}
+     * instances for the system, stored in the underlying store.
+     * 
+     * @return list of all {@link Project} instances stored.
+     * @throws ContinuumStoreException
+     */
+    public List getAllProjects() throws ContinuumStoreException;
 
 }

Modified: maven/continuum/branches/key-based-refactor/continuum-api/src/main/java/org/apache/maven/continuum/store/SystemStore.java
URL: http://svn.apache.org/viewvc/maven/continuum/branches/key-based-refactor/continuum-api/src/main/java/org/apache/maven/continuum/store/SystemStore.java?view=diff&rev=490677&r1=490676&r2=490677
==============================================================================
--- maven/continuum/branches/key-based-refactor/continuum-api/src/main/java/org/apache/maven/continuum/store/SystemStore.java (original)
+++ maven/continuum/branches/key-based-refactor/continuum-api/src/main/java/org/apache/maven/continuum/store/SystemStore.java Thu Dec 28 00:42:55 2006
@@ -1,6 +1,3 @@
-/**
- * 
- */
 package org.apache.maven.continuum.store;
 
 import org.apache.maven.continuum.model.project.Profile;
@@ -8,6 +5,8 @@
 import org.apache.maven.continuum.model.system.Installation;
 import org.apache.maven.continuum.model.system.SystemConfiguration;
 
+import java.util.List;
+
 /**
  * Defines the contract consisting of operations that can be performed on
  * following entities:
@@ -167,5 +166,42 @@
      */
     public SystemConfiguration saveSystemConfiguration( SystemConfiguration systemConfiguration )
         throws ContinuumStoreException;
+
+    /**
+     * Obtains and returns a {@link List} of <b>all</b> {@link Schedule}
+     * instances for the system, stored in the underlying store.
+     * 
+     * @return list of all {@link Schedule} instances stored.
+     * @throws ContinuumStoreException
+     */
+    public List getAllSchedules() throws ContinuumStoreException;
+
+    /**
+     * Obtains and returns a {@link List} of <b>all</b> {@link Profile}
+     * instances for the system, stored in the underlying store.
+     * 
+     * @return list of all {@link Profile} instances stored.
+     * @throws ContinuumStoreException
+     */
+    public List getAllProfiles() throws ContinuumStoreException;
+
+    /**
+     * Obtains and returns a {@link List} of <b>all</b> {@link Installation}
+     * instances for the system, stored in the underlying store.
+     * 
+     * @return list of all {@link Installation} instances stored.
+     * @throws ContinuumStoreException
+     */
+    public List getAllInstallations() throws ContinuumStoreException;
+
+    /**
+     * Obtains and returns a {@link List} of <b>all</b>
+     * {@link SystemConfiguration} instances for the system, stored in the
+     * underlying store.
+     * 
+     * @return list of all {@link SystemConfiguration} instances stored.
+     * @throws ContinuumStoreException
+     */
+    public List getAllSystemConfigurations() throws ContinuumStoreException;
 
 }