Class AbstractSingleEntityLocator
java.lang.Object
com.atlassian.confluence.core.service.AbstractSingleEntityLocator
- All Implemented Interfaces:
EntityLocator
,SingleEntityLocator
- Direct Known Subclasses:
AbstractPageLocator
,IdBlogPostLocator
,IdContentLocator
,KeySpaceLocator
Base class for SingleEntityLocator that enforces the contract between
getEntity
and
getEntities
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the entities that match the query represented by this locator.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.core.service.SingleEntityLocator
getEntity
-
Constructor Details
-
AbstractSingleEntityLocator
public AbstractSingleEntityLocator()
-
-
Method Details
-
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 interfaceEntityLocator
- Returns:
- the entities found by this EntityLocator, or an empty list if no entities matched the query
-