Interface BuildingSearchSession
- All Superinterfaces:
AutoCloseable, BuildingQuerySession, Closeable, OsidSession, OsidSession
This session provides methods for searching Buildings . The
search query is constructed using the BuildingQuery . The building
record Type also specifies the record for the building query.
getBuildingsByQuery() is the basic search method and returns a
list of Building elements. A more advanced search may be performed
with getBuildingsBySearch() .It accepts a BuildingSearch
in addition to the query for the purpose of specifying additional options
affecting the entire search, such as ordering.
getBuildingsBySearch() returns a BuildingSearchResults that can
be used to access the resulting BuildingList or be used to perform
a search within the result set through BuildingSearch .
Buildings may have a query record indicated by their respective record
types. The query record is accessed via the BuildingQuery . The
returns in this session may not be cast directly to these interfaces.
-
Method Summary
Modifier and TypeMethodDescriptiongetBuildingQueryFromInspector(BuildingQueryInspector buildingQueryInspector) Gets a building query from an inspector.getBuildingsBySearch(BuildingQuery buildingQuery, BuildingSearch buildingSearch) Gets the search results matching the given search.Gets a building search.Gets a building search order.Methods inherited from interface BuildingQuerySession
canSearchBuildings, getBuildingQuery, getBuildingsByQuery, getCampus, getCampusId, useFederatedCampusView, useIsolatedCampusViewModifier and TypeMethodDescriptionbooleanTests if this user can performBuildingsearches.Gets a building query.getBuildingsByQuery(BuildingQuery buildingQuery) Gets a list ofBuildingsmatching the given building query.Gets theCampusassociated with this session.Gets theCampusIdassociated with this session.voidFederates the view for methods in this session.voidIsolates the view for methods in this session.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionsModifier and TypeMethodDescriptionGets the agent authenticated to this session.Gets theIdof the agent authenticated to this session.Gets the rate of the service clock.getDate()Gets the service date which may be the current date or the effective date in which this session exists.Gets the effective agent in use by this session.Gets theIdof the effective agent in use by this session.Gets theDisplayTextformatTypepreference in effect for this session.Gets the locale indicating the localization preferences in effect for this session.booleanTests if an agent is authenticated to this session.Starts a new transaction for this sesson.booleanTests for the availability of transactions.
-
Method Details
-
getBuildingSearch
BuildingSearch getBuildingSearch()Gets a building search.- Returns:
- the building search
- Compliance:
mandatory- This method must be implemented.
-
getBuildingSearchOrder
BuildingSearchOrder getBuildingSearchOrder()Gets a building search order. TheBuildingSearchOrderis supplied to aBuildingSearchto specify the ordering of results.- Returns:
- the building search order
- Compliance:
mandatory- This method must be implemented.
-
getBuildingsBySearch
BuildingSearchResults getBuildingsBySearch(BuildingQuery buildingQuery, BuildingSearch buildingSearch) throws OperationFailedException, PermissionDeniedException Gets the search results matching the given search.- Parameters:
buildingQuery- the building querybuildingSearch- the building search- Returns:
- the building search results
- Throws:
NullArgumentException-buildingQueryorbuildingSearchisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-buildingQueryorbuildingSearchis not of this service- Compliance:
mandatory- This method must be implemented.
-
getBuildingQueryFromInspector
Gets a building query from an inspector. The inspector is available from aBuildingSearchResults.- Parameters:
buildingQueryInspector- a query inspector- Returns:
- the building query
- Throws:
NullArgumentException-buildingQueryInspectorisnullUnsupportedException-buildingQueryInspectoris not of this service- Compliance:
mandatory- This method must be implemented.
-