Package com.atlassian.bamboo.webhook
Class WebhookTemplateHibernateDao
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate5.support.HibernateDaoSupport
com.atlassian.bamboo.persistence3.BambooHibernateObjectDao<WebhookTemplate>
com.atlassian.bamboo.webhook.WebhookTemplateHibernateDao
- All Implemented Interfaces:
BambooObjectDao<WebhookTemplate>,WebhookTemplateDao,org.springframework.beans.factory.InitializingBean
public class WebhookTemplateHibernateDao
extends BambooHibernateObjectDao<WebhookTemplate>
implements WebhookTemplateDao
-
Field Summary
Fields inherited from class org.springframework.dao.support.DaoSupport
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteById(long id) Deletes webhooktemplate with given idbooleanCheck if webhook with given name existsfindByUuid(UUID uuid) Return all Global webhook templates which are specified in Global administrationfindUuidByName(String webhookName) Returns uuid of webhook with given namelongscrollTokensForExport(@NotNull Consumer<WebhookTemplate> consumer) Scroll through all AccessToken records and pass them to consumerMethods inherited from class com.atlassian.bamboo.persistence3.BambooHibernateObjectDao
convertSearchTermToLikeExpression, countAll, countWithRestriction, delete, deleteAll, executeCountQuery, findAll, findById, merge, save, saveAllMethods 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
-
WebhookTemplateHibernateDao
public WebhookTemplateHibernateDao()
-
-
Method Details
-
findGlobalTemplates
Description copied from interface:WebhookTemplateDaoReturn all Global webhook templates which are specified in Global administration- Specified by:
findGlobalTemplatesin interfaceWebhookTemplateDao- Returns:
-
deleteById
public void deleteById(long id) Description copied from interface:WebhookTemplateDaoDeletes webhooktemplate with given id- Specified by:
deleteByIdin interfaceWebhookTemplateDao
-
exists
Description copied from interface:WebhookTemplateDaoCheck if webhook with given name exists- Specified by:
existsin interfaceWebhookTemplateDao- Returns:
- true if exists, otherwise false
-
findUuidByName
Description copied from interface:WebhookTemplateDaoReturns uuid of webhook with given name- Specified by:
findUuidByNamein interfaceWebhookTemplateDao- Returns:
-
scrollTokensForExport
Description copied from interface:WebhookTemplateDaoScroll through all AccessToken records and pass them to consumer- Specified by:
scrollTokensForExportin interfaceWebhookTemplateDao
-
findByUuid
- Specified by:
findByUuidin interfaceWebhookTemplateDao
-