1 package org.gnomekr.potron.service; 2 3 import java.io.IOException; 4 import java.io.Reader; 5 import java.util.List; 6 7 import org.gnomekr.potron.data.LanguageTeam; 8 import org.gnomekr.potron.data.Project; 9 import org.gnomekr.potron.data.Template; 10 import org.gnomekr.potron.parser.ParseException; 11 12 /*** 13 * IProjectManager.java 14 * @author Xavier Cho 15 * @version $Revision 1.1 $ $Date: 2005/09/11 05:49:44 $ 16 */ 17 public interface IProjectManager { 18 19 void createProject(Project project) throws ProjectExistsException; 20 21 Project getProject(String id); 22 23 List<Project> getProjects(); 24 25 void updateProject(Project project); 26 27 void deleteProject(String id); 28 29 long addLanguageTeam(LanguageTeam team); 30 31 LanguageTeam getLanguageTeam(long id); 32 33 List<LanguageTeam> getLanguageTeams(); 34 35 void updateLanguageTeam(LanguageTeam team); 36 37 void removeLanguageTeam(long id); 38 39 long addTemplate( 40 String projectId, 41 String name, 42 String description, 43 Reader content) throws ParseException, IOException; 44 45 Template getTemplate(long id); 46 47 void updateTemplate(long id, String name, String description, String comment); 48 49 void updateTemplate(long id, String name, String description, Reader content) 50 throws ParseException, IOException; 51 52 void removeTemplate(long id); 53 54 }