public class LabelsModelMetadataProvider extends Object implements ModelMetadataProvider
Constructor and Description |
---|
LabelsModelMetadataProvider(ContentLabelService contentLabelService,
NavigationService navigationService) |
Modifier and Type | Method and Description |
---|---|
Map<String,?> |
getMetadata(Object entity,
Expansions expansions)
Returns keyed metadata based on the passed entity and the expansions.
|
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()
get the list of properties that the MetadataProvider provides metadata for
|
public LabelsModelMetadataProvider(ContentLabelService contentLabelService, NavigationService navigationService)
public Map<String,?> getMetadata(Object entity, Expansions expansions)
ModelMetadataProvider
getMetadata
in interface ModelMetadataProvider
entity
- a Confluence API object (e.g. Content, Space)expansions
- indicating which metadata (and at which depth) to includepublic Map<Object,Map<String,?>> getMetadataForAll(Iterable<Object> entities, Expansions expansions)
ModelMetadataProvider
getMetadataForAll
in interface ModelMetadataProvider
entities
- - a list of entities to fetch the metadata forexpansions
- - indicating which metadata (and at which depth) should be fetched for each entitypublic List<String> getMetadataProperties()
ModelMetadataProvider
getMetadataProperties
in interface ModelMetadataProvider
Copyright © 2003–2016 Atlassian. All rights reserved.