com.atlassian.bamboo.author
Class AuthorHibernateDao

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate.support.HibernateDaoSupport
          extended by com.atlassian.hibernate.HibernateObjectDao
              extended by com.atlassian.bamboo.persistence.BambooHibernateObjectDao
                  extended by com.atlassian.bamboo.author.AuthorHibernateDao
All Implemented Interfaces:
bucket.core.persistence.ObjectDao, AuthorDao, BambooObjectDao, org.springframework.beans.factory.InitializingBean

public class AuthorHibernateDao
extends BambooHibernateObjectDao
implements AuthorDao


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
AuthorHibernateDao()
           
 
Method Summary
 java.util.Set getAllUnlinkedAuthors()
           
 ExtendedAuthor getAuthorByName(java.lang.String name)
           
 java.util.List getBuildResultsBrokenByAuthor(ExtendedAuthor author)
           
 java.util.List getBuildResultsFailedByAuthor(ExtendedAuthor author)
           
 java.util.List getBuildResultsFixedByAuthor(ExtendedAuthor author)
           
 java.util.List getBuildResultsSuccessfulByAuthor(ExtendedAuthor author)
           
 java.util.List getBuildResultsTriggeredByAuthor(ExtendedAuthor author)
           
 java.util.List getLinkedAuthorsForUser(com.atlassian.user.User user)
           
 java.lang.Class getPersistentClass()
           
 
Methods inherited from class com.atlassian.bamboo.persistence.BambooHibernateObjectDao
findById
 
Methods inherited from class com.atlassian.hibernate.HibernateObjectDao
findAll, findAllSorted, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findSingleObject, getByClassId, index, refresh, reIndex, remove, replicate, save, saveRaw, setIndexer, unIndex, updateModificationData
 
Methods inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory
 
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.bamboo.persistence.BambooObjectDao
findById
 
Methods inherited from interface bucket.core.persistence.ObjectDao
findAll, findAllSorted, refresh, remove, replicate, save, saveRaw
 

Constructor Detail

AuthorHibernateDao

public AuthorHibernateDao()
Method Detail

getPersistentClass

public java.lang.Class getPersistentClass()
Specified by:
getPersistentClass in interface bucket.core.persistence.ObjectDao

getAuthorByName

public ExtendedAuthor getAuthorByName(java.lang.String name)
Specified by:
getAuthorByName in interface AuthorDao
Returns:
a ExtendedAuthor object given an author name

getBuildResultsFailedByAuthor

public java.util.List getBuildResultsFailedByAuthor(ExtendedAuthor author)
Specified by:
getBuildResultsFailedByAuthor in interface AuthorDao
Returns:
List of BuildResultsSummary triggered by author and failed

getBuildResultsSuccessfulByAuthor

public java.util.List getBuildResultsSuccessfulByAuthor(ExtendedAuthor author)
Specified by:
getBuildResultsSuccessfulByAuthor in interface AuthorDao
Returns:
List of BuildResultsSummary triggered by author and succesful

getBuildResultsBrokenByAuthor

public java.util.List getBuildResultsBrokenByAuthor(ExtendedAuthor author)
Specified by:
getBuildResultsBrokenByAuthor in interface AuthorDao
Returns:
List of BuildResultsSummary broken by author

getBuildResultsFixedByAuthor

public java.util.List getBuildResultsFixedByAuthor(ExtendedAuthor author)
Specified by:
getBuildResultsFixedByAuthor in interface AuthorDao
Returns:
List of BuildResultsSummary fixed by author

getAllUnlinkedAuthors

public java.util.Set getAllUnlinkedAuthors()
Specified by:
getAllUnlinkedAuthors in interface AuthorDao
Returns:
Set of ExtendedAuthor which are not yet linked to any user.

getLinkedAuthorsForUser

public java.util.List getLinkedAuthorsForUser(com.atlassian.user.User user)
Specified by:
getLinkedAuthorsForUser in interface AuthorDao
Returns:
List of ExtendedAuthor which are linked to a given user.

getBuildResultsTriggeredByAuthor

public java.util.List getBuildResultsTriggeredByAuthor(ExtendedAuthor author)
Specified by:
getBuildResultsTriggeredByAuthor in interface AuthorDao
Returns:
List of BuildResultsSummary triggered by author


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.