org.gnomekr.potron.service
Class ProjectManager

java.lang.Object
  extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
      extended by org.gnomekr.potron.service.ProjectManager
All Implemented Interfaces:
IProjectManager, InitializingBean

public class ProjectManager
extends HibernateDaoSupport
implements IProjectManager

ProjectManager.java

Version:
$Revision 1.1 $ $Date: 2005/09/11 05:49:44 $
Author:
Xavier Cho

Field Summary
 
Fields inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport
logger
 
Constructor Summary
ProjectManager()
           
 
Method Summary
 long addLanguageTeam(LanguageTeam team)
           
 long addTemplate(String projectId, String name, String description, Reader content)
           
 void createProject(Project project)
           
 void deleteProject(String id)
           
 LanguageTeam getLanguageTeam(long id)
           
 List<LanguageTeam> getLanguageTeams()
           
 Project getProject(String id)
           
 List<Project> getProjects()
           
 Template getTemplate(long id)
           
 void removeLanguageTeam(long id)
           
 void removeTemplate(long id)
           
 void updateLanguageTeam(LanguageTeam team)
           
 void updateProject(Project project)
           
 void updateTemplate(long id, String name, String description, Reader content)
           
 void updateTemplate(long id, String name, String description, String comment)
           
 
Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport
afterPropertiesSet, closeSessionIfNecessary, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, initDao, releaseSession, setHibernateTemplate, setSessionFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectManager

public ProjectManager()
Method Detail

createProject

public void createProject(Project project)
                   throws ProjectExistsException
Specified by:
createProject in interface IProjectManager
Throws:
ProjectExistsException
See Also:
IProjectManager.createProject(org.gnomekr.potron.data.Project)

getProject

public Project getProject(String id)
Specified by:
getProject in interface IProjectManager
See Also:
IProjectManager.getProject(java.lang.String)

getProjects

public List<Project> getProjects()
Specified by:
getProjects in interface IProjectManager
See Also:
IProjectManager.getProjects()

updateProject

public void updateProject(Project project)
Specified by:
updateProject in interface IProjectManager
See Also:
IProjectManager.updateProject(org.gnomekr.potron.data.Project)

deleteProject

public void deleteProject(String id)
Specified by:
deleteProject in interface IProjectManager
See Also:
IProjectManager.deleteProject(java.lang.String)

addLanguageTeam

public long addLanguageTeam(LanguageTeam team)
Specified by:
addLanguageTeam in interface IProjectManager
See Also:
IProjectManager.addLanguageTeam(org.gnomekr.potron.data.LanguageTeam)

getLanguageTeam

public LanguageTeam getLanguageTeam(long id)
Specified by:
getLanguageTeam in interface IProjectManager
See Also:
IProjectManager.getLanguageTeam(long)

getLanguageTeams

public List<LanguageTeam> getLanguageTeams()
Specified by:
getLanguageTeams in interface IProjectManager
See Also:
IProjectManager.getLanguageTeams()

updateLanguageTeam

public void updateLanguageTeam(LanguageTeam team)
Specified by:
updateLanguageTeam in interface IProjectManager
See Also:
IProjectManager.updateLanguageTeam(org.gnomekr.potron.data.LanguageTeam)

removeLanguageTeam

public void removeLanguageTeam(long id)
Specified by:
removeLanguageTeam in interface IProjectManager
See Also:
IProjectManager.removeLanguageTeam(long)

addTemplate

public long addTemplate(String projectId,
                        String name,
                        String description,
                        Reader content)
                 throws ParseException,
                        IOException
Specified by:
addTemplate in interface IProjectManager
Throws:
IOException
ParseException
See Also:
IProjectManager.addTemplate(java.lang.String, java.lang.String, java.lang.String, java.io.Reader)

getTemplate

public Template getTemplate(long id)
Specified by:
getTemplate in interface IProjectManager
See Also:
IProjectManager.getTemplate(long)

updateTemplate

public void updateTemplate(long id,
                           String name,
                           String description,
                           String comment)
Specified by:
updateTemplate in interface IProjectManager
See Also:
IProjectManager.updateTemplate(long, java.lang.String, java.lang.String, java.lang.String)

updateTemplate

public void updateTemplate(long id,
                           String name,
                           String description,
                           Reader content)
                    throws ParseException,
                           IOException
Specified by:
updateTemplate in interface IProjectManager
Throws:
ParseException
IOException
See Also:
IProjectManager.updateTemplate(long, java.lang.String, java.lang.String, java.io.Reader)

removeTemplate

public void removeTemplate(long id)
Specified by:
removeTemplate in interface IProjectManager
See Also:
IProjectManager.removeTemplate(long)


Copyright © 2000-2005 Gnome Korea. All Rights Reserved.