@InjectableComponent public class SavedFilterCycleDetector extends Object
Constructor and Description |
---|
SavedFilterCycleDetector(SavedFilterResolver savedFilterResolver,
JqlOperandResolver jqlOperandResolver) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsSavedFilterReference(ApplicationUser searcher,
boolean overrideSecurity,
SearchRequest savedFilter,
Long filterId)
Checks if the specified saved
SearchRequest contains a reference to another saved filter
by using the savedFilter clause. |
public SavedFilterCycleDetector(SavedFilterResolver savedFilterResolver, JqlOperandResolver jqlOperandResolver)
public boolean containsSavedFilterReference(ApplicationUser searcher, boolean overrideSecurity, SearchRequest savedFilter, Long filterId)
SearchRequest
contains a reference to another saved filter
by using the savedFilter
clause.searcher
- the user performing the searchoverrideSecurity
- false if we should check permissionssavedFilter
- the saved filter to check if it holds a reference to the filter with the filterIdfilterId
- the id of the filter to check if it can be referenced from the savedFilter, can be null.
if null it takes the filter id from the savedFilter, thus checking if it can reference itselfCopyright © 2002-2018 Atlassian. All Rights Reserved.