@ThreadSafe public class QuickFilterManagerImpl extends Object implements QuickFilterManager
Constructor and Description |
---|
QuickFilterManagerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
create(QuickFilter quickFilter)
Creates a new quick filter.
|
void |
delete(QuickFilter quickFilter)
Delete an existing quick filter.
|
<T extends ImmutableTopLevelPlan> |
filter(Iterable<T> plans,
QuickFilter quickFilter)
Filter given plans, returning only those that match the specified quick filter.
|
List<QuickFilter> |
findAll()
Retrieves all
quick filters ordered by their position . |
QuickFilter |
findById(long id)
Retrieves a
QuickFilter by it's id. |
void |
update(QuickFilter quickFilter,
int previousPosition)
Updates a quick filter.
|
ErrorCollection |
validate(QuickFilter quickFilter)
Validates the given quick filter.
|
@NotNull public List<QuickFilter> findAll()
QuickFilterManager
quick filters
ordered by their position
.findAll
in interface QuickFilterManager
@Nullable public QuickFilter findById(long id)
QuickFilterManager
QuickFilter
by it's id.findById
in interface QuickFilterManager
id
- id of the quick filter@NotNull public ErrorCollection validate(@NotNull QuickFilter quickFilter)
QuickFilterManager
validate
in interface QuickFilterManager
quickFilter
- filter to validatepublic void create(@NotNull QuickFilter quickFilter)
QuickFilterManager
create
in interface QuickFilterManager
quickFilter
- quick filter to create, with or without defined position.public void update(@NotNull QuickFilter quickFilter, int previousPosition)
QuickFilterManager
update
in interface QuickFilterManager
quickFilter
- quick filter to updatepreviousPosition
- previous position of the quick filterpublic void delete(@NotNull QuickFilter quickFilter)
QuickFilterManager
delete
in interface QuickFilterManager
quickFilter
- quick filter to deletepublic <T extends ImmutableTopLevelPlan> Iterable<T> filter(@NotNull Iterable<T> plans, @NotNull QuickFilter quickFilter)
QuickFilterManager
filter
in interface QuickFilterManager
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.