public class WebhookTemplateHibernateDao extends BambooHibernateObjectDao<WebhookTemplate> implements WebhookTemplateDao
Constructor and Description |
---|
WebhookTemplateHibernateDao() |
Modifier and Type | Method and Description |
---|---|
void |
deleteById(long id)
Deletes webhooktemplate with given id
|
boolean |
exists(String webhookName)
Check if webhook with given name exists
|
Optional<WebhookTemplate> |
findByUuid(UUID uuid) |
List<WebhookTemplate> |
findGlobalTemplates()
Return all Global webhook templates which are specified in Global administration
|
Optional<UUID> |
findUuidByName(String webhookName)
Returns uuid of webhook with given name
|
long |
scrollTokensForExport(@NotNull Consumer<WebhookTemplate> consumer)
Scroll through all AccessToken records and pass them to consumer
|
countAll, countWithRestriction, delete, deleteAll, executeCountQuery, findAll, findById, merge, save, saveAll
getCacheAwareHibernateTemplate
checkDaoConfig, createHibernateTemplate, currentSession, getHibernateTemplate, getSessionFactory, setHibernateTemplate, setSessionFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
countAll, countWithRestriction, delete, deleteAll, findAll, findById, merge, save, saveAll
public List<WebhookTemplate> findGlobalTemplates()
WebhookTemplateDao
findGlobalTemplates
in interface WebhookTemplateDao
public void deleteById(long id)
WebhookTemplateDao
deleteById
in interface WebhookTemplateDao
public boolean exists(String webhookName)
WebhookTemplateDao
exists
in interface WebhookTemplateDao
public Optional<UUID> findUuidByName(String webhookName)
WebhookTemplateDao
findUuidByName
in interface WebhookTemplateDao
public long scrollTokensForExport(@NotNull @NotNull Consumer<WebhookTemplate> consumer)
WebhookTemplateDao
scrollTokensForExport
in interface WebhookTemplateDao
public Optional<WebhookTemplate> findByUuid(UUID uuid)
findByUuid
in interface WebhookTemplateDao
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.