@Internal
public interface ForestAccessCache
Modifier and Type | Interface and Description |
---|---|
static class |
ForestAccessCache.UserLookupException |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
default void |
clear(ApplicationUser user) |
void |
clear(String userKey) |
void |
collectInvisibleIssues(LongIterable issues,
ApplicationUser user,
boolean overrideSecurity,
LongCollector invisibleIssuesCollector)
Collects issues that are not visible to the specified user.
|
void |
collectInvisibleRows(ItemForest forest,
ApplicationUser user,
LongCollector invisibleRowsCollector) |
void |
collectInvisibleRows(ItemForest forest,
String userKey,
LongCollector invisibleRowsCollector)
Collects invisible rows from a temporary forest.
|
ItemIdentitySet |
getInvisibleItems(Set<ItemIdentity> items,
ApplicationUser user) |
LongSet |
getInvisibleRows(LongIterable rows,
ApplicationUser user) |
LongSet |
getInvisibleRows(LongIterable rows,
String userKey)
Calculates/retrieves the set of row IDs (among the passed
rows ), which contain items not visible to
the specified user. |
void clear()
default void clear(ApplicationUser user)
void clear(String userKey)
@NotNull LongSet getInvisibleRows(LongIterable rows, String userKey) throws ForestAccessCache.UserLookupException
rows
), which contain items not visible to
the specified user.rows
- Rows to check -- only inserted rows must be passed here. Temporary rows (from ItemForest) are not allowed,
because this method works with RowManager and caches.ForestAccessCache.UserLookupException
@NotNull LongSet getInvisibleRows(LongIterable rows, ApplicationUser user)
getInvisibleRows(LongIterable, String)
void collectInvisibleRows(ItemForest forest, String userKey, LongCollector invisibleRowsCollector) throws ForestAccessCache.UserLookupException
forest
- a forest to checkuserKey
- the userinvisibleRowsCollector
- collector that will receive row IDs for the rows that contain an item not visible to the userForestAccessCache.UserLookupException
void collectInvisibleRows(ItemForest forest, ApplicationUser user, LongCollector invisibleRowsCollector)
void collectInvisibleIssues(LongIterable issues, ApplicationUser user, boolean overrideSecurity, LongCollector invisibleIssuesCollector)
issues
- issue IDs (in any order)user
- the useroverrideSecurity
- when true, searching with overrideSecurity is usedinvisibleIssuesCollector
- a collector to receive invisible issue IDsItemIdentitySet getInvisibleItems(Set<ItemIdentity> items, ApplicationUser user)
Copyright © 2024 Tempo Software. All Rights Reserved.