@PublicSpi
public interface ModelMetadataProvider
Modifier and Type | Method and Description |
---|---|
default Map<String,?> |
getMetadata(Object entity,
Expansions expansions)
Deprecated.
since 5.10 Consider bulk evaluating meta-data by implementing getMetadataForAll.
Remove your implementation of the getMetadata method, which will cause Confluence
to call the getMetadataForAll method instead.
|
Map<Object,Map<String,?>> |
getMetadataForAll(Iterable<Object> entities,
Expansions expansions)
Fetches metadata for a list of entities, returning a map of maps of metadata.
|
List<String> |
getMetadataProperties()
Deprecated.
since 6.12.0 - Must implement getProperties() on this interface.
New implementations can return empty list here.
|
default List<MetadataProperty> |
getProperties()
Get the type hierarchy of the fields and their types provided by this ModelMetadataProvider.
|
@Deprecated default Map<String,?> getMetadata(Object entity, Expansions expansions)
Map<Object,Map<String,?>> getMetadataForAll(Iterable<Object> entities, Expansions expansions)
entities
- - a list of entities to fetch the metadata forexpansions
- - indicating which metadata (and at which depth) should be fetched for each entity@Deprecated List<String> getMetadataProperties()
default List<MetadataProperty> getProperties()
Copyright © 2003–2021 Atlassian. All rights reserved.