Class AttachmentEditorHtmlProvider
- java.lang.Object
-
- com.atlassian.confluence.plugins.dragdrop.providers.AttachmentEditorHtmlProvider
-
- All Implemented Interfaces:
ModelMetadataProvider
public class AttachmentEditorHtmlProvider extends Object implements ModelMetadataProvider
Provides editorHtml metadata on a Content attachment entity.- Since:
- 6.7.0
-
-
Constructor Summary
Constructors Constructor Description AttachmentEditorHtmlProvider(DragAndDropService dragAndDropService, ContentEntityManager contentEntityManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 this ModelMetadataProvider provides metadata for.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.confluence.api.extension.ModelMetadataProvider
getMetadata, getProperties
-
-
-
-
Constructor Detail
-
AttachmentEditorHtmlProvider
@Autowired public AttachmentEditorHtmlProvider(DragAndDropService dragAndDropService, ContentEntityManager contentEntityManager)
-
-
Method Detail
-
getMetadataForAll
public Map<Object,Map<String,?>> getMetadataForAll(Iterable<Object> entities, Expansions expansions)
Description copied from interface:ModelMetadataProvider
Fetches metadata for a list of entities, returning a map of maps of metadata. Initially keyed by the entity, and then by the metadata property. Implementors should attempt to fetch the metadata efficiently and try to avoid performing an individual query per entity.- Specified by:
getMetadataForAll
in interfaceModelMetadataProvider
- Parameters:
entities
- - a list of entities to fetch the metadata forexpansions
- - indicating which metadata (and at which depth) should be fetched for each entity- Returns:
- a map of maps of metadata, keyed by entity.
-
getMetadataProperties
public List<String> getMetadataProperties()
Description copied from interface:ModelMetadataProvider
Get the list of properties that this ModelMetadataProvider provides metadata for.- Specified by:
getMetadataProperties
in interfaceModelMetadataProvider
-
-