Interface SearchManager
- All Superinterfaces:
AutoCloseable, Closeable, OsidManager, OsidManager, OsidProfile, SearchProfile, Sourceable
The search manager provides access to search sessions and provides interoperability tests for various aspects of this service. The sessions included in this manager are:
-
SearchSession: a session for evaluating and executing search -
EngineLookupSession: a session to retrieve engine objects -
EngineQuerySession: a session to query for engines -
EngineSearchSession: a session to search for engines -
EngineAdminSession: a session to create, update and delete engines -
EngineNotificationSession: a session to receive notifications for changes in engines -
EngineHierarchySession: a session to traverse hierarchies of engines -
EngineHierarchyDesignSession: a session to manage hierarchies of engines
The search manager also provides a profile for determing the supported search types supported by this service.
-
Method Summary
Modifier and TypeMethodDescriptionGets theOsidSessionassociated with the engine administrative service.Gets theOsidSessionassociated with the engine hierarchy design service.Gets theOsidSessionassociated with the engine hierarchy service.Gets theOsidSessionassociated with the engine lookup service.getEngineNotificationSession(EngineReceiver engineReceiver) Gets theOsidSessionassociated with the engine notification service.Gets theOsidSessionassociated with the engine query service.Gets theOsidSessionassociated with the engine search service.Gets theOsidSessionassociated with the search service.getSearchSessionForEngine(Id engineId) Gets theOsidSessionassociated with the search service for the given engine.Methods inherited from interface OsidManager
closeMethods inherited from interface OsidManager
changeBranch, initialize, rollbackServiceModifier and TypeMethodDescriptionvoidchangeBranch(Id branchId) Changes the service branch.voidinitialize(OsidRuntimeManager runtime) Initializes this manager.rollbackService(Date rollbackTime) Rolls back this service to a point in time.Methods inherited from interface OsidProfile
getBranch, getBranchId, getDescription, getDisplayName, getId, getLocales, getProxyRecordTypes, getReleaseDate, getVersion, supportsJournalBranching, supportsJournalRollback, supportsOSIDVersion, supportsProxyRecordTypeModifier and TypeMethodDescriptionGets this service branch.Gets theBranch Idrepresenting this service branch.Gets a description of this service implementation.Gets a display name for this service implementation.getId()Gets an identifier for this service implementation.Gets the locales supported in this service.Gets the proxy recordTypessupported in this service.Gets the date this service implementation was released.Gets the version of this service implementation.booleanTest for support of a journal branching service.booleanTest for support of a journaling rollback service.booleansupportsOSIDVersion(Version version) Test for support of an OSID specification version.booleansupportsProxyRecordType(Type proxyRecordType) Test for support of a proxy type.Methods inherited from interface SearchProfile
getEngineRecordTypes, getEngineSearchRecordTypes, getQueryRecordTypes, getSearchRecordTypes, supportsEngineAdmin, supportsEngineHierarchy, supportsEngineHierarchyDesign, supportsEngineLookup, supportsEngineNotification, supportsEngineQuery, supportsEngineRecordType, supportsEngineSearch, supportsEngineSearchRecordType, supportsQueryRecordType, supportsSearch, supportsSearchRecordType, supportsVisibleFederationModifier and TypeMethodDescriptionGets the supportedEnginerecord types.Gets the supported engine search record types.Gets the supported query record types.Gets the supported search record types.booleanTests for the availability of an engine administrative service for creating and deleting engines.booleanTests for the availability of an engine hierarchy traversal service.booleanTests for the availability of an engine hierarchy design service.booleanTests for the availability of an engine lookup service.booleanTests for the availability of an engine notification service.booleanTests if querying for engines is available.booleansupportsEngineRecordType(Type engineRecordType) Tests if the givenEnginerecord type is supported.booleanTests if searching for engines is available.booleansupportsEngineSearchRecordType(Type engineSearchRecordType) Tests if the given engine search record type is supported.booleansupportsQueryRecordType(Type queryRecordType) Tests if the given query record type is supported.booleanTests if search is supported.booleansupportsSearchRecordType(Type searchRecordType) Tests if the given search record type is supported.booleanTests if any engine federation is exposed.Methods inherited from interface Sourceable
getBranding, getBrandingIds, getLicense, getProvider, getProviderIdModifier and TypeMethodDescriptionGets a branding, such as an image or logo, expressed using theAssetinterface.Gets the branding assetIds.Gets the terms of usage.Gets theResourcerepresenting the provider.Gets theIdof the provider.
-
Method Details
-
getSearchSession
Gets theOsidSessionassociated with the search service.- Returns:
- a
SearchSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsSearch()isfalse- Compliance:
optional- This method must be implemented if {@code supportsSearch()} is {@code true} .
-
getSearchSessionForEngine
SearchSession getSearchSessionForEngine(Id engineId) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the search service for the given engine.- Parameters:
engineId- theIdof theEngine- Returns:
- a
SearchSession - Throws:
NotFoundException- noEnginefound by the givenIdNullArgumentException-engineIdisnullOperationFailedException- unable to complete requestUnimplementedException-supportsSearch()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsSearch()} and {@code supportsVisibleFederation()} are {@code true}
-
getEngineLookupSession
Gets theOsidSessionassociated with the engine lookup service.- Returns:
- an
EngineLookupSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsEngineLookup()isfalse- Compliance:
optional- This method must be implemented if {@code supportsEngineLookup()} is {@code true} .
-
getEngineQuerySession
Gets theOsidSessionassociated with the engine query service.- Returns:
- an
EngineQuerySession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsEngineQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsEngineQuery()} is {@code true} .
-
getEngineSearchSession
Gets theOsidSessionassociated with the engine search service.- Returns:
- an
EngineSearchSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsEngineSearch()isfalse- Compliance:
optional- This method must be implemented if {@code supportsEngineSearch()} is {@code true} .
-
getEngineAdminSession
Gets theOsidSessionassociated with the engine administrative service.- Returns:
- an
EngineAdminSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsEngineAdmin()isfalse- Compliance:
optional- This method must be implemented if {@code supportsEngineAdmin()} is {@code true} .
-
getEngineNotificationSession
EngineNotificationSession getEngineNotificationSession(EngineReceiver engineReceiver) throws OperationFailedException Gets theOsidSessionassociated with the engine notification service.- Parameters:
engineReceiver- the receiver- Returns:
- an
EngineNotificationSession - Throws:
NullArgumentException-engineReceiverisnullOperationFailedException- unable to complete requestUnimplementedException-supportsEngineNotification()isfalse- Compliance:
optional- This method must be implemented if {@code supportsEngineNotification()} is {@code true} .
-
getEngineHierarchySession
Gets theOsidSessionassociated with the engine hierarchy service.- Returns:
- an
EngineHierarchySession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsEngineHierarchy()isfalse- Compliance:
optional- This method must be implemented if {@code supportsEngineHierarchy()} is {@code true} .
-
getEngineHierarchyDesignSession
Gets theOsidSessionassociated with the engine hierarchy design service.- Returns:
- an
EngineierarchyDesignSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsEngineHierarchyDesign()isfalse- Compliance:
optional- This method must be implemented if {@code supportsEngineHierarchyDesign()} is {@code true} .
-