Class SpaceListAccess

java.lang.Object
org.exoplatform.social.core.space.SpaceListAccess
All Implemented Interfaces:
org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space>

public class SpaceListAccess extends Object implements org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space>
  • Field Details

    • SPACE_CONTENT_TYPE

      public static final String SPACE_CONTENT_TYPE
      The unified-search content type of spaces, as the Spaces connector declares it.
      See Also:
  • Constructor Details

  • Method Details

    • getSize

      public int getSize()
      The number of spaces of this listing. On the search index, it counts the same query as load(int, int), contributed ids included; when the size is read before any page, the contributions are collected for a page of 10.
      Specified by:
      getSize in interface org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space>
      Returns:
      the number of spaces
    • load

      public org.exoplatform.social.core.space.model.Space[] load(int offset, int limit)
      One page of this listing. On the search index, the contributions, when the listing asks for them, are collected once for offset + limit results and kept for getSize().
      Specified by:
      load in interface org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space>
      Parameters:
      offset - the first space
      limit - the number of spaces
      Returns:
      the spaces, never null
    • getFieldMatches

      public Map<String, io.meeds.social.search.model.SearchFieldMatches> getFieldMatches()
      What matched in the form values of each space a search contributor found, per space id, for the spaces this listing returns; empty when the listing collected none.
      Returns:
      the match lines, per space id, never null