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
-
Method Summary
Modifier and TypeMethodDescription@NotNull Long
countWebhookResponsesByDeploymentResultId
(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 WebhookResponseDetails
getWebhookResponseDetails
(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, saveAll
Methods inherited from class com.atlassian.bamboo.persistence3.StatelessSessionHibernateDaoSupport
getCacheAwareHibernateTemplate
Methods inherited from class org.springframework.orm.hibernate5.support.HibernateDaoSupport
checkDaoConfig, createHibernateTemplate, currentSession, getHibernateTemplate, getSessionFactory, 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.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:WebhookResponseDao
Find short descriptions of webhook responses associated with deployment result id.- Specified by:
findWebhookResponseByDeploymentResultId
in 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:WebhookResponseDao
Find short descriptions of webhook responses associated with build key.- Specified by:
findWebhookResponseByPlanResultKey
in 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:WebhookResponseDao
Find full description of webhook responses associated with plan result key.- Specified by:
findWebhookResponseDetailsByPlanResultKey
in 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:WebhookResponseDao
Find full description of webhook responses associated with deployment result id.- Specified by:
findWebhookResponseDetailsByDeploymentId
in interfaceWebhookResponseDao
- Returns:
- a list of all webhook response entities associated with the given deployment result id.
-
getWebhookResponseDetails
Description copied from interface:WebhookResponseDao
Find full description of webhook response associated with webhook response id.- Specified by:
getWebhookResponseDetails
in interfaceWebhookResponseDao
- Parameters:
webhookResponseId
- id of webhook response.- Returns:
- a webhook response entity associated with the given webhook response id.
-
countWebhookResponsesByDeploymentResultId
Description copied from interface:WebhookResponseDao
Count all webhook responses in deployment result.- Specified by:
countWebhookResponsesByDeploymentResultId
in 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:WebhookResponseDao
Find all webhook responses associated with given plan, not taking into account build number.- Specified by:
findWebhookResponseDetailsByPlanKey
in interfaceWebhookResponseDao
- Parameters:
planKey
- in format ProjectKey-PlanKey- Returns:
- a list of webhook response entities associated with given plan.
-