@PublicApi public interface AttributeProviderContext extends AttributeContext
AttributeLoaderProvider
Modifier and Type | Method and Description |
---|---|
boolean |
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.
|
void |
mustNotCacheLoader()
Tells the system to avoid caching the loader produced by the provider.
|
getBaseStructureId, getBaseUrl, getI18n, getI18nHelper, getLoadTimeMillis, getLoadTimeNanos, getLocale, getObject, getTimeZone, getUser, putObject
void mustNotCacheLoader()
boolean isItemAttribute(@Nullable 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. Such attributes may be used with StructureAttributeService.getItemValues(java.util.Collection<com.almworks.jira.structure.api.item.ItemIdentity>, java.util.Collection<? extends com.almworks.jira.structure.api.attribute.AttributeSpec<?>>)
.
An attribute may change to item-based or to forest-based during runtime, if extension apps are installed.
This method is the same as StructureAttributeService.isItemAttribute(com.almworks.jira.structure.api.attribute.AttributeSpec<?>)
and is supposed to be used by the providers to adjust the loaders based on whether dependent attributes
are item based or not.
attribute
- attributeCopyright © 2024 Tempo Software. All Rights Reserved.