Modifier and Type | Field and Description |
---|---|
static AttributeSpec<ApplicationUser> |
CoreAttributeSpecs.ASSIGNEE |
static AttributeSpec<Long> |
CoreAttributeSpecs.CREATED |
static AttributeSpec<ApplicationUser> |
CoreAttributeSpecs.CREATOR |
static AttributeSpec<String> |
SharedAttributeSpecs.DESCRIPTION |
static AttributeSpec<String> |
SharedAttributeSpecs.DISPLAYABLE_TEXT
One-line text that can represent this item, for example, in a list.
|
static AttributeSpec<Boolean> |
SharedAttributeSpecs.DONE |
static AttributeSpec<Long> |
CoreAttributeSpecs.DUEDATE |
static AttributeSpec<Boolean> |
SharedAttributeSpecs.EDITABLE |
static AttributeSpec<String> |
SharedAttributeSpecs.ICON
A HTML that represents an icon of this item like '<img src="..."/>', or any other HTML.
|
static AttributeSpec<String> |
SharedAttributeSpecs.ID |
static AttributeSpec<IssueType> |
CoreAttributeSpecs.ISSUETYPE |
static AttributeSpec<String> |
SharedAttributeSpecs.ISSUETYPE_ID |
static AttributeSpec<Object> |
CoreAttributeSpecs.ITEM |
static AttributeSpec<String> |
SharedAttributeSpecs.KEY |
static AttributeSpec<Long> |
SharedAttributeSpecs.ORIGINAL_ESTIMATE |
static AttributeSpec<Priority> |
CoreAttributeSpecs.PRIORITY |
static AttributeSpec<Project> |
CoreAttributeSpecs.PROJECT |
static AttributeSpec<String> |
SharedAttributeSpecs.PROJECT_ID |
static AttributeSpec<Long> |
SharedAttributeSpecs.REMAINING_ESTIMATE |
static AttributeSpec<ApplicationUser> |
CoreAttributeSpecs.REPORTER |
static AttributeSpec<Status> |
CoreAttributeSpecs.STATUS |
static AttributeSpec<String> |
SharedAttributeSpecs.STATUS_ID |
static AttributeSpec<String> |
SharedAttributeSpecs.SUMMARY |
static AttributeSpec<Long> |
SharedAttributeSpecs.TIME_SPENT |
static AttributeSpec<Long> |
SharedAttributeSpecs.TOTAL_ORIGINAL_ESTIMATE |
static AttributeSpec<Long> |
SharedAttributeSpecs.TOTAL_REMAINING_ESTIMATE |
static AttributeSpec<Long> |
SharedAttributeSpecs.TOTAL_TIME_SPENT |
static AttributeSpec<Long> |
CoreAttributeSpecs.UPDATED |
static AttributeSpec<String> |
SharedAttributeSpecs.URL |
static AttributeSpec<Number> |
SharedAttributeSpecs.VOTES |
static AttributeSpec<Number> |
SharedAttributeSpecs.WATCHES |
Modifier and Type | Method and Description |
---|---|
<V> AttributeSpec<V> |
AttributeSpec.as(ValueFormat<V> format)
Returns an attribute spec with the same ID and parameters, but with the given
ValueFormat . |
AttributeSpec<T> |
AttributeSpecBuilder.build()
Builds the attribute spec.
|
AttributeSpec<T> |
AttributeSpecBuilder.ParamsBuilder.build()
Builds the attribute spec.
|
AttributeSpec<T> |
ValueFormat.cast(AttributeSpec<?> spec)
Performs type checking and cast of an arbitrary attribute specification to the given format.
|
AttributeSpec<?> |
AttributeErrorInfo.getAttributeSpec()
Returns the attribute spec of the problematic attribute
|
AttributeSpec<T> |
AttributeSpec.noParams()
Returns a new attribute spec with all parameters removed.
|
AttributeSpec<T> |
AttributeSpec.replaceParams(Map<String,Object> newParams)
Returns a new attribute spec with parameters replaced with a new map.
|
AttributeSpec<T> |
AttributeSpec.withParam(String name,
Object value)
Returns a new attribute spec with added parameter.
|
Modifier and Type | Method and Description |
---|---|
Collection<? extends AttributeSpec<?>> |
ConsistentRowValues.getRequestedAttributes()
Returns the attributes that were requested from
StructureAttributeService.getConsistentAttributeValues(com.almworks.jira.structure.api.forest.ForestSpec, boolean, java.util.function.Function<com.almworks.jira.structure.api.forest.item.ItemForest, com.almworks.integers.LongList>, java.util.Collection<? extends com.almworks.jira.structure.api.attribute.AttributeSpec<?>>) . |
Modifier and Type | Method and Description |
---|---|
AttributeSpec<T> |
ValueFormat.cast(AttributeSpec<?> spec)
Performs type checking and cast of an arbitrary attribute specification to the given format.
|
<X> AttributeValue<X> |
AttributeValue.cast(AttributeSpec<X> spec)
Transforms the value to a different type.
|
static <T> AttributeSpecBuilder<T> |
AttributeSpecBuilder.create(AttributeSpec<T> sample)
Creates a builder based on the given sample.
|
default <T> T |
LoadedValues.get(K key,
AttributeSpec<T> attribute)
Returns a value for the given row and attribute.
|
default <T> T |
RowValues.get(long key,
AttributeSpec<T> attribute) |
default <T> AttributeValue<T> |
LoadedValues.getAttributeValue(K key,
AttributeSpec<T> attribute)
Returns the
AttributeValue loaded for the given key and attribute. |
<T> LoadedValue<T> |
LoadedValues.getLoadedValue(K key,
AttributeSpec<T> attribute)
Returns the value loaded for the given key and attribute.
|
boolean |
StructureAttributeService.isItemAttribute(AttributeSpec<?> attribute)
Checks if the attribute is based only on items, which means the value will not depend on a particular position
of the item in the forest.
|
default boolean |
LoadedValues.isOutdated(K key,
AttributeSpec<?> attribute)
Checks if the value for the given key and attribute is outdated (up for recalculation).
|
<T> void |
AttributeValuesReceiver.receiveValues(AttributeSpec<T> attributeSpec,
ValueColumn<Long,T> values)
Offers the receiver to retrieve the values for the specified attribute.
|
AttributeSpecBuilder.ParamsBuilder<P> |
AttributeSpecBuilder.ParamsBuilder.setAttribute(AttributeSpec<?> value)
Special method to set the parameter "attribute" to the given attribute spec.
|
AttributeSpecBuilder.ParamsBuilder<P> |
AttributeSpecBuilder.ParamsBuilder.setAttribute(String key,
AttributeSpec<?> value)
Special method to set a parameter to the given attribute spec.
|
default void |
AttributeValuesReceiver.valuesReady(AttributeSpec<?> attributeSpec)
Notifies the receiver that the loading process has loaded all requested rows for the given attribute spec.
|
Modifier and Type | Method and Description |
---|---|
void |
RowValues.consume(Function<AttributeSpec<?>,BiConsumer<LongSizedIterable,LongFunction<LoadedValue<?>>>> consumer)
Passes all data to the consumer.
|
RowValues |
StructureAttributeService.getAttributeValues(Forest forest,
LongList rows,
Collection<? extends AttributeSpec<?>> attributes)
Returns attribute values for the given matrix of Rows and Attributes.
|
RowValues |
StructureAttributeService.getAttributeValues(ForestSpec spec,
boolean strictSpec,
LongList rows,
Collection<? extends AttributeSpec<?>> attributes,
Consumer<ValuesMeta> metaConsumer)
Loads and returns attribute values as
RowValues . |
default RowValues |
StructureAttributeService.getAttributeValues(ForestSpec spec,
LongList rows,
Collection<? extends AttributeSpec<?>> attributes)
Retrieves values for the given sets of attributes and rows.
|
RowValues |
StructureAttributeService.getAttributeValues(ItemForest forest,
LongList rows,
Collection<? extends AttributeSpec<?>> attributes)
Returns attribute values for the given matrix of Rows and Attributes.
|
RowValuesWithUpdateChecker |
StructureAttributeService.getAttributeValuesWithUpdateChecker(ForestSpec spec,
LongList rows,
Collection<? extends AttributeSpec<?>> attributes)
Loads the values for the given rows and attributes, plus provides an instance of
AttributeUpdateChecker , which can be
used to detect that the values may have changed and another loading is needed. |
RowValuesWithUpdateChecker |
StructureAttributeService.getAttributeValuesWithUpdateChecker(ItemForest forest,
LongList rows,
Collection<? extends AttributeSpec<?>> attributes,
ForestSpec baseForestSpec)
Loads the values for the given rows and attributes, plus provides an instance of
AttributeUpdateChecker , which can be
used to detect that the values may have changed and another loading is needed. |
ConsistentRowValues |
StructureAttributeService.getConsistentAttributeValues(ForestSpec spec,
boolean strictSpec,
Function<ItemForest,LongList> rowsSupplier,
Collection<? extends AttributeSpec<?>> attributes)
Performs consistent loading of values for the given rows and attributes.
|
default ConsistentRowValues |
StructureAttributeService.getConsistentAttributeValues(ForestSpec spec,
Function<ItemForest,LongList> rowsSupplier,
Collection<? extends AttributeSpec<?>> attributes)
Performs consistent loading of values for the given rows and attributes.
|
ItemValues |
StructureAttributeService.getItemValues(Collection<ItemIdentity> itemIds,
Collection<? extends AttributeSpec<?>> attributes)
Loads item-based values for the given items.
|
boolean |
StructureAttributeService.hasUpdate(ForestSpec spec,
LongList rows,
Collection<? extends AttributeSpec<?>> attributes,
ValuesMeta loadMeta)
This method checks if there may have been updates in the system since some previous loading of the given attributes.
|
void |
StructureAttributeService.loadAttributeValues(Forest forest,
LongList rows,
Collection<? extends AttributeSpec<?>> attributes,
AttributeValuesReceiver receiver)
This method loads values for the given sets of attributes and rows.
|
void |
StructureAttributeService.loadAttributeValues(ForestSpec spec,
boolean strictSpec,
LongList rows,
Collection<? extends AttributeSpec<?>> attributes,
AttributeValuesReceiver receiver)
This method loads values for the given sets of attributes and rows.
|
default void |
StructureAttributeService.loadAttributeValues(ForestSpec spec,
LongList rows,
Collection<? extends AttributeSpec<?>> attributes,
AttributeValuesReceiver receiver)
Loads values for the given sets of attributes and rows.
|
void |
StructureAttributeService.loadAttributeValues(ItemForest itemForest,
LongList rows,
Collection<? extends AttributeSpec<?>> attributes,
AttributeValuesReceiver receiver)
This method loads values for the given sets of attributes and rows.
|
Constructor and Description |
---|
AttributeErrorInfo(AttributeSpec<?> attributeSpec,
Long rowId,
ItemIdentity itemId,
Throwable cause) |
Constructor and Description |
---|
ConsistentRowValues(Forest forest,
LongList requestedRows,
Collection<? extends AttributeSpec<?>> requestedAttributes,
RowValues values,
DataVersion forestVersion,
DataVersion itemsVersion) |
Modifier and Type | Method and Description |
---|---|
AttributeSpec<T> |
AttributeLoader.getAttributeSpec()
Returns the spec for which this loader loads values.
|
Modifier and Type | Method and Description |
---|---|
default Set<AttributeSpec<?>> |
AttributeLoader.getAttributeDependencies()
Returns attributes that need to be loaded prior to calling this loader's loading function.
|
Modifier and Type | Method and Description |
---|---|
static <T> DerivedAttributeLoaderBuilder<T> |
SharedAttributeLoaders.constantLoader(AttributeSpec<T> spec,
AttributeValue<T> value) |
AttributeLoader<?> |
AttributeLoaderProvider.createAttributeLoader(AttributeSpec<?> attributeSpec,
AttributeProviderContext context)
Creates an attribute loader for the given attribute spec.
|
static <T> DerivedAttributeLoaderBuilder<T> |
SharedAttributeLoaders.derivedLoader(AttributeSpec<T> spec) |
static <T,D> UniDerivedAttributeLoaderBuilder<T,D> |
SharedAttributeLoaders.derivedLoader(AttributeSpec<T> spec,
AttributeSpec<D> dependencySpec) |
static <T,D> UniDerivedAttributeLoaderBuilder<T,D> |
SharedAttributeLoaders.derivedLoader(AttributeSpec<T> spec,
AttributeSpec<D> dependencySpec) |
static <T,X,Y> BiDerivedAttributeLoaderBuilder<T,X,Y> |
SharedAttributeLoaders.derivedLoader(AttributeSpec<T> spec,
AttributeSpec<X> xDependency,
AttributeSpec<Y> yDependency) |
static <T,X,Y> BiDerivedAttributeLoaderBuilder<T,X,Y> |
SharedAttributeLoaders.derivedLoader(AttributeSpec<T> spec,
AttributeSpec<X> xDependency,
AttributeSpec<Y> yDependency) |
static <T,X,Y> BiDerivedAttributeLoaderBuilder<T,X,Y> |
SharedAttributeLoaders.derivedLoader(AttributeSpec<T> spec,
AttributeSpec<X> xDependency,
AttributeSpec<Y> yDependency) |
<V> AttributeValue<V> |
AttributeLoaderContext.getDependencyAttributeValue(AttributeSpec<V> dependency)
Gets the value of dependency attribute for the row being calculated.
|
default <V> V |
AttributeLoaderContext.getDependencyValue(AttributeSpec<V> dependency)
Gets the value of dependency attribute for the row being calculated.
|
static AttributeCachingStrategy |
AttributeCachingStrategy.guessCachingStrategy(AttributeSpec<?> spec)
Guessing if the value is cacheable, based on the value format.
|
static Set<AttributeContextDependency> |
AttributeContextDependency.guessContextDependencies(AttributeSpec<?> spec) |
boolean |
AttributeProviderContext.isItemAttribute(AttributeSpec<?> attribute)
Checks if the attribute is based only on items, which means the value will not depend on a particular position
of the item in the forest.
|
static <T> ItemAttributeLoaderBuilder<T,Issue> |
AttributeLoaders.issueLoader(AttributeSpec<T> spec) |
static <T> ItemAttributeLoaderBuilder<T,Object> |
SharedAttributeLoaders.itemLoader(AttributeSpec<T> spec) |
static <T> SingleRowAttributeLoaderBuilder<T> |
SharedAttributeLoaders.singleRowLoader(AttributeSpec<T> spec) |
Modifier and Type | Field and Description |
---|---|
protected AttributeSpec<? extends D> |
SimpleDerivedAttributeLoader.myDependency |
protected AttributeSpec<A> |
AbstractAttributeLoader.mySpec |
Modifier and Type | Method and Description |
---|---|
AttributeSpec<A> |
AbstractAttributeLoader.getAttributeSpec() |
Modifier and Type | Method and Description |
---|---|
Set<AttributeSpec<?>> |
ScanningNumberSumLoader.getAttributeDependencies() |
Set<AttributeSpec<?>> |
SimpleDerivedAttributeLoader.getAttributeDependencies() |
Set<AttributeSpec<?>> |
InheritedValueLoader.getAttributeDependencies() |
Set<AttributeSpec<?>> |
ScanningLongSumLoader.getAttributeDependencies() |
Modifier and Type | Method and Description |
---|---|
AttributeLoader<?> |
SimpleAttributeProvider.createAttributeLoader(AttributeSpec<?> spec,
AttributeProviderContext context) |
static <T> AttributeLoader<T> |
SimpleDerivedAttributeLoader.idLoader(AttributeSpec<T> spec,
AttributeSpec<T> dependency) |
static <T> AttributeLoader<T> |
SimpleDerivedAttributeLoader.idLoader(AttributeSpec<T> spec,
AttributeSpec<T> dependency) |
protected <T> void |
SimpleAttributeProvider.registerCompositeLoader(AttributeSpec<T> spec,
AttributeLoader<T>... loaders) |
Modifier and Type | Field and Description |
---|---|
protected AttributeSpec<T> |
AttributeLoaderBuilder.myAttributeSpec |
Modifier and Type | Method and Description |
---|---|
AttributeSpec<T> |
BaseAttributeLoader.getAttributeSpec() |
Modifier and Type | Method and Description |
---|---|
protected Set<AttributeSpec<?>> |
ArbitraryDependenciesAttributeLoaderBuilder.buildDependencies() |
Set<AttributeSpec<?>> |
BiDerivedAttributeLoaderBuilder.BuiltBiDerivedLoader.getAttributeDependencies() |
Set<AttributeSpec<?>> |
BaseAttributeLoader.getAttributeDependencies() |
Modifier and Type | Method and Description |
---|---|
S |
ArbitraryDependenciesAttributeLoaderBuilder.dependencies(AttributeSpec<?>... dependencies) |
BiDerivedAttributeLoaderBuilder<T,X,Y> |
BiDerivedAttributeLoaderBuilder.dependencies(AttributeSpec<X> xDependencySpec,
AttributeSpec<Y> yDependencySpec) |
BiDerivedAttributeLoaderBuilder<T,X,Y> |
BiDerivedAttributeLoaderBuilder.dependencies(AttributeSpec<X> xDependencySpec,
AttributeSpec<Y> yDependencySpec) |
S |
ArbitraryDependenciesAttributeLoaderBuilder.dependency(AttributeSpec<?> dependency) |
UniDerivedAttributeLoaderBuilder<T,D> |
UniDerivedAttributeLoaderBuilder.dependency(AttributeSpec<D> dependencySpec) |
S |
AttributeLoaderBuilder.spec(AttributeSpec<T> attributeSpec) |
BiDerivedAttributeLoaderBuilder<T,X,Y> |
BiDerivedAttributeLoaderBuilder.xDependency(AttributeSpec<X> xDependencySpec) |
BiDerivedAttributeLoaderBuilder<T,X,Y> |
BiDerivedAttributeLoaderBuilder.yDependency(AttributeSpec<Y> yDependencySpec) |
Modifier and Type | Method and Description |
---|---|
Set<AttributeSpec<?>> |
CompositeAttributeLoader.getAttributeDependencies() |
static <L extends AttributeLoader<?>> |
CompositeAttributeLoader.getCompositeDependencies(Collection<L> loaders) |
Modifier and Type | Method and Description |
---|---|
static <T> AttributeLoader<T> |
CompositeAttributeLoader.create(AttributeSpec<T> spec,
List<AttributeLoader<T>> loaders) |
static <L extends AttributeLoader<?>> |
CompositeAttributeLoader.getCompositeCachingStrategy(AttributeSpec<?> spec,
Collection<L> loaders) |
Constructor and Description |
---|
CompositeAttributeLoader(AttributeSpec<T> spec,
Collection<L> loaders) |
Modifier and Type | Method and Description |
---|---|
AttributeSpec<T> |
DelegatingAttributeLoader.getAttributeSpec() |
Modifier and Type | Method and Description |
---|---|
Set<AttributeSpec<?>> |
DelegatingAttributeLoader.getAttributeDependencies() |
Modifier and Type | Field and Description |
---|---|
protected AttributeSpec<T> |
SingleDependencyReducingAggregateLoader.myDependency |
Modifier and Type | Method and Description |
---|---|
Set<AttributeSpec<?>> |
SingleDependencyReducingAggregateLoader.getAttributeDependencies() |
Modifier and Type | Method and Description |
---|---|
static <T> ReductionStrategy<T> |
ReductionStrategy.forAttributeSpec(AttributeSpec<?> attributeSpec)
Look for strategy type from the spec and try to return default strategy for known types.
|
static String |
ReductionStrategy.getStrategyType(AttributeSpec<?> attributeSpec)
Look for known strategy type from the spec and return default (
SUBTREE ) value if not found. |
Constructor and Description |
---|
ReducingAggregateLoader(AttributeSpec<T> spec) |
SingleDependencyReducingAggregateLoader(AttributeSpec<T> spec,
AttributeSpec<T> dependency) |
SingleDependencyReducingAggregateLoader(AttributeSpec<T> spec,
AttributeSpec<T> dependency) |
Modifier and Type | Method and Description |
---|---|
Collection<AttributeSpec<?>> |
AttributeSubscription.getAttributes()
Returns the attributes that are currently subscribed for.
|
Modifier and Type | Method and Description |
---|---|
AttributeSubscriptionPatch |
AttributeSubscriptionPatch.addAttribute(AttributeSpec<?> attribute) |
AttributeSubscriptionPatch |
AttributeSubscriptionPatch.removeAttribute(AttributeSpec<?> attribute) |
Modifier and Type | Method and Description |
---|---|
AttributeSubscriptionPatch |
AttributeSubscriptionPatch.setAttributes(Collection<? extends AttributeSpec<?>> attributes) |
Modifier and Type | Method and Description |
---|---|
void |
EffectorContext.requireAttribute(AttributeSpec<?> attribute)
Allows the effector to require an attribute that it needs in order to
produce effects.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
ExportRow.get(AttributeSpec<T> attribute)
Gets a value of an attribute for this row.
|
void |
ExportRequestContext.requireAttribute(AttributeSpec<?> attribute)
Require an attribute to be calculated for this request.
|
Modifier and Type | Method and Description |
---|---|
static Pair<RowValues,RecordingAttributeUpdateChecker> |
GenerationUtil.getValuesFromSubjectForest(StructureGenerator.GenerationContext context,
AttributeSpec<?> spec,
LongList rows,
StructureAttributeService attributeService) |
Modifier and Type | Method and Description |
---|---|
static Pair<RowValues,RecordingAttributeUpdateChecker> |
GenerationUtil.getValuesFromSubjectForest(StructureGenerator.GenerationContext context,
Collection<? extends AttributeSpec<?>> specs,
LongList rows,
StructureAttributeService attributeService) |
Modifier and Type | Method and Description |
---|---|
static AttributeSpec<?> |
RestAttributeSpec.fromRest(RestAttributeSpec spec) |
static AttributeSpec<?> |
RestAttributeSpec.fromRestNotNull(RestAttributeSpec spec) |
Modifier and Type | Method and Description |
---|---|
static List<AttributeSpec<?>> |
RestAttributeSpec.fromRestCollection(Collection<? extends RestAttributeSpec> source) |
Modifier and Type | Method and Description |
---|---|
static RestAttributeSpec |
RestAttributeSpec.toRest(AttributeSpec<?> spec) |
Modifier and Type | Method and Description |
---|---|
Set<AttributeSpec<?>> |
ImmutableAttributeSensitivitySettingsBean.getNonSensitiveAttributes() |
Set<AttributeSpec<?>> |
AttributeSensitivitySettings.getNonSensitiveAttributes()
Returns attributes that were explicitly set to be non-sensitive, regardless of the default mode.
|
Constructor and Description |
---|
ImmutableAttributeSensitivitySettingsBean(AttributeSensitivityMode sensitivityMode,
Collection<? extends AttributeSpec<?>> nonSensitiveAttributes) |
Modifier and Type | Method and Description |
---|---|
<T> AttributeSpec<T> |
SpecParams.getAttributeParameter(String name,
ValueFormat<T> expectedFormat) |
<T> AttributeSpec<T> |
SpecParams.getAttributeParameter(ValueFormat<T> expectedFormat) |
Copyright © 2024 Tempo Software. All Rights Reserved.