com.atlassian.confluence.core.persistence
Interface SearchableDao

All Known Implementing Classes:
HibernateSearchableDao

public interface SearchableDao

Provides access to Searchable objects. Searchable is a marker interface over persistent classes (and is not in itself persistent).


Method Summary
 java.util.List<com.atlassian.bonnie.Handle> findAllSearchableHandles()
          Deprecated. since 5.2.
 java.util.List<com.atlassian.bonnie.Handle> findLatestSearchableHandles()
          Deprecated. since 5.2. Use getAllSearchablesGroupedByType().
 java.util.List<java.util.List<HibernateHandle>> getAllSearchablesGroupedByType()
          Deprecated. since 5.2. Use getLatestSearchableHandlesGroupedByType()
 int getCountOfLatestSearchables()
          Finds the count of all latest searchables.
 int getCountOfLatestSearchables(java.lang.Class clazz)
          Finds the count of the latest searchables that implement the specified hibernate entity class.
 java.util.List<HibernateHandle> getLatestSearchableHandles(java.lang.Class clazz)
          Finds a list of handles for the specified class.
 java.util.List<java.util.List<HibernateHandle>> getLatestSearchableHandlesGroupedByType()
          Returns a list of latest searchable handles grouped by hibernate entity class.
 int getSearchableCount()
          Deprecated. since 5.2. Use getCountOfLatestSearchables() instead.
 

Method Detail

getLatestSearchableHandlesGroupedByType

java.util.List<java.util.List<HibernateHandle>> getLatestSearchableHandlesGroupedByType()
Returns a list of latest searchable handles grouped by hibernate entity class. Each sublist is guaranteed to be one type.

Returns:
a list of latest searchable handles grouped by hibernate entity class. Each sublist is guaranteed to be one type.
Since:
5.2

getLatestSearchableHandles

java.util.List<HibernateHandle> getLatestSearchableHandles(java.lang.Class clazz)
Finds a list of handles for the specified class.

Parameters:
clazz - a hibernate entity class
Since:
5.2

getCountOfLatestSearchables

int getCountOfLatestSearchables()
Finds the count of all latest searchables.

Since:
5.2

getCountOfLatestSearchables

int getCountOfLatestSearchables(java.lang.Class clazz)
Finds the count of the latest searchables that implement the specified hibernate entity class.

Parameters:
clazz - a hibernate entity class
Since:
5.2

getAllSearchablesGroupedByType

java.util.List<java.util.List<HibernateHandle>> getAllSearchablesGroupedByType()
Deprecated. since 5.2. Use getLatestSearchableHandlesGroupedByType()

Returns a grouped list of all searchables available. Each list is guaranteed to only contain one type of handles.

Returns:
a list of lists of handles. Grouped by handle type.
Since:
4.1

findAllSearchableHandles

java.util.List<com.atlassian.bonnie.Handle> findAllSearchableHandles()
Deprecated. since 5.2.

Gets handles for all Searchable objects.

Returns:
a List of Handles.

findLatestSearchableHandles

java.util.List<com.atlassian.bonnie.Handle> findLatestSearchableHandles()
Deprecated. since 5.2. Use getAllSearchablesGroupedByType().

Gets a handle for (@link Searchable} objects, only returning the latest version of objects that implement Versioned.

Returns:
a List of Handles

getSearchableCount

int getSearchableCount()
Deprecated. since 5.2. Use getCountOfLatestSearchables() instead.

Gets the total number of Searchables.

Returns:
the total number of Searchables.


Copyright © 2003-2014 Atlassian. All Rights Reserved.