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<BuildResultsSummary> getBuildResultsBrokenByAuthor(ExtendedAuthor author)
          Deprecated. 
 java.util.List<BuildResultsSummary> getBuildResultsBrokenByAuthor(ExtendedAuthor author, int maxResultCount)
           
 java.util.List<BuildResultsSummary> getBuildResultsFailedByAuthor(ExtendedAuthor author)
          Deprecated. 
 java.util.List<BuildResultsSummary> getBuildResultsFailedByAuthor(ExtendedAuthor author, int maxResultCount)
           
 java.util.List<BuildResultsSummary> getBuildResultsFixedByAuthor(ExtendedAuthor author)
          Deprecated. 
 java.util.List<BuildResultsSummary> getBuildResultsFixedByAuthor(ExtendedAuthor author, int maxResultCount)
           
 java.util.List<BuildResultsSummary> getBuildResultsSuccessfulByAuthor(ExtendedAuthor author)
          Deprecated. 
 java.util.List<BuildResultsSummary> getBuildResultsSuccessfulByAuthor(ExtendedAuthor author, int maxResultCount)
           
 java.util.List getBuildResultsTriggeredByAuthor(ExtendedAuthor author)
           
 java.util.List<BuildResultsSummary> getBuildResultsTriggeredByAuthor(ExtendedAuthor author, int maxResultCount)
           
 java.util.List<ExtendedAuthor> getLinkedAuthorsForUser(com.atlassian.user.User user)
           
 int getNumberOfBuildBrokenByAuthor(ExtendedAuthor author)
           
 int getNumberOfBuildFixedByAuthor(ExtendedAuthor author)
           
 int getNumberOfBuildsTriggeredByAuthor(ExtendedAuthor author)
           
 int getNumberOfFailedBuildsByAuthor(ExtendedAuthor author)
           
 int getNumberOfSuccessfulBuildsByAuthor(ExtendedAuthor author)
           
 java.lang.Class getPersistentClass()
           
 
Methods inherited from class com.atlassian.bamboo.persistence.BambooHibernateObjectDao
executeCountQuery, executeReturnLong, findById, 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

@NotNull
public java.util.List<BuildResultsSummary> getBuildResultsFailedByAuthor(ExtendedAuthor author,
                                                                                 int maxResultCount)
Specified by:
getBuildResultsFailedByAuthor in interface AuthorDao
Returns:
List of BuildResultsSummary triggered by author and failed

getBuildResultsFailedByAuthor

@Deprecated
public java.util.List<BuildResultsSummary> getBuildResultsFailedByAuthor(ExtendedAuthor author)
Deprecated. 

Specified by:
getBuildResultsFailedByAuthor in interface AuthorDao
Returns:
List of BuildResultsSummary triggered by author and failed

getBuildResultsSuccessfulByAuthor

@NotNull
public java.util.List<BuildResultsSummary> getBuildResultsSuccessfulByAuthor(ExtendedAuthor author,
                                                                                     int maxResultCount)
Specified by:
getBuildResultsSuccessfulByAuthor in interface AuthorDao
Returns:
List of BuildResultsSummary triggered by author and succesful

getBuildResultsSuccessfulByAuthor

@Deprecated
public java.util.List<BuildResultsSummary> getBuildResultsSuccessfulByAuthor(ExtendedAuthor author)
Deprecated. 

Specified by:
getBuildResultsSuccessfulByAuthor in interface AuthorDao
Returns:
List of BuildResultsSummary triggered by author and succesful

getBuildResultsBrokenByAuthor

@NotNull
public java.util.List<BuildResultsSummary> getBuildResultsBrokenByAuthor(ExtendedAuthor author,
                                                                                 int maxResultCount)
Specified by:
getBuildResultsBrokenByAuthor in interface AuthorDao
Returns:
List of BuildResultsSummary broken by author

getBuildResultsBrokenByAuthor

@Deprecated
public java.util.List<BuildResultsSummary> getBuildResultsBrokenByAuthor(ExtendedAuthor author)
Deprecated. 

Specified by:
getBuildResultsBrokenByAuthor in interface AuthorDao
Returns:
List of BuildResultsSummary broken by author

getBuildResultsFixedByAuthor

@NotNull
public java.util.List<BuildResultsSummary> getBuildResultsFixedByAuthor(ExtendedAuthor author,
                                                                                int maxResultCount)
Specified by:
getBuildResultsFixedByAuthor in interface AuthorDao
Returns:
List of BuildResultsSummary fixed by author

getBuildResultsFixedByAuthor

@Deprecated
public java.util.List<BuildResultsSummary> getBuildResultsFixedByAuthor(ExtendedAuthor author)
Deprecated. 

Specified by:
getBuildResultsFixedByAuthor in interface AuthorDao
Returns:
List of BuildResultsSummary fixed by author

getNumberOfFailedBuildsByAuthor

public int getNumberOfFailedBuildsByAuthor(ExtendedAuthor author)
Specified by:
getNumberOfFailedBuildsByAuthor in interface AuthorDao
Returns:
int

getNumberOfSuccessfulBuildsByAuthor

public int getNumberOfSuccessfulBuildsByAuthor(ExtendedAuthor author)
Specified by:
getNumberOfSuccessfulBuildsByAuthor in interface AuthorDao
Returns:
int

getNumberOfBuildFixedByAuthor

public int getNumberOfBuildFixedByAuthor(ExtendedAuthor author)
Specified by:
getNumberOfBuildFixedByAuthor in interface AuthorDao
Returns:
int

getNumberOfBuildBrokenByAuthor

public int getNumberOfBuildBrokenByAuthor(ExtendedAuthor author)
Specified by:
getNumberOfBuildBrokenByAuthor in interface AuthorDao
Returns:
int

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<ExtendedAuthor> 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

getBuildResultsTriggeredByAuthor

@NotNull
public java.util.List<BuildResultsSummary> getBuildResultsTriggeredByAuthor(ExtendedAuthor author,
                                                                                    int maxResultCount)
Specified by:
getBuildResultsTriggeredByAuthor in interface AuthorDao
Returns:
List of BuildResultsSummary triggered by author

getNumberOfBuildsTriggeredByAuthor

public int getNumberOfBuildsTriggeredByAuthor(ExtendedAuthor author)
Specified by:
getNumberOfBuildsTriggeredByAuthor in interface AuthorDao
Returns:
int


Copyright © 2010 Atlassian. All Rights Reserved.