public interface RenovationLookupSession extends OsidSession
This session provides methods for retrieving Renovation
objects. 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.
RenovationAdminSession.
Modifier and Type | Method and Description |
---|---|
boolean |
canLookupRenovations()
Tests if this user can perform
Renovation lookups. |
Campus |
getCampus()
Gets the
Campus associated with this session. |
Id |
getCampusId()
Gets the
Campus Id associated with this
session. |
Renovation |
getRenovation(Id renovationId)
Gets the
Renovation specified by its Id. |
RenovationList |
getRenovations()
Gets all
Renovations. |
RenovationList |
getRenovationsByGenusType(Type renovationGenusType)
Gets a
RenovationList corresponding to the given
renovation genus Type which does not include
renovations of genus types derived from the specified Type. |
RenovationList |
getRenovationsByGenusTypeForBuilding(Id buildingId,
Type renovationGenusType)
Gets a list of all renovations in a building and of a renovation genus
type.
|
RenovationList |
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.
|
RenovationList |
getRenovationsByGenusTypeForFloor(Id floorId,
Type renovationGenusType)
Gets a list of all renovations on a floor and of a renovation genus
type.
|
RenovationList |
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.
|
RenovationList |
getRenovationsByGenusTypeForRoom(Id roomId,
Type renovationGenusType)
Gets a list of all renovations corresponding to a room and renovation
genus type.
|
RenovationList |
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.
|
RenovationList |
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.
|
RenovationList |
getRenovationsByIds(IdList renovationIds)
Gets a
RenovationList corresponding to the given
IdList. |
RenovationList |
getRenovationsByParentGenusType(Type renovationGenusType)
Gets a
RenovationList corresponding to the given
renovation genus Type and include any additional
renovations with genus types derived from the specified Type. |
RenovationList |
getRenovationsByRecordType(Type renovationRecordType)
Gets a
RenovationList containing the given renovation
record Type. |
RenovationList |
getRenovationsForBuilding(Id buildingId)
Gets a list of all renovations in a building.
|
RenovationList |
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.
|
RenovationList |
getRenovationsForFloor(Id floorId)
Gets a list of all renovations on a floor
Id. |
RenovationList |
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.
|
RenovationList |
getRenovationsForRoom(Id roomId)
Gets a list of all renovations corresponding to a room
Id. |
RenovationList |
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.
|
RenovationList |
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.
|
void |
useAnyEffectiveRenovationView()
Renovations of any effective dates are returned by all methods in this
session.
|
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.
|
void |
useEffectiveRenovationView()
Only renovations 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 |
usePlenaryRenovationView()
A complete view of the
Renovation returns is desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id 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 canLookupRenovations()
Renovation
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 useComparativeRenovationView()
mandatory
- This method is must be implemented. void usePlenaryRenovationView()
Renovation
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 useEffectiveRenovationView()
mandatory
- This method is must be implemented. void useAnyEffectiveRenovationView()
mandatory
- This method is must be implemented. Renovation getRenovation(Id renovationId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Renovation
specified by its Id.
In plenary mode, the exact Id
is found
or a NOT_FOUND
results. Otherwise, the returned
Renovation
may have a different Id
than
requested, such as the case where a duplicate Id
was
assigned to a Renovation
and 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.renovationId
- Id
of the Renovation
NotFoundException
- renovationId
not
foundNullArgumentException
- renovationId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method is must be implemented. RenovationList getRenovationsByIds(IdList renovationIds) throws NotFoundException, OperationFailedException, PermissionDeniedException
RenovationList
corresponding to the given
IdList.
In plenary mode, the returned list contains all of the
renovations 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 Renovations
may 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.renovationIds
- the list of Ids
to retrieve Renovation
listNotFoundException
- an Id was
not foundNullArgumentException
- renovationIds
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. RenovationList getRenovationsByGenusType(Type renovationGenusType) throws OperationFailedException, PermissionDeniedException
RenovationList
corresponding to the given
renovation genus Type
which does not include
renovations of genus types derived from the specified 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.renovationGenusType
- a renovation genus type Renovation
listNullArgumentException
- renovationGenusType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. RenovationList getRenovationsByParentGenusType(Type renovationGenusType) throws OperationFailedException, PermissionDeniedException
RenovationList
corresponding to the given
renovation genus Type
and include any additional
renovations with genus types derived from the specified 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.renovationGenusType
- a renovation genus type Renovation
listNullArgumentException
- renovationGenusType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. RenovationList getRenovationsByRecordType(Type renovationRecordType) throws OperationFailedException, PermissionDeniedException
RenovationList
containing the given renovation
record 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.renovationRecordType
- a renovation record type Renovation
listNullArgumentException
- renovationRecordType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. RenovationList getRenovationsOnDate(DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
from
- start of date rangeto
- end of date range RenovationList
InvalidArgumentException
- from
is
greater than to
NullArgumentException
- from
or
to
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. RenovationList getRenovationsByGenusTypeOnDate(Type renovationGenusType, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
renovationGenusType
- a renovation genus typefrom
- start of date rangeto
- end of date range RenovationList
InvalidArgumentException
- from
is
greater than to
NullArgumentException
- renovationGenusType,
from
or to
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. RenovationList getRenovationsForRoom(Id roomId) throws OperationFailedException, PermissionDeniedException
Id.
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.roomId
- the Id
of the room RenovationList
NullArgumentException
- roomId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. RenovationList getRenovationsByGenusTypeForRoom(Id roomId, Type renovationGenusType) throws OperationFailedException, PermissionDeniedException
roomId
- a room Id
renovationGenusType
- a renovation genus type RenovationList
InvalidArgumentException
- to
is less
than from
NullArgumentException
- roomId
or
renovationGenusType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. RenovationList getRenovationsForRoomOnDate(Id roomId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
roomId
- a room Id
from
- start of date rangeto
- end of date range RenovationList
InvalidArgumentException
- from
is
greater than to
NullArgumentException
- roomId, from
or
to
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. RenovationList getRenovationsByGenusTypeForRoomOnDate(Id roomId, Type renovationGenusType, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
roomId
- a room Id
renovationGenusType
- a renovation genus typefrom
- start of date rangeto
- end of date range RenovationList
InvalidArgumentException
- from
is
greater than to
NullArgumentException
- roomId,
renovationGenusType, from
or to
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. RenovationList getRenovationsForFloor(Id floorId) throws OperationFailedException, PermissionDeniedException
Id.
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.floorId
- the Id
of the floor RenovationList
NullArgumentException
- floorId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. RenovationList getRenovationsByGenusTypeForFloor(Id floorId, Type renovationGenusType) throws OperationFailedException, PermissionDeniedException
floorId
- a floor Id
renovationGenusType
- a renovation genus type RenovationList
InvalidArgumentException
- to
is less
than from
NullArgumentException
- floorId
or
renovationGenusType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. RenovationList getRenovationsForFloorOnDate(Id floorId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
floorId
- a floor Id
from
- start of date rangeto
- end of date range RenovationList
InvalidArgumentException
- from
is
greater than to
NullArgumentException
- floorId, from,
or to
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. RenovationList getRenovationsByGenusTypeForFloorOnDate(Id floorId, Type renovationGenusType, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
floorId
- a floor Id
renovationGenusType
- a renovation genus typefrom
- start of date rangeto
- end of date range RenovationList
InvalidArgumentException
- from
is
greater than to
NullArgumentException
- floorId,
renovationGenusType, from,
or to
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. RenovationList getRenovationsForBuilding(Id buildingId) throws OperationFailedException, PermissionDeniedException
buildingId
- the Id
of the building RenovationList
NullArgumentException
- buildingId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. RenovationList getRenovationsByGenusTypeForBuilding(Id buildingId, Type renovationGenusType) throws OperationFailedException, PermissionDeniedException
buildingId
- a building Id
renovationGenusType
- a renovation genus type RenovationList
InvalidArgumentException
- to
is less
than from
NullArgumentException
- buildingId
or
renovationGenusType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. RenovationList getRenovationsForBuildingOnDate(Id buildingId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
buildingId
- a building Id
from
- start of date rangeto
- end of date range RenovationList
InvalidArgumentException
- from
is
greater than to
NullArgumentException
- buildingId, from
or to
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. RenovationList getRenovationsByGenusTypeForBuildingOnDate(Id buildingId, Type renovationGenusType, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
buildingId
- a building Id
renovationGenusType
- a renovation genus typefrom
- start of date rangeto
- end of date range RenovationList
InvalidArgumentException
- from
is
greater than to
NullArgumentException
- buildingId,
renovationGenusType, from
or to
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. RenovationList getRenovations() throws OperationFailedException, PermissionDeniedException
Renovations.
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. Renovations
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.