Interface RenovationLookupSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods for retrieving Renovations . The
Renovation represents a work project to a room or set 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 renovation methods in this session
operate, retrieve and pertain to renovations defined explicitly in the
current campus. Using an isolated view is useful for managing
renovations with the
RenovationAdminSession. - federated campus view: All renovation lookup methods in this session operate, retrieve and pertain to all renovations defined in this campus and any other campuses implicitly available in this campus through campus inheritence.
- effective renovation view: All renovation lookup methods return effective renovations.
- any effective renovation view: Renovations of any effective date are returned.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanTests if this user can performRenovationlookups.Gets theCampusassociated with this session.Gets theCampusIdassociated with this session.getRenovation(Id renovationId) Gets theRenovationspecified by itsId.Gets allRenovations.getRenovationsByGenusType(Type renovationGenusType) Gets aRenovationListcorresponding to the given renovation genusTypewhich does not include renovations of genus types derived from the specifiedType.getRenovationsByGenusTypeForBuilding(Id buildingId, Type renovationGenusType) Gets a list of all renovations in a building and of a renovation genus type.getRenovationsByGenusTypeForBuildingOnDate(Id buildingId, Type renovationGenusType, DateTime from, DateTime to) Gets a list of all renovations in a building and of a renovation genus type effective during the entire given date range inclusive but not confined to the date range.getRenovationsByGenusTypeForFloor(Id floorId, Type renovationGenusType) Gets a list of all renovations on a floor and of a renovation genus type.getRenovationsByGenusTypeForFloorOnDate(Id floorId, Type renovationGenusType, DateTime from, DateTime to) Gets a list of all renovations on a floor and of a renovation genus type effective during the entire given date range inclusive but not confined to the date range.getRenovationsByGenusTypeForRoom(Id roomId, Type renovationGenusType) Gets a list of all renovations corresponding to a room and renovation genus type.getRenovationsByGenusTypeForRoomOnDate(Id roomId, Type renovationGenusType, DateTime from, DateTime to) Gets a list of all renovations for a room and of a renovation genus type effective during the entire given date range inclusive but not confined to the date range.getRenovationsByGenusTypeOnDate(Type renovationGenusType, DateTime from, DateTime to) Gets a list of all renovations of a genus type effective during the entire given date range inclusive but not confined to the date range.getRenovationsByIds(IdList renovationIds) Gets aRenovationListcorresponding to the givenIdList.getRenovationsByParentGenusType(Type renovationGenusType) Gets aRenovationListcorresponding to the given renovation genusTypeand include any additional renovations with genus types derived from the specifiedType.getRenovationsByRecordType(Type renovationRecordType) Gets aRenovationListcontaining the given renovation recordType.getRenovationsForBuilding(Id buildingId) Gets a list of all renovations in a building.getRenovationsForBuildingOnDate(Id buildingId, DateTime from, DateTime to) Gets a list of all renovations in a building with an effective during the entire given date range inclusive but not confined to the date range.getRenovationsForFloor(Id floorId) Gets a list of all renovations on a floorId.getRenovationsForFloorOnDate(Id floorId, DateTime from, DateTime to) Gets a list of all renovations on a floor with an effective during the entire given date range inclusive but not confined to the date range.getRenovationsForRoom(Id roomId) Gets a list of all renovations corresponding to a roomId.getRenovationsForRoomOnDate(Id roomId, DateTime from, DateTime to) Gets a list of all renovations for a room with an effective during the entire given date range inclusive but not confined to the date range.getRenovationsOnDate(DateTime from, DateTime to) Gets a list of all renovations effective during the entire given date range inclusive but not confined to the date range.voidRenovations 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 renovations 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 theRenovationreturns 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.
-
canLookupRenovations
boolean canLookupRenovations()Tests if this user can performRenovationlookups. 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.
-
useComparativeRenovationView
void useComparativeRenovationView()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.
-
usePlenaryRenovationView
void usePlenaryRenovationView()A complete view of theRenovationreturns 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 renovations 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.
-
useEffectiveRenovationView
void useEffectiveRenovationView()Only renovations whose effective dates are current are returned by methods in this session- Compliance:
mandatory- This method is must be implemented.
-
useAnyEffectiveRenovationView
void useAnyEffectiveRenovationView()Renovations of any effective dates are returned by all methods in this session.- Compliance:
mandatory- This method is must be implemented.
-
getRenovation
Renovation getRenovation(Id renovationId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets theRenovationspecified by itsId. In plenary mode, the exactIdis found or aNOT_FOUNDresults. Otherwise, the returnedRenovationmay have a differentIdthan requested, such as the case where a duplicateIdwas assigned to aRenovationand retained for compatibility. In effective mode, renovations are returned that are currently effective. In any effective mode, effective renovations and those currently expired are returned.- Parameters:
renovationId-Idof theRenovation- Returns:
- the renovation
- Throws:
NotFoundException-renovationIdnot foundNullArgumentException-renovationIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method is must be implemented.
-
getRenovationsByIds
RenovationList getRenovationsByIds(IdList renovationIds) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets aRenovationListcorresponding to the givenIdList. In plenary mode, the returned list contains all of the renovations 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, inaccessibleRenovationsmay be omitted from the list and may present the elements in any order including returning a unique set. In effective mode, renovations are returned that are currently effective. In any effective mode, effective renovations and those currently expired are returned.- Parameters:
renovationIds- the list ofIdsto retrieve- Returns:
- the returned
Renovationlist - Throws:
NotFoundException- anId wasnot foundNullArgumentException-renovationIdsisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getRenovationsByGenusType
RenovationList getRenovationsByGenusType(Type renovationGenusType) throws OperationFailedException, PermissionDeniedException Gets aRenovationListcorresponding to the given renovation genusTypewhich does not include renovations of genus types derived from the specifiedType. In plenary mode, the returned list contains all known renovations or an error results. Otherwise, the returned list may contain only those renovations that are accessible through this session. In effective mode, renovations are returned that are currently effective. In any effective mode, effective renovations and those currently expired are returned.- Parameters:
renovationGenusType- a renovation genus type- Returns:
- the returned
Renovationlist - Throws:
NullArgumentException-renovationGenusTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getRenovationsByParentGenusType
RenovationList getRenovationsByParentGenusType(Type renovationGenusType) throws OperationFailedException, PermissionDeniedException Gets aRenovationListcorresponding to the given renovation genusTypeand include any additional renovations with genus types derived from the specifiedType. In plenary mode, the returned list contains all known renovations or an error results. Otherwise, the returned list may contain only those renovations that are accessible through this session. In effective mode, renovations are returned that are currently effective. In any effective mode, effective renovations and those currently expired are returned.- Parameters:
renovationGenusType- a renovation genus type- Returns:
- the returned
Renovationlist - Throws:
NullArgumentException-renovationGenusTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getRenovationsByRecordType
RenovationList getRenovationsByRecordType(Type renovationRecordType) throws OperationFailedException, PermissionDeniedException Gets aRenovationListcontaining the given renovation recordType. In plenary mode, the returned list contains all known renovations or an error results. Otherwise, the returned list may contain only those renovations that are accessible through this session. In effective mode, renovations are returned that are currently effective. In any effective mode, effective renovations and those currently expired are returned.- Parameters:
renovationRecordType- a renovation record type- Returns:
- the returned
Renovationlist - Throws:
NullArgumentException-renovationRecordTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getRenovationsOnDate
RenovationList getRenovationsOnDate(DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets a list of all renovations effective during the entire given date range inclusive but not confined to the date range. In plenary mode, the returned list contains all known renovations or an error results. Otherwise, the returned list may contain only those renovations that are accessible through this session. In effective mode, renovations are returned that are currently effective. In any effective mode, effective renovations and those currently expired are returned.- Parameters:
from- start of date rangeto- end of date range- Returns:
- the returned
RenovationList - Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-fromortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getRenovationsByGenusTypeOnDate
RenovationList getRenovationsByGenusTypeOnDate(Type renovationGenusType, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets a list of all renovations of a genus type effective during the entire given date range inclusive but not confined to the date range. In plenary mode, the returned list contains all known renovations or an error results. Otherwise, the returned list may contain only those renovations that are accessible through this session. In effective mode, renovations are returned that are currently effective. In any effective mode, effective renovations and those currently expired are returned.- Parameters:
renovationGenusType- a renovation genus typefrom- start of date rangeto- end of date range- Returns:
- the returned
RenovationList - Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-renovationGenusType, fromortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getRenovationsForRoom
RenovationList getRenovationsForRoom(Id roomId) throws OperationFailedException, PermissionDeniedException Gets a list of all renovations corresponding to a roomId. In plenary mode, the returned list contains all known renovations or an error results. Otherwise, the returned list may contain only those renovations that are accessible through this session. In effective mode, renovations are returned that are currently effective. In any effective mode, effective renovations and those currently expired are returned.- Parameters:
roomId- theIdof the room- Returns:
- the returned
RenovationList - Throws:
NullArgumentException-roomIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getRenovationsByGenusTypeForRoom
RenovationList getRenovationsByGenusTypeForRoom(Id roomId, Type renovationGenusType) throws OperationFailedException, PermissionDeniedException Gets a list of all renovations corresponding to a room and renovation genus type. In plenary mode, the returned list contains all known renovations or an error results. Otherwise, the returned list may contain only those renovations that are accessible through this session. In effective mode, renovations are returned that are currently effective. In any effective mode, effective renovations and those currently expired are returned.- Parameters:
roomId- a roomIdrenovationGenusType- a renovation genus type- Returns:
- the returned
RenovationList - Throws:
InvalidArgumentException-tois less thanfromNullArgumentException-roomIdorrenovationGenusTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getRenovationsForRoomOnDate
RenovationList getRenovationsForRoomOnDate(Id roomId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets a list of all renovations for a room with an effective during the entire given date range inclusive but not confined to the date range. In plenary mode, the returned list contains all known renovations or an error results. Otherwise, the returned list may contain only those renovations that are accessible through this session. In effective mode, renovations are returned that are currently effective. In any effective mode, effective renovations and those currently expired are returned.- Parameters:
roomId- a roomIdfrom- start of date rangeto- end of date range- Returns:
- the returned
RenovationList - Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-roomId, fromortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getRenovationsByGenusTypeForRoomOnDate
RenovationList getRenovationsByGenusTypeForRoomOnDate(Id roomId, Type renovationGenusType, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets a list of all renovations for a room and of a renovation genus type effective during the entire given date range inclusive but not confined to the date range. In plenary mode, the returned list contains all known renovations or an error results. Otherwise, the returned list may contain only those renovations that are accessible through this session. In effective mode, renovations are returned that are currently effective. In any effective mode, effective renovations and those currently expired are returned.- Parameters:
roomId- a roomIdrenovationGenusType- a renovation genus typefrom- start of date rangeto- end of date range- Returns:
- the returned
RenovationList - Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-roomId, renovationGenusType, fromortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getRenovationsForFloor
RenovationList getRenovationsForFloor(Id floorId) throws OperationFailedException, PermissionDeniedException Gets a list of all renovations on a floorId. In plenary mode, the returned list contains all known renovations or an error results. Otherwise, the returned list may contain only those renovations that are accessible through this session. In effective mode, renovations are returned that are currently effective. In any effective mode, effective renovations and those currently expired are returned.- Parameters:
floorId- theIdof the floor- Returns:
- the returned
RenovationList - Throws:
NullArgumentException-floorIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getRenovationsByGenusTypeForFloor
RenovationList getRenovationsByGenusTypeForFloor(Id floorId, Type renovationGenusType) throws OperationFailedException, PermissionDeniedException Gets a list of all renovations on a floor and of a renovation genus type. In plenary mode, the returned list contains all known renovations or an error results. Otherwise, the returned list may contain only those renovations that are accessible through this session. In effective mode, renovations are returned that are currently effective. In any effective mode, effective renovations and those currently expired are returned.- Parameters:
floorId- a floorIdrenovationGenusType- a renovation genus type- Returns:
- the returned
RenovationList - Throws:
InvalidArgumentException-tois less thanfromNullArgumentException-floorIdorrenovationGenusTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getRenovationsForFloorOnDate
RenovationList getRenovationsForFloorOnDate(Id floorId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets a list of all renovations on a floor with an effective during the entire given date range inclusive but not confined to the date range. In plenary mode, the returned list contains all known renovations or an error results. Otherwise, the returned list may contain only those renovations that are accessible through this session. In effective mode, renovations are returned that are currently effective. In any effective mode, effective renovations and those currently expired are returned.- Parameters:
floorId- a floorIdfrom- start of date rangeto- end of date range- Returns:
- the returned
RenovationList - Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-floorId, from, ortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getRenovationsByGenusTypeForFloorOnDate
RenovationList getRenovationsByGenusTypeForFloorOnDate(Id floorId, Type renovationGenusType, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets a list of all renovations on a floor and of a renovation genus type effective during the entire given date range inclusive but not confined to the date range. In plenary mode, the returned list contains all known renovations or an error results. Otherwise, the returned list may contain only those renovations that are accessible through this session. In effective mode, renovations are returned that are currently effective. In any effective mode, effective renovations and those currently expired are returned.- Parameters:
floorId- a floorIdrenovationGenusType- a renovation genus typefrom- start of date rangeto- end of date range- Returns:
- the returned
RenovationList - Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-floorId, renovationGenusType, from,ortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getRenovationsForBuilding
RenovationList getRenovationsForBuilding(Id buildingId) throws OperationFailedException, PermissionDeniedException Gets a list of all renovations in a building. In plenary mode, the returned list contains all known renovations or an error results. Otherwise, the returned list may contain only those renovations that are accessible through this session. In effective mode, renovations are returned that are currently effective. In any effective mode, effective renovations and those currently expired are returned.- Parameters:
buildingId- theIdof the building- Returns:
- the returned
RenovationList - Throws:
NullArgumentException-buildingIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getRenovationsByGenusTypeForBuilding
RenovationList getRenovationsByGenusTypeForBuilding(Id buildingId, Type renovationGenusType) throws OperationFailedException, PermissionDeniedException Gets a list of all renovations in a building and of a renovation genus type. In plenary mode, the returned list contains all known renovations or an error results. Otherwise, the returned list may contain only those renovations that are accessible through this session. In effective mode, renovations are returned that are currently effective. In any effective mode, effective renovations and those currently expired are returned.- Parameters:
buildingId- a buildingIdrenovationGenusType- a renovation genus type- Returns:
- the returned
RenovationList - Throws:
InvalidArgumentException-tois less thanfromNullArgumentException-buildingIdorrenovationGenusTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getRenovationsForBuildingOnDate
RenovationList getRenovationsForBuildingOnDate(Id buildingId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets a list of all renovations in a building with an effective during the entire given date range inclusive but not confined to the date range. In plenary mode, the returned list contains all known renovations or an error results. Otherwise, the returned list may contain only those renovations that are accessible through this session. In effective mode, renovations are returned that are currently effective. In any effective mode, effective renovations and those currently expired are returned.- Parameters:
buildingId- a buildingIdfrom- start of date rangeto- end of date range- Returns:
- the returned
RenovationList - Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-buildingId, fromortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getRenovationsByGenusTypeForBuildingOnDate
RenovationList getRenovationsByGenusTypeForBuildingOnDate(Id buildingId, Type renovationGenusType, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets a list of all renovations in a building and of a renovation genus type effective during the entire given date range inclusive but not confined to the date range. In plenary mode, the returned list contains all known renovations or an error results. Otherwise, the returned list may contain only those renovations that are accessible through this session. In effective mode, renovations are returned that are currently effective. In any effective mode, effective renovations and those currently expired are returned.- Parameters:
buildingId- a buildingIdrenovationGenusType- a renovation genus typefrom- start of date rangeto- end of date range- Returns:
- the returned
RenovationList - Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-buildingId, renovationGenusType, fromortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getRenovations
Gets allRenovations. In plenary mode, the returned list contains all known renovations or an error results. Otherwise, the returned list may contain only those renovations that are accessible through this session. In effective mode, renovations are returned that are currently effective. In any effective mode, effective renovations and those currently expired are returned.- Returns:
- a list of
Renovations - Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-