Interface FloorLookupSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods for retrieving Floors . The
Floor represents a collection of rooms.
This session defines views that offer differing behaviors when retrieving multiple objects.
- comparative view: elements may be silently omitted or re-ordered
- plenary view: provides a complete set or is an error condition
- isolated campus view: All floor methods in this session operate,
retrieve and pertain to floors defined explicitly in the current
campus. Using an isolated view is useful for managing floors with the
FloorAdminSession. - federated campus view: All floor lookup methods in this session operate, retrieve and pertain to all floors defined in this campus and any other campuses implicitly available in this campus through campus inheritence.
- effective floor view: All floor lookup methods return effective floors.
- any effective floor view: Floors of any effective date are returned.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanTests if this user can performFloorlookups.Gets theCampusassociated with this session.Gets theCampusIdassociated with this session.Gets theFloorspecified by itsId.Gets allFloors.getFloorsByGenusType(Type floorGenusType) Gets aFloorListcorresponding to the given floor genusTypewhich does not include floors of genus types derived from the specifiedType.getFloorsByIds(IdList floorIds) Gets aFloorListcorresponding to the givenIdList.getFloorsByNumber(String number) Gets a list of all floors of the given number.getFloorsByParentGenusType(Type floorGenusType) Gets aFloorListcorresponding to the given floor genusTypeand include any additional floors with genus types derived from the specifiedType.getFloorsByRecordType(Type floorRecordType) Gets aFloorListcontaining the given floor recordType.getFloorsForBuilding(Id buildingId) Gets a list of all floors corresponding to a buildingId.getFloorsForBuildingOnDate(Id buildingId, DateTime from, DateTime to) Gets a list of all floors corresponding to a buildingIdand effective during the entire given date range inclusive but not confined to the date range.getFloorsOnDate(DateTime from, DateTime to) Gets a list of all floors effective during the entire given date range inclusive but not confined to the date range.voidFloors of any effective dates are returned by all methods in this session.voidThe returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error.voidOnly floors whose effective dates are current are returned by methods in this sessionvoidFederates the view for methods in this session.voidIsolates the view for methods in this session.voidA complete view of theFloorreturns is desired.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
-
getCampusId
Id getCampusId()Gets theCampusIdassociated with this session.- Returns:
- the
Campus Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getCampus
Gets theCampusassociated with this session.- Returns:
- the campus
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canLookupFloors
boolean canLookupFloors()Tests if this user can performFloorlookups. 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 aPERMISSION_DENIED. This is intended as a hint to an application that may not offer lookup operations to unauthorized users.- Returns:
falseif lookup methods are not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
useComparativeFloorView
void useComparativeFloorView()The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error. This view is used when greater interoperability is desired at the expense of precision.- Compliance:
mandatory- This method is must be implemented.
-
usePlenaryFloorView
void usePlenaryFloorView()A complete view of theFloorreturns 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.- Compliance:
mandatory- This method is must be implemented.
-
useFederatedCampusView
void useFederatedCampusView()Federates the view for methods in this session. A federated view will include floors in campuses which are children of this campus in the campus hierarchy.- Compliance:
mandatory- This method is must be implemented.
-
useIsolatedCampusView
void useIsolatedCampusView()Isolates the view for methods in this session. An isolated view restricts retrievals to this campus only.- Compliance:
mandatory- This method is must be implemented.
-
useEffectiveFloorView
void useEffectiveFloorView()Only floors whose effective dates are current are returned by methods in this session- Compliance:
mandatory- This method is must be implemented.
-
useAnyEffectiveFloorView
void useAnyEffectiveFloorView()Floors of any effective dates are returned by all methods in this session.- Compliance:
mandatory- This method is must be implemented.
-
getFloor
Floor getFloor(Id floorId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets theFloorspecified by itsId. In plenary mode, the exactIdis found or aNOT_FOUNDresults. Otherwise, the returnedFloormay have a differentIdthan requested, such as the case where a duplicateIdwas assigned to aFloorand retained for compatibility. In effective mode, floors are returned that are currently effective. In any effective mode, effective floors and those currently expired are returned.- Parameters:
floorId-Idof theFloor- Returns:
- the floor
- Throws:
NotFoundException-floorIdnot foundNullArgumentException-floorIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method is must be implemented.
-
getFloorsByIds
FloorList getFloorsByIds(IdList floorIds) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets aFloorListcorresponding to the givenIdList. In plenary mode, the returned list contains all of the floors specified in theIdlist, in the order of the list, including duplicates, or an error results if anIdin the supplied list is not found or inaccessible. Otherwise, inaccessibleFloorsmay be omitted from the list and may present the elements in any order including returning a unique set. In effective mode, floors are returned that are currently effective. In any effective mode, effective floors and those currently expired are returned.- Parameters:
floorIds- the list ofIdsto retrieve- Returns:
- the returned
Floorlist - Throws:
NotFoundException- anIdwas not foundNullArgumentException-floorIdsisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getFloorsByGenusType
FloorList getFloorsByGenusType(Type floorGenusType) throws OperationFailedException, PermissionDeniedException Gets aFloorListcorresponding to the given floor genusTypewhich does not include floors of genus types derived from the specifiedType. In plenary mode, the returned list contains all known floors or an error results. Otherwise, the returned list may contain only those floors that are accessible through this session. In effective mode, floors are returned that are currently effective. In any effective mode, effective floors and those currently expired are returned.- Parameters:
floorGenusType- a floor genus type- Returns:
- the returned
Floorlist - Throws:
NullArgumentException-floorGenusTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getFloorsByParentGenusType
FloorList getFloorsByParentGenusType(Type floorGenusType) throws OperationFailedException, PermissionDeniedException Gets aFloorListcorresponding to the given floor genusTypeand include any additional floors with genus types derived from the specifiedType. In plenary mode, the returned list contains all known floors or an error results. Otherwise, the returned list may contain only those floors that are accessible through this session. In effective mode, floors are returned that are currently effective. In any effective mode, effective floors and those currently expired are returned.- Parameters:
floorGenusType- a floor genus type- Returns:
- the returned
Floorlist - Throws:
NullArgumentException-floorGenusTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getFloorsByRecordType
FloorList getFloorsByRecordType(Type floorRecordType) throws OperationFailedException, PermissionDeniedException Gets aFloorListcontaining the given floor recordType. In plenary mode, the returned list contains all known floors or an error results. Otherwise, the returned list may contain only those floors that are accessible through this session. In effective mode, floors are returned that are currently effective. In any effective mode, effective floors and those currently expired are returned.- Parameters:
floorRecordType- a floor record type- Returns:
- the returned
Floorlist - Throws:
NullArgumentException-floorRecordTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getFloorsOnDate
FloorList getFloorsOnDate(DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets a list of all floors effective during the entire given date range inclusive but not confined to the date range. In plenary mode, the returned list contains all known floors or an error results. Otherwise, the returned list may contain only those floors that are accessible through this session. In effective mode, floors are returned that are currently effective. In any effective mode, effective floors and those currently expired are returned.- Parameters:
from- start of date rangeto- end of date range- Returns:
- the returned
FloorList - Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-fromortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getFloorsForBuilding
FloorList getFloorsForBuilding(Id buildingId) throws OperationFailedException, PermissionDeniedException Gets a list of all floors corresponding to a buildingId. In plenary mode, the returned list contains all known floors or an error results. Otherwise, the returned list may contain only those floors that are accessible through this session. In effective mode, floors are returned that are currently effective. In any effective mode, effective floors and those currently expired are returned.- Parameters:
buildingId- theIdof the building- Returns:
- the returned
FloorList - Throws:
NullArgumentException-buildingIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getFloorsForBuildingOnDate
FloorList getFloorsForBuildingOnDate(Id buildingId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets a list of all floors corresponding to a buildingIdand effective during the entire given date range inclusive but not confined to the date range. In plenary mode, the returned list contains all known floors or an error results. Otherwise, the returned list may contain only those floors that are accessible through this session. In effective mode, floors are returned that are currently effective. In any effective mode, effective floors and those currently expired are returned.- Parameters:
buildingId- a buildingIdfrom- from dateto- to date- Returns:
- the returned
FloorList - Throws:
InvalidArgumentException-tois less thanfromNullArgumentException-buildingId, from, ortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getFloorsByNumber
FloorList getFloorsByNumber(String number) throws OperationFailedException, PermissionDeniedException Gets a list of all floors of the given number. In plenary mode, the returned list contains all known floors or an error results. Otherwise, the returned list may contain only those floors that are accessible through this session. In effective mode, floors are returned that are currently effective. In any effective mode, effective floors and those currently expired are returned.- Parameters:
number- a floor number- Returns:
- the returned
FloorList - Throws:
NullArgumentException-numberisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getFloors
Gets allFloors. In plenary mode, the returned list contains all known floors or an error results. Otherwise, the returned list may contain only those floors that are accessible through this session. In effective mode, floors are returned that are currently effective. In any effective mode, effective floors and those currently expired are returned.- Returns:
- a list of
Floors - Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-