public abstract class ItemTypeAttributeLoader<A> extends AbstractItemAttributeLoader<A>
| Modifier and Type | Field and Description |
|---|---|
protected Set<String> |
myItemTypes |
mySpec| Constructor and Description |
|---|
ItemTypeAttributeLoader(AttributeSpec<A> spec,
String... itemTypes) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isItemTypeSupported(String itemType)
Lets the loader declare if it can handle items of a given type.
|
getAttributeSpec, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitloadValue, preloadgetAttributeDependencies, getAttributeSpec, getCachingStrategy, getContextDependencies, getGlobalTrailpublic ItemTypeAttributeLoader(AttributeSpec<A> spec, String... itemTypes)
public final boolean isItemTypeSupported(String itemType)
ItemAttributeLoaderLets the loader declare if it can handle items of a given type. If the loader returns false for some type, its ItemAttributeLoader.loadValue(com.almworks.jira.structure.api.item.ItemIdentity, com.almworks.jira.structure.api.attribute.loader.ItemAttributeContext)
function will not be called for items of that type; also, non-supported items will be excluded from the collection passed to ItemAttributeLoader.preload(java.util.Collection<com.almworks.jira.structure.api.item.ItemIdentity>, com.almworks.jira.structure.api.attribute.loader.AttributeContext) method.
The returned value must be the same for the same item type throughout the lifetime of the object.
itemType - the type of itemItemIdentityCopyright © 2023 ALM Works. All Rights Reserved.