Interface CompetencySearchSession

All Superinterfaces:
AutoCloseable, Closeable, CompetencyQuerySession, OsidSession, OsidSession

public interface CompetencySearchSession extends CompetencyQuerySession

This session provides methods for searching among Competency objects. The search query is constructed using the CompetencyyQuery.

getCompetenciesByQuery() is the basic search method and returns a list of Competencies. A more advanced search may be performed with getCompetenciesBySearch().It accepts a CompetencySearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getCompetenciesBySearch() returns a CompetencySearchResults that can be used to access the resulting CompetencyList or be used to perform a search within the result set through CompetencySearch.

This session defines views that offer differing behaviors for searching.

  • federated foundry view: searches include competencies in foundries of which this foundry is an ancestor in the foundry hierarchy
  • isolated foundry view: searches are restricted to competencies in this foundry

Competencies may have a query record indicated by their respective record types. The query record is accessed via the CompetencyQuery .

  • Method Details

    • getCompetencySearch

      CompetencySearch getCompetencySearch()
      Gets a competency search.
      Returns:
      the competency search
      Compliance:
      mandatory - This method must be implemented.
    • getCompetencySearchOrder

      CompetencySearchOrder getCompetencySearchOrder()
      Gets a competency search order. The CompetencySearchOrder is supplied to a CompetencySearch to specify the ordering of results.
      Returns:
      the competency search order
      Compliance:
      mandatory - This method must be implemented.
    • getCompetenciesBySearch

      CompetencySearchResults getCompetenciesBySearch(CompetencyQuery competencyQuery, CompetencySearch competencySearch) throws OperationFailedException, PermissionDeniedException
      Gets the search results matching the given search query using the given search.
      Parameters:
      competencyQuery - the competency query
      competencySearch - the competency search
      Returns:
      the returned search results
      Throws:
      NullArgumentException - competencyQuery or competencySearch is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      UnsupportedException - competencyQuery or competencySearch is not of this service
      Compliance:
      mandatory - This method must be implemented.
    • getCompetencyQueryFromInspector

      CompetencyQuery getCompetencyQueryFromInspector(CompetencyQueryInspector competencyQueryInspector)
      Gets a competency query from an inspector. The inspector is available from a CompetencySearchResults.
      Parameters:
      competencyQueryInspector - a competency query inspector
      Returns:
      the competency query
      Throws:
      NullArgumentException - competencyQueryInspector is null
      UnsupportedException - competencyQueryInspector is not of this service
      Compliance:
      mandatory - This method must be implemented.