@Internal @NotThreadSafe public interface QuickFilterDao extends BambooObjectDao<QuickFilter>
quick filters
.
Methods from this DAO are not thread safe. Especially, mutative methods should not be called concurrently as multiple
update operations may be executed for each write.
External locking should be implemented on upper level, preferably in QuickFilterManager
.Modifier and Type | Method and Description |
---|---|
void |
create(QuickFilter quickFilter)
Creates a new quick filter.
|
List<QuickFilter> |
findAll()
Returns all quick filters ordered by their
position . |
QuickFilter |
findById(long id) |
QuickFilter |
findByName(String name) |
void |
save(QuickFilter quickFilter)
Deprecated.
Unsupported operation - use
create(QuickFilter) or update(QuickFilter, int)
instead. |
<E extends QuickFilter> |
saveAll(Collection<E> entities)
Deprecated.
Unsupported operation - use
create(QuickFilter) or update(QuickFilter, int)
instead. |
long |
scrollQuickFiltersForExport(Consumer<QuickFilter> exportXmlConsumer)
Scroll through all QuickFilter records and pass them to consumer
|
void |
update(QuickFilter quickFilter,
int previousPosition)
Updates a quick filter.
|
countAll, countWithRestriction, delete, deleteAll, findAll, findById, merge
@Nullable QuickFilter findById(long id)
@Nullable QuickFilter findByName(@NotNull String name)
@NotNull List<QuickFilter> findAll()
position
.@Deprecated void save(@NotNull QuickFilter quickFilter)
create(QuickFilter)
or update(QuickFilter, int)
instead.create(QuickFilter)
or update(QuickFilter, int)
should be used instead, to maintain database integrity related to quick filter
positions.save
in interface BambooObjectDao<QuickFilter>
quickFilter
- quick filter to saveUnsupportedOperationException
- always thrown@Deprecated <E extends QuickFilter> void saveAll(@NotNull Collection<E> entities)
create(QuickFilter)
or update(QuickFilter, int)
instead.create(QuickFilter)
or update(QuickFilter, int)
should be used instead, operating on singular quick filters, to maintain database
integrity related to quick filter positions.saveAll
in interface BambooObjectDao<QuickFilter>
entities
- entities to be saved to databaseUnsupportedOperationException
- always thrownvoid create(@NotNull QuickFilter quickFilter)
save(QuickFilter)
to maintain database integrity
related to quick filter positions.
If the quick filter doesn't have a position defined, it will be assigned one. If instead it has a position
defined, then other persisted quick filters will be repositioned accordingly.quickFilter
- entity to create, with or without defined position.void update(@NotNull QuickFilter quickFilter, int previousPosition)
save(QuickFilter)
to maintain database integrity
related to quick filter positions.
After the update, other persisted quick filters will be repositioned if necessary.quickFilter
- entity to updatepreviousPosition
- previous position of the quick filterlong scrollQuickFiltersForExport(Consumer<QuickFilter> exportXmlConsumer)
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.