public interface BuildingLookupSession extends OsidSession
This session provides methods for retrieving Building
objects. The Building represents a collection of rooms.
This session defines views that offer differing behaviors when retrieving multiple objects.
BuildingAdminSession. | Modifier and Type | Method and Description |
|---|---|
boolean |
canLookupBuildings()
Tests if this user can perform
Building lookups. |
Building |
getBuilding(Id buildingId)
Gets the
Building specified by its Id. |
BuildingList |
getBuildings()
Gets all
Buildings. |
BuildingList |
getBuildingsByGenusType(Type buildingGenusType)
Gets a
BuildingList corresponding to the given building
genus Type which does not include buildings of genus
types derived from the specified Type. |
BuildingList |
getBuildingsByIds(IdList buildingIds)
Gets a
BuildingList corresponding to the given
IdList. |
BuildingList |
getBuildingsByNumber(java.lang.String number)
Gets a
BuildingList containing of the given building
number. |
BuildingList |
getBuildingsByParentGenusType(Type buildingGenusType)
Gets a
BuildingList corresponding to the given building
genus Type and include any additional buildings with
genus types derived from the specified Type. |
BuildingList |
getBuildingsByRecordType(Type buildingRecordType)
Gets a
BuildingList containing the given building
record Type. |
BuildingList |
getBuildingsOnDate(DateTime from,
DateTime to)
Gets a list of all buildings effective during the entire given date
range inclusive but not confined to the date range.
|
Campus |
getCampus()
Gets the
Campus associated with this session. |
Id |
getCampusId()
Gets the
Campus Id associated with this
session. |
void |
useAnyEffectiveBuildingView()
Buildings of any effective dates are returned by all methods in this
session.
|
void |
useComparativeBuildingView()
The returns from the lookup methods may omit or translate elements
based on this session, such as authorization, and not result in an
error.
|
void |
useEffectiveBuildingView()
Only buildings whose effective dates are current are returned by
methods in this session
|
void |
useFederatedCampusView()
Federates the view for methods in this session.
|
void |
useIsolatedCampusView()
Isolates the view for methods in this session.
|
void |
usePlenaryBuildingView()
A complete view of the
Building returns is desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseId getCampusId()
Campus Id associated with this
session. Campus Id associated with this sessionmandatory - This method must be implemented. Campus getCampus() throws OperationFailedException, PermissionDeniedException
Campus associated with this session.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canLookupBuildings()
Building lookups. A
return of true does not guarantee successful authorization. A return
of false indicates that it is known all methods in this session will
result in a PERMISSION_DENIED. This is intended as a
hint to an application that may not offer lookup operations to
unauthorized users. false if lookup methods are not authorized,
true otherwisemandatory - This method must be implemented. void useComparativeBuildingView()
mandatory - This method is must be implemented. void usePlenaryBuildingView()
Building returns is desired.
Methods will return what is requested or result in an error. This view
is used when greater precision is desired at the expense of
interoperability.mandatory - This method is must be implemented. void useFederatedCampusView()
mandatory - This method is must be implemented. void useIsolatedCampusView()
mandatory - This method is must be implemented. void useEffectiveBuildingView()
mandatory - This method is must be implemented. void useAnyEffectiveBuildingView()
mandatory - This method is must be implemented. Building getBuilding(Id buildingId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Building specified by its Id.
In plenary mode, the exact Id is found
or a NOT_FOUND results. Otherwise, the returned
Building may have a different Id than
requested, such as the case where a duplicate Id was
assigned to a Building and retained for compatibility.
In effective mode, buildings are returned that are currently
effective. In any effective mode, effective buildings and those
currently expired are returned.buildingId - Id of the Building NotFoundException - buildingId not foundNullArgumentException - buildingId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method is must be implemented. BuildingList getBuildingsByIds(IdList buildingIds) throws NotFoundException, OperationFailedException, PermissionDeniedException
BuildingList corresponding to the given
IdList.
In plenary mode, the returned list contains all of the
buildings specified in the Id list, in the order of the
list, including duplicates, or an error results if an Id
in the supplied list is not found or inaccessible. Otherwise,
inaccessible Buildings may be omitted from the list and
may present the elements in any order including returning a unique
set.
In effective mode, buildings are returned that are currently
effective. In any effective mode, effective buildings and those
currently expired are returned.buildingIds - the list of Ids to retrieve Building listNotFoundException - an Id was not foundNullArgumentException - buildingIds is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. BuildingList getBuildingsByGenusType(Type buildingGenusType) throws OperationFailedException, PermissionDeniedException
BuildingList corresponding to the given building
genus Type which does not include buildings of genus
types derived from the specified Type.
In plenary mode, the returned list contains all known
buildings or an error results. Otherwise, the returned list may
contain only those buildings that are accessible through this session.
In effective mode, buildings are returned that are currently
effective. In any effective mode, effective buildings and those
currently expired are returned.buildingGenusType - a building genus type Building listNullArgumentException - buildingGenusType
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. BuildingList getBuildingsByParentGenusType(Type buildingGenusType) throws OperationFailedException, PermissionDeniedException
BuildingList corresponding to the given building
genus Type and include any additional buildings with
genus types derived from the specified Type.
In plenary mode, the returned list contains all known
buildings or an error results. Otherwise, the returned list may
contain only those buildings that are accessible through this session.
In effective mode, buildings are returned that are currently
effective. In any effective mode, effective buildings and those
currently expired are returned.buildingGenusType - a building genus type Building listNullArgumentException - buildingGenusType
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. BuildingList getBuildingsByRecordType(Type buildingRecordType) throws OperationFailedException, PermissionDeniedException
BuildingList containing the given building
record Type.
In plenary mode, the returned list contains all known
buildings or an error results. Otherwise, the returned list may
contain only those buildings that are accessible through this session.
In effective mode, buildings are returned that are currently
effective. In any effective mode, effective buildings and those
currently expired are returned.buildingRecordType - a building record type Building listNullArgumentException - buildingRecordType
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. BuildingList getBuildingsOnDate(DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
from - start of date rangeto - end of date range Building listInvalidArgumentException - from is
greater than to NullArgumentException - from or
to is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. BuildingList getBuildingsByNumber(java.lang.String number) throws OperationFailedException, PermissionDeniedException
BuildingList containing of the given building
number.
In plenary mode, the returned list contains all known
buildings or an error results. Otherwise, the returned list may
contain only those buildings that are accessible through this session.
In effective mode, buildings are returned that are currently
effective. In any effective mode, effective buildings and those
currently expired are returned.number - a building number Building listNullArgumentException - number is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. BuildingList getBuildings() throws OperationFailedException, PermissionDeniedException
Buildings.
In plenary mode, the returned list contains all known buildings or an
error results. Otherwise, the returned list may contain only those
buildings that are accessible through this session.
In effective mode, buildings are returned that are currently
effective. In any effective mode, effective buildings and those
currently expired are returned. Buildings OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.