@Internal
public interface ForestAccessCache
Modifier and Type | Interface and Description |
---|---|
static class |
ForestAccessCache.UserLookupException |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
clear(com.atlassian.jira.user.ApplicationUser user) |
void |
collectInvisibleIssues(com.almworks.integers.LongIterable issues,
com.atlassian.jira.user.ApplicationUser user,
boolean overrideSecurity,
com.almworks.integers.LongCollector invisibleIssuesCollector)
Collects issues that are not visible to the specified user.
|
void |
collectInvisibleRows(ItemForest forest,
com.atlassian.jira.user.ApplicationUser user,
com.almworks.integers.LongCollector invisibleRowsCollector) |
void |
collectInvisibleRows(ItemForest forest,
String userKey,
com.almworks.integers.LongCollector invisibleRowsCollector)
Collects invisible rows from a temporary forest.
|
default com.almworks.integers.LongSet |
getInvisibleRows(com.almworks.integers.LongList rows,
com.atlassian.jira.user.ApplicationUser user)
Deprecated.
|
default com.almworks.integers.LongSet |
getInvisibleRows(com.almworks.integers.LongList rows,
String userKey)
Deprecated.
|
com.almworks.integers.LongSet |
getInvisibleRows(com.almworks.integers.LongSizedIterable rows,
com.atlassian.jira.user.ApplicationUser user) |
com.almworks.integers.LongSet |
getInvisibleRows(com.almworks.integers.LongSizedIterable 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()
void clear(com.atlassian.jira.user.ApplicationUser user)
@NotNull com.almworks.integers.LongSet getInvisibleRows(com.almworks.integers.LongSizedIterable 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 @Deprecated default com.almworks.integers.LongSet getInvisibleRows(com.almworks.integers.LongList rows, String userKey) throws ForestAccessCache.UserLookupException
LongList
as first parameter).@NotNull com.almworks.integers.LongSet getInvisibleRows(com.almworks.integers.LongSizedIterable rows, com.atlassian.jira.user.ApplicationUser user)
@NotNull @Deprecated default com.almworks.integers.LongSet getInvisibleRows(com.almworks.integers.LongList rows, com.atlassian.jira.user.ApplicationUser user)
LongList
as first parameter).void collectInvisibleRows(ItemForest forest, String userKey, com.almworks.integers.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, com.atlassian.jira.user.ApplicationUser user, com.almworks.integers.LongCollector invisibleRowsCollector)
void collectInvisibleIssues(com.almworks.integers.LongIterable issues, com.atlassian.jira.user.ApplicationUser user, boolean overrideSecurity, com.almworks.integers.LongCollector invisibleIssuesCollector)
issues
- issue IDs (in any order)user
- the useroverrideSecurity
- when true, searching with overrideSecurity is usedinvisibleIssuesCollector
- a collector to receive invisible issue IDsCopyright © 2019 ALM Works. All Rights Reserved.