com.atlassian.bamboo.author
Class AuthorHibernateDao
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate.support.HibernateDaoSupport
com.atlassian.hibernate.HibernateObjectDao
com.atlassian.bamboo.persistence.BambooHibernateObjectDao
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
Fields inherited from class org.springframework.dao.support.DaoSupport |
logger |
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 bucket.core.persistence.ObjectDao |
findAll, findAllSorted, refresh, remove, replicate, save, saveRaw |
AuthorHibernateDao
public AuthorHibernateDao()
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<ResultsSummary> 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<ResultsSummary> 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<ResultsSummary> 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<ResultsSummary> 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<ResultsSummary> getBuildResultsBrokenByAuthor(ExtendedAuthor author,
int maxResultCount)
- Specified by:
getBuildResultsBrokenByAuthor
in interface AuthorDao
- Returns:
List
of BuildResultsSummary
broken by author
getBuildResultsBrokenByAuthor
@Deprecated
public java.util.List<ResultsSummary> getBuildResultsBrokenByAuthor(ExtendedAuthor author)
- Deprecated.
- Specified by:
getBuildResultsBrokenByAuthor
in interface AuthorDao
- Returns:
List
of BuildResultsSummary
broken by author
getBuildResultsFixedByAuthor
@NotNull
public java.util.List<ResultsSummary> getBuildResultsFixedByAuthor(ExtendedAuthor author,
int maxResultCount)
- Specified by:
getBuildResultsFixedByAuthor
in interface AuthorDao
- Returns:
List
of BuildResultsSummary
fixed by author
getBuildResultsFixedByAuthor
@Deprecated
public java.util.List<ResultsSummary> 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<ExtendedAuthor> 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<ResultsSummary> 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
setPlanDiscriminatorRegistry
public void setPlanDiscriminatorRegistry(PlanDiscriminatorRegistry planDiscriminatorRegistry)
Copyright © 2010 Atlassian. All Rights Reserved.