public abstract class SecureSingleDependencyReducingAggregateLoader<T> extends SingleDependencyReducingAggregateLoader<T> implements BulkAttributeLoader
AttributeLoader.Aggregate<T>, AttributeLoader.AggregateContext<T>, AttributeLoader.Context, AttributeLoader.ForestIndependent<T>, AttributeLoader.Propagate<T>, AttributeLoader.PropagateContext<T>
myDependency
mySpec
Modifier | Constructor and Description |
---|---|
protected |
SecureSingleDependencyReducingAggregateLoader(AttributeSpec<T> spec,
AttributeSpec<T> dependency,
ForestAccessCache forestAccessCache) |
Modifier and Type | Method and Description |
---|---|
AttributeCachingStrategy |
getCachingStrategy() |
protected AttributeValue<T> |
getSelfValue(AttributeLoader.AggregateContext<T> context) |
void |
preload(com.almworks.integers.LongSet rowIds,
ItemForest forest,
AttributeContext context)
This method is called before all calls to
loadValue() or loadChildrenValues()
in the current calculation. |
getAttributeDependencies
loadValue
firstChildError, isEveryItemTypeSupported, isItemTypeSupported
getAttributeSpec
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
convert, merge, merge, reduce
getAttributeSpec
protected SecureSingleDependencyReducingAggregateLoader(AttributeSpec<T> spec, AttributeSpec<T> dependency, ForestAccessCache forestAccessCache)
@NotNull protected AttributeValue<T> getSelfValue(AttributeLoader.AggregateContext<T> context)
getSelfValue
in class SingleDependencyReducingAggregateLoader<T>
public void preload(@NotNull com.almworks.integers.LongSet rowIds, @NotNull ItemForest forest, @NotNull AttributeContext context)
BulkAttributeLoader
This method is called before all calls to loadValue()
or loadChildrenValues()
in the current calculation. It is given the set of all row IDs for which the values are needed,
so that it can load some data more efficiently, e.g. run a JQL query for all relevant issues.
The result can be stored inside the loader instance itself or in the provided AttributeContext
.
The current loader's dependencies are not yet loaded at the time of the call.
preload
in interface BulkAttributeLoader
rowIds
- The set of row IDs for which attribute values are needed.forest
- The ItemForest
for which attribute values are needed.context
- The context
.public AttributeCachingStrategy getCachingStrategy()
getCachingStrategy
in interface AttributeLoader<T>
getCachingStrategy
in class AbstractAggregateLoader<T>
Copyright © 2019 ALM Works. All Rights Reserved.