public final class JqlFilterStoreUtils extends Object
Filters in atlassian-webhooks are handled differently then in jira-webhooks on the store level so
we need to maintain a kind of compatibility layer between internal jira store representation
and PersistentWebHookListener
objects.
That's what this class does.
The idea is that all operations concerning retrieving and storing JQL filters are encapsulated here so that they are easy to track and reason about.
Modifier and Type | Class and Description |
---|---|
static class |
JqlFilterStoreUtils.JqlAwarePersistentListenerBuilder |
Constructor and Description |
---|
JqlFilterStoreUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
getJqlFilter(com.atlassian.webhooks.api.register.listener.PersistentWebHookListener listener)
Retreves a JQL filter from the listener.
|
static JqlFilterStoreUtils.JqlAwarePersistentListenerBuilder |
persistentListenerBuilder(Integer id)
Create a builder for a new
PersistentWebHookListener object. |
public static JqlFilterStoreUtils.JqlAwarePersistentListenerBuilder persistentListenerBuilder(@Nonnull Integer id)
PersistentWebHookListener
object.
The builder differs from the default one in that it has a method to set JQL filter.id
- id of listener existing in the jira listener storePersistentWebHookListener
objectspublic static String getJqlFilter(com.atlassian.webhooks.api.register.listener.PersistentWebHookListener listener)
listener
- a listenerCopyright © 2002-2020 Atlassian. All Rights Reserved.