Class AbstractSingleEntityLocator

java.lang.Object
com.atlassian.confluence.core.service.AbstractSingleEntityLocator
All Implemented Interfaces:
EntityLocator, SingleEntityLocator
Direct Known Subclasses:
AbstractPageLocator, IdBlogPostLocator, IdContentLocator, KeySpaceLocator

public abstract class AbstractSingleEntityLocator extends Object implements SingleEntityLocator
Base class for SingleEntityLocator that enforces the contract between getEntity and getEntities
  • Constructor Details

    • AbstractSingleEntityLocator

      public AbstractSingleEntityLocator()
  • Method Details

    • getEntities

      public List<ConfluenceEntityObject> getEntities()
      Description copied from interface: EntityLocator
      Get the entities that match the query represented by this locator. If no entities match the query, this method will return an empty list. If the locator will only ever return a single entity, this method should return a single element list.

      Whether the ordering of entities in the returned list is significant is dependent on the specific implementation of the locator.

      Specified by:
      getEntities in interface EntityLocator
      Returns:
      the entities found by this EntityLocator, or an empty list if no entities matched the query