org.appfuse.service
Class ResumeManagerImpl

java.lang.Object
  extended byorg.appfuse.service.BaseManager
      extended byorg.appfuse.service.ResumeManagerImpl
All Implemented Interfaces:
ResumeManager

public class ResumeManagerImpl
extends BaseManager
implements ResumeManager

Business Delegate (Proxy) Interface to handle communication between web and persistence layer

View Source

Version:
$Revision: 1.1 $ $Date: 2004/03/31 13:04:17 $
Author:
Matt Raible

Constructor Summary
ResumeManagerImpl()
           
 
Method Summary
 Object getEducation(String id)
          Gets a specific education experience based on its id.
 Object getExperience(String id)
          Gets a specific work experience based on its id.
 Object getMembership(String id)
          Gets a specific membership based on its id.
 List getMemberships(String resumeId)
          Gets a list of memberships based on the passed in resumeId.
 Object getObject(Object pojo)
          Convenience method to use reflection and fetch an object based on its id.
 Object getReference(String id)
          Gets a specific reference based on its id.
 List getReferences(String resumeId)
          Gets a list of references based on the passed in resumeId.
 Object getResume(String resumeId)
          Retrives a single resume object based on a resumeId
 List getResumesForUser(String userId)
          Retrieves resumes based on a userId
 Object getResumeSkill(String id)
          Retrieves a single skill object based on its id
 List getResumeSkills(String resumeId)
          Retrieves multiple skill objects based on a resumeId
 List getSchools(String resumeId)
          Gets a list of education experiences based on the passed in resumeId.
 List getWorkHistory(String resumeId)
          Gets a list of work experiences based on the passed in resumeId.
 void removeObject(Object o)
          Removes an object from the database by id
 Object saveObject(Object o)
          Generic method to save an object - handles both update and insert.
 Object saveResume(Object obj)
          Saves a resume's information.
 void setResumeDAO(ResumeDAO dao)
           
 void setSkillDAO(SkillDAO dao)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResumeManagerImpl

public ResumeManagerImpl()
Method Detail

setResumeDAO

public void setResumeDAO(ResumeDAO dao)

setSkillDAO

public void setSkillDAO(SkillDAO dao)

getResumesForUser

public List getResumesForUser(String userId)
                       throws Exception
Description copied from interface: ResumeManager
Retrieves resumes based on a userId

Specified by:
getResumesForUser in interface ResumeManager
Parameters:
userId -
Returns:
List of resumes for user
Throws:
Exception
See Also:
ResumeManager.getResumesForUser(java.lang.String)

getResume

public Object getResume(String resumeId)
                 throws Exception
Description copied from interface: ResumeManager
Retrives a single resume object based on a resumeId

Specified by:
getResume in interface ResumeManager
Parameters:
resumeId -
Returns:
populated Resume object
Throws:
Exception
See Also:
ResumeManager.getResume(java.lang.String)

saveResume

public Object saveResume(Object obj)
                  throws Exception
Description copied from interface: ResumeManager
Saves a resume's information. This method can also be used to add a new resume.

Specified by:
saveResume in interface ResumeManager
Parameters:
obj - a populated resume object
Returns:
updated resume information
Throws:
Exception
See Also:
ResumeManager.saveResume(java.lang.Object)

removeObject

public void removeObject(Object o)
                  throws Exception
Description copied from interface: ResumeManager
Removes an object from the database by id

Specified by:
removeObject in interface ResumeManager
Parameters:
o - the object to remove
Throws:
Exception - when something goes wrong
See Also:
ResumeManager.removeObject(java.lang.Object)

saveObject

public Object saveObject(Object o)
                  throws Exception
Description copied from interface: ResumeManager
Generic method to save an object - handles both update and insert.

Specified by:
saveObject in interface ResumeManager
Parameters:
o - the object to save
Throws:
Exception
See Also:
ResumeManager.removeObject(java.lang.Object)

getObject

public Object getObject(Object pojo)
                 throws Exception
Convenience method to use reflection and fetch an object based on its id.

Parameters:
pojo - The POJO you'd like to lookup
Returns:
a populated pojo - null if it doesn't exist
Throws:
Exception

getEducation

public Object getEducation(String id)
                    throws Exception
Description copied from interface: ResumeManager
Gets a specific education experience based on its id.

Specified by:
getEducation in interface ResumeManager
Parameters:
id -
Returns:
Throws:
Exception
See Also:
ResumeManager.getEducation(java.lang.String)

getResumeSkill

public Object getResumeSkill(String id)
                      throws Exception
Description copied from interface: ResumeManager
Retrieves a single skill object based on its id

Specified by:
getResumeSkill in interface ResumeManager
Parameters:
id -
Returns:
populated ResumeSkill object
Throws:
Exception
See Also:
ResumeManager.getResumeSkill(java.lang.String)

getResumeSkills

public List getResumeSkills(String resumeId)
                     throws Exception
Description copied from interface: ResumeManager
Retrieves multiple skill objects based on a resumeId

Specified by:
getResumeSkills in interface ResumeManager
Parameters:
resumeId -
Returns:
List a list of position objects
Throws:
Exception
See Also:
ResumeManager.getResumeSkills(java.lang.String)

getExperience

public Object getExperience(String id)
                     throws Exception
Description copied from interface: ResumeManager
Gets a specific work experience based on its id.

Specified by:
getExperience in interface ResumeManager
Parameters:
id -
Returns:
Throws:
Exception
See Also:
ResumeManager.getExperience(java.lang.String)

getMembership

public Object getMembership(String id)
                     throws Exception
Description copied from interface: ResumeManager
Gets a specific membership based on its id.

Specified by:
getMembership in interface ResumeManager
Parameters:
id -
Returns:
Throws:
Exception
See Also:
ResumeManager.getMembership(java.lang.String)

getMemberships

public List getMemberships(String resumeId)
                    throws Exception
Description copied from interface: ResumeManager
Gets a list of memberships based on the passed in resumeId.

Specified by:
getMemberships in interface ResumeManager
Parameters:
resumeId -
Returns:
Throws:
Exception
See Also:
ResumeManager.getMemberships(java.lang.String)

getReference

public Object getReference(String id)
                    throws Exception
Description copied from interface: ResumeManager
Gets a specific reference based on its id.

Specified by:
getReference in interface ResumeManager
Parameters:
id -
Returns:
Throws:
Exception
See Also:
ResumeManager.getReference(java.lang.String)

getReferences

public List getReferences(String resumeId)
                   throws Exception
Description copied from interface: ResumeManager
Gets a list of references based on the passed in resumeId.

Specified by:
getReferences in interface ResumeManager
Parameters:
resumeId -
Returns:
Throws:
Exception
See Also:
ResumeManager.getReferences(java.lang.String)

getSchools

public List getSchools(String resumeId)
                throws Exception
Description copied from interface: ResumeManager
Gets a list of education experiences based on the passed in resumeId.

Specified by:
getSchools in interface ResumeManager
Parameters:
resumeId -
Returns:
Throws:
Exception
See Also:
ResumeManager.getSchools(java.lang.String)

getWorkHistory

public List getWorkHistory(String resumeId)
                    throws Exception
Description copied from interface: ResumeManager
Gets a list of work experiences based on the passed in resumeId.

Specified by:
getWorkHistory in interface ResumeManager
Parameters:
resumeId -
Returns:
Throws:
Exception
See Also:
ResumeManager.getWorkHistory(java.lang.String)


Copyright © 2002-2004