Package com.atlassian.bamboo.webhook
Class WebhookResponseHibernateDao
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate5.support.HibernateDaoSupport
com.atlassian.bamboo.persistence3.StatelessSessionHibernateDaoSupport
com.atlassian.bamboo.persistence3.BambooHibernateObjectDao<WebhookResponseDetails>
com.atlassian.bamboo.webhook.WebhookResponseHibernateDao
- All Implemented Interfaces:
BambooObjectDao<WebhookResponseDetails>,WebhookResponseDao,org.springframework.beans.factory.InitializingBean
public class WebhookResponseHibernateDao
extends BambooHibernateObjectDao<WebhookResponseDetails>
implements WebhookResponseDao
-
Field Summary
Fields inherited from class org.springframework.dao.support.DaoSupport
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull LongcountWebhookResponsesByDeploymentResultId(Long deploymentResultId) Count all webhook responses in deployment result.@NotNull List<WebhookResponse>findWebhookResponseByDeploymentResultId(Long deploymentResultId) Find short descriptions of webhook responses associated with deployment result id.@NotNull List<WebhookResponse>findWebhookResponseByPlanResultKey(String planResultKey) Find short descriptions of webhook responses associated with build key.@NotNull List<WebhookResponseDetails>findWebhookResponseDetailsByDeploymentId(Long deploymentResultId) Find full description of webhook responses associated with deployment result id.@NotNull List<WebhookResponseDetails>Find all webhook responses associated with given plan, not taking into account build number.@NotNull List<WebhookResponseDetails>findWebhookResponseDetailsByPlanResultKey(String planResultKey) Find full description of webhook responses associated with plan result key.@Nullable WebhookResponseDetailsgetWebhookResponseDetails(Long webhookResponseId) Find full description of webhook response associated with webhook response id.Methods inherited from class com.atlassian.bamboo.persistence3.BambooHibernateObjectDao
convertSearchTermToLikeExpression, countAll, countWithRestriction, delete, deleteAll, executeCountQuery, findAll, findById, merge, save, saveAllMethods inherited from class com.atlassian.bamboo.persistence3.StatelessSessionHibernateDaoSupport
getCacheAwareHibernateTemplateMethods inherited from class org.springframework.orm.hibernate5.support.HibernateDaoSupport
checkDaoConfig, createHibernateTemplate, currentSession, getHibernateTemplate, getSessionFactory, setHibernateTemplate, setSessionFactoryMethods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDaoMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.bamboo.persistence3.BambooObjectDao
countAll, countWithRestriction, delete, deleteAll, findAll, findById, merge, save, saveAll
-
Constructor Details
-
WebhookResponseHibernateDao
public WebhookResponseHibernateDao()
-
-
Method Details
-
findWebhookResponseByDeploymentResultId
@NotNull public @NotNull List<WebhookResponse> findWebhookResponseByDeploymentResultId(Long deploymentResultId) Description copied from interface:WebhookResponseDaoFind short descriptions of webhook responses associated with deployment result id.- Specified by:
findWebhookResponseByDeploymentResultIdin interfaceWebhookResponseDao- Returns:
- a list of all webhook responses (DTO not full entities) associated with the given deployment result id.
-
findWebhookResponseByPlanResultKey
@NotNull public @NotNull List<WebhookResponse> findWebhookResponseByPlanResultKey(String planResultKey) Description copied from interface:WebhookResponseDaoFind short descriptions of webhook responses associated with build key.- Specified by:
findWebhookResponseByPlanResultKeyin interfaceWebhookResponseDao- Returns:
- a list of all webhook responses (DTO not full entities) associated with the given plan result key.
-
findWebhookResponseDetailsByPlanResultKey
@NotNull public @NotNull List<WebhookResponseDetails> findWebhookResponseDetailsByPlanResultKey(String planResultKey) Description copied from interface:WebhookResponseDaoFind full description of webhook responses associated with plan result key.- Specified by:
findWebhookResponseDetailsByPlanResultKeyin interfaceWebhookResponseDao- Parameters:
planResultKey- in format ProjectKey-PlanKey-buildNumber- Returns:
- a list of all webhook response entities associated with the given plan result key.
-
findWebhookResponseDetailsByDeploymentId
@NotNull public @NotNull List<WebhookResponseDetails> findWebhookResponseDetailsByDeploymentId(Long deploymentResultId) Description copied from interface:WebhookResponseDaoFind full description of webhook responses associated with deployment result id.- Specified by:
findWebhookResponseDetailsByDeploymentIdin interfaceWebhookResponseDao- Returns:
- a list of all webhook response entities associated with the given deployment result id.
-
getWebhookResponseDetails
Description copied from interface:WebhookResponseDaoFind full description of webhook response associated with webhook response id.- Specified by:
getWebhookResponseDetailsin interfaceWebhookResponseDao- Parameters:
webhookResponseId- id of webhook response.- Returns:
- a webhook response entity associated with the given webhook response id.
-
countWebhookResponsesByDeploymentResultId
Description copied from interface:WebhookResponseDaoCount all webhook responses in deployment result.- Specified by:
countWebhookResponsesByDeploymentResultIdin interfaceWebhookResponseDao- Returns:
- a number of webhook response entities associated with deployment result id.
-
findWebhookResponseDetailsByPlanKey
@NotNull public @NotNull List<WebhookResponseDetails> findWebhookResponseDetailsByPlanKey(String planKey) Description copied from interface:WebhookResponseDaoFind all webhook responses associated with given plan, not taking into account build number.- Specified by:
findWebhookResponseDetailsByPlanKeyin interfaceWebhookResponseDao- Parameters:
planKey- in format ProjectKey-PlanKey- Returns:
- a list of webhook response entities associated with given plan.
-