Class ContentLikesMetadataProvider

java.lang.Object
com.atlassian.confluence.plugins.like.providers.ContentLikesMetadataProvider
All Implemented Interfaces:
ModelMetadataProvider

public class ContentLikesMetadataProvider extends Object implements ModelMetadataProvider
Provides Likes metadata for Content entities supplied via the Confluence API.
  • Constructor Details

    • ContentLikesMetadataProvider

      public ContentLikesMetadataProvider(LikeManager likeManager)
  • Method Details

    • 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 interface ModelMetadataProvider
      Parameters:
      entities - - a list of entities to fetch the metadata for
      expansions - - 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 interface ModelMetadataProvider