Interface DeedLookupSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods for retrieving Deeds . The
Deed represents a relationship between an owner and a building.
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 room methods in this session operate,
retrieve and pertain to deeds defined explicitly in the current
campus. Using an isolated view is useful for managing deeds with the
DeedAdminSession. - federated campus view: All deed lookup methods in this session operate, retrieve and pertain to all deeds defined in this campus and any other campuses implicitly available in this campus through campus inheritence.
- effective deed view: All deed lookup methods return effective deeds.
- any effective deed view: deeds of any effective date are returned.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanTests if this user can performDeedlookups.Gets theCampusassociated with this session.Gets theCampusIdassociated with this session.Gets theDeedspecified by itsId.getDeeds()Gets allDeeds.getDeedsByGenusType(Type deedGenusType) Gets aDeedListcorresponding to the given deed genusTypewhich does not include deeds of genus types derived from the specifiedType.getDeedsByGenusTypeForBuilding(Id buildingId, Type deedGenusType) Gets aDeedListcontaining the given building and genus type.getDeedsByGenusTypeForBuildingAndOwner(Id buildingId, Id resourceId, Type deedGenusType) Gets aDeedListfor the given building, owner, and genus type.getDeedsByGenusTypeForBuildingAndOwnerOnDate(Id buildingId, Id resourceId, Type deedGenusType, DateTime from, DateTime to) Gets a list of all deeds for a building and owner with a genus type and effective during the entire given date range inclusive but not confined to the date range.getDeedsByGenusTypeForBuildingOnDate(Id buildingId, Type deedGenusType, DateTime from, DateTime to) Gets a list of all deeds for a building with a genus type and effective during the entire given date range inclusive but not confined to the date range.getDeedsByGenusTypeForOwner(Id resourceId, Type deedGenusType) Gets aDeedListcontaining the given owner and genus type.getDeedsByGenusTypeForOwnerOnDate(Id resourceId, Type deedGenusType, DateTime from, DateTime to) Gets a list of all deeds for a resource owner with a genus type and effective during the entire given date range inclusive but not confined to the date range.getDeedsByGenusTypeOnDate(Type deedGenusType, DateTime from, DateTime to) Gets a list of all deeds with a genus type and effective during the entire given date range inclusive but not confined to the date range.getDeedsByIds(IdList deedIds) Gets aDeedListcorresponding to the givenIdList.getDeedsByParentGenusType(Type deedGenusType) Gets aDeedListcorresponding to the given deed genusTypeand include any additional deeds with genus types derived from the specifiedType.getDeedsByRecordType(Type deedRecordType) Gets aDeedListcontaining the given deed recordType.getDeedsForBuilding(Id buildingId) Gets aDeedListcontaining the given building.getDeedsForBuildingAndOwner(Id buildingId, Id resourceId) Gets aDeedListfor the given building and owner.getDeedsForBuildingAndOwnerOnDate(Id buildingId, Id resourceId, DateTime from, DateTime to) Gets a list of all deeds for a building and owner resource effective during the entire given date range inclusive but not confined to the date range.getDeedsForBuildingOnDate(Id buildingId, DateTime from, DateTime to) Gets a list of all deeds for a building effective during the entire given date range inclusive but not confined to the date range.getDeedsForOwner(Id resourceId) Gets aDeedListcontaining the given owner resource.getDeedsForOwnerOnDate(Id resourceId, DateTime from, DateTime to) Gets a list of all deeds for an owner resource effective during the entire given date range inclusive but not confined to the date range.getDeedsOnDate(DateTime from, DateTime to) Gets a list of all deeds effective during the entire given date range inclusive but not confined to the date range.voidDeeds 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 deeds 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 theDeedreturns 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.
-
canLookupDeeds
boolean canLookupDeeds()Tests if this user can performDeedlookups. 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.
-
useComparativeDeedView
void useComparativeDeedView()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.
-
usePlenaryDeedView
void usePlenaryDeedView()A complete view of theDeedreturns 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 deeds 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.
-
useEffectiveDeedView
void useEffectiveDeedView()Only deeds whose effective dates are current are returned by methods in this session- Compliance:
mandatory- This method is must be implemented.
-
useAnyEffectiveDeedView
void useAnyEffectiveDeedView()Deeds of any effective dates are returned by all methods in this session.- Compliance:
mandatory- This method is must be implemented.
-
getDeed
Deed getDeed(Id deedId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets theDeedspecified by itsId. In plenary mode, the exactIdis found or aNOT_FOUNDresults. Otherwise, the returnedDeedmay have a differentIdthan requested, such as the case where a duplicateIdwas assigned to aDeedand retained for compatibility. In effective mode, deeds are returned that are currently effective. In any effective mode, effective deeds and those currently expired are returned.- Parameters:
deedId-Idof theDeed- Returns:
- the deed
- Throws:
NotFoundException-deedIdnot foundNullArgumentException-deedIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method is must be implemented.
-
getDeedsByIds
DeedList getDeedsByIds(IdList deedIds) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets aDeedListcorresponding to the givenIdList. In plenary mode, the returned list contains all of the deeds 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, inaccessibleDeedsmay be omitted from the list and may present the elements in any order including returning a unique set. In effective mode, deeds are returned that are currently effective. In any effective mode, effective deeds and those currently expired are returned.- Parameters:
deedIds- the list ofIdsto retrieve- Returns:
- the returned
Deedlist - Throws:
NotFoundException- anId wasnot foundNullArgumentException-deedIdsisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getDeedsByGenusType
DeedList getDeedsByGenusType(Type deedGenusType) throws OperationFailedException, PermissionDeniedException Gets aDeedListcorresponding to the given deed genusTypewhich does not include deeds of genus types derived from the specifiedType. In plenary mode, the returned list contains all known deeds or an error results. Otherwise, the returned list may contain only those deeds that are accessible through this session. In effective mode, deeds are returned that are currently effective. In any effective mode, effective deeds and those currently expired are returned.- Parameters:
deedGenusType- a deed genus type- Returns:
- the returned
Deedlist - Throws:
NullArgumentException-deedGenusTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getDeedsByParentGenusType
DeedList getDeedsByParentGenusType(Type deedGenusType) throws OperationFailedException, PermissionDeniedException Gets aDeedListcorresponding to the given deed genusTypeand include any additional deeds with genus types derived from the specifiedType. In plenary mode, the returned list contains all known deeds or an error results. Otherwise, the returned list may contain only those deeds that are accessible through this session. In effective mode, deeds are returned that are currently effective. In any effective mode, effective deeds and those currently expired are returned.- Parameters:
deedGenusType- a deed genus type- Returns:
- the returned
Deedlist - Throws:
NullArgumentException-deedGenusTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getDeedsByRecordType
DeedList getDeedsByRecordType(Type deedRecordType) throws OperationFailedException, PermissionDeniedException Gets aDeedListcontaining the given deed recordType. In plenary mode, the returned list contains all known deeds or an error results. Otherwise, the returned list may contain only those deeds that are accessible through this session. In effective mode, deeds are returned that are currently effective. In any effective mode, effective deeds and those currently expired are returned.- Parameters:
deedRecordType- a deed record type- Returns:
- the returned
Deedlist - Throws:
NullArgumentException-deedRecordTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getDeedsOnDate
DeedList getDeedsOnDate(DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets a list of all deeds effective during the entire given date range inclusive but not confined to the date range. In plenary mode, the returned list contains all known deeds or an error results. Otherwise, the returned list may contain only those deeds that are accessible through this session. In effective mode, deeds are returned that are currently effective. In any effective mode, effective deeds and those currently expired are returned.- Parameters:
from- start of date rangeto- end of date range- Returns:
- the returned
Deedlist - Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-fromortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getDeedsByGenusTypeOnDate
DeedList getDeedsByGenusTypeOnDate(Type deedGenusType, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets a list of all deeds with a genus type and effective during the entire given date range inclusive but not confined to the date range. In plenary mode, the returned list contains all known deeds or an error results. Otherwise, the returned list may contain only those deeds that are accessible through this session. In effective mode, deeds are returned that are currently effective. In any effective mode, effective deeds and those currently expired are returned.- Parameters:
deedGenusType- a deed genus typefrom- start of date rangeto- end of date range- Returns:
- the returned
Deedlist - Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-deedGenusType, fromortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getDeedsForBuilding
DeedList getDeedsForBuilding(Id buildingId) throws OperationFailedException, PermissionDeniedException Gets aDeedListcontaining the given building. In plenary mode, the returned list contains all known deeds or an error results. Otherwise, the returned list may contain only those deeds that are accessible through this session. In effective mode, deeds are returned that are currently effective. In any effective mode, effective deeds and those currently expired are returned.- Parameters:
buildingId- a buildingId- Returns:
- the returned
Deedlist - Throws:
NullArgumentException-buildingIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getDeedsByGenusTypeForBuilding
DeedList getDeedsByGenusTypeForBuilding(Id buildingId, Type deedGenusType) throws OperationFailedException, PermissionDeniedException Gets aDeedListcontaining the given building and genus type. In plenary mode, the returned list contains all known deeds or an error results. Otherwise, the returned list may contain only those deeds that are accessible through this session. In effective mode, deeds are returned that are currently effective. In any effective mode, effective deeds and those currently expired are returned.- Parameters:
buildingId- a buildingIddeedGenusType- a deed genus type- Returns:
- the returned
Deedlist - Throws:
NullArgumentException-buildingIdordeedGenusTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getDeedsForBuildingOnDate
DeedList getDeedsForBuildingOnDate(Id buildingId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets a list of all deeds for a building effective during the entire given date range inclusive but not confined to the date range. In plenary mode, the returned list contains all known deeds or an error results. Otherwise, the returned list may contain only those deeds that are accessible through this session. In effective mode, deeds are returned that are currently effective. In any effective mode, effective deeds and those currently expired are returned.- Parameters:
buildingId- a buildingIdfrom- start of date rangeto- end of date range- Returns:
- the returned
Deedlist - Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-buildingId, fromortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getDeedsByGenusTypeForBuildingOnDate
DeedList getDeedsByGenusTypeForBuildingOnDate(Id buildingId, Type deedGenusType, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets a list of all deeds for a building with a genus type and effective during the entire given date range inclusive but not confined to the date range. In plenary mode, the returned list contains all known deeds or an error results. Otherwise, the returned list may contain only those deeds that are accessible through this session. In effective mode, deeds are returned that are currently effective. In any effective mode, effective deeds and those currently expired are returned.- Parameters:
buildingId- a buildingIddeedGenusType- a deed genus typefrom- start of date rangeto- end of date range- Returns:
- the returned
Deedlist - Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-buildingId, deedGenusType, fromortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getDeedsForOwner
Gets aDeedListcontaining the given owner resource. In plenary mode, the returned list contains all known deeds or an error results. Otherwise, the returned list may contain only those deeds that are accessible through this session. In effective mode, deeds are returned that are currently effective. In any effective mode, effective deeds and those currently expired are returned.- Parameters:
resourceId- a resourceId- Returns:
- the returned
Deedlist - Throws:
NullArgumentException-resourceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getDeedsByGenusTypeForOwner
DeedList getDeedsByGenusTypeForOwner(Id resourceId, Type deedGenusType) throws OperationFailedException, PermissionDeniedException Gets aDeedListcontaining the given owner and genus type. In plenary mode, the returned list contains all known deeds or an error results. Otherwise, the returned list may contain only those deeds that are accessible through this session. In effective mode, deeds are returned that are currently effective. In any effective mode, effective deeds and those currently expired are returned.- Parameters:
resourceId- a resourceIddeedGenusType- a deed genus type- Returns:
- the returned
Deedlist - Throws:
NullArgumentException-resourceIdordeedGenusTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getDeedsForOwnerOnDate
DeedList getDeedsForOwnerOnDate(Id resourceId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets a list of all deeds for an owner resource effective during the entire given date range inclusive but not confined to the date range. In plenary mode, the returned list contains all known deeds or an error results. Otherwise, the returned list may contain only those deeds that are accessible through this session. In effective mode, deeds are returned that are currently effective. In any effective mode, effective deeds and those currently expired are returned.- Parameters:
resourceId- a resourceIdfrom- start of date rangeto- end of date range- Returns:
- the returned
Deedlist - Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-resourceId, fromortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getDeedsByGenusTypeForOwnerOnDate
DeedList getDeedsByGenusTypeForOwnerOnDate(Id resourceId, Type deedGenusType, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets a list of all deeds for a resource owner with a genus type and effective during the entire given date range inclusive but not confined to the date range. In plenary mode, the returned list contains all known deeds or an error results. Otherwise, the returned list may contain only those deeds that are accessible through this session. In effective mode, deeds are returned that are currently effective. In any effective mode, effective deeds and those currently expired are returned.- Parameters:
resourceId- a resourceIddeedGenusType- a deed genus typefrom- start of date rangeto- end of date range- Returns:
- the returned
Deedlist - Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-resourceId, deedGenusType, fromortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getDeedsForBuildingAndOwner
DeedList getDeedsForBuildingAndOwner(Id buildingId, Id resourceId) throws OperationFailedException, PermissionDeniedException Gets aDeedListfor the given building and owner. In plenary mode, the returned list contains all known deeds or an error results. Otherwise, the returned list may contain only those deeds that are accessible through this session. In effective mode, deeds are returned that are currently effective. In any effective mode, effective deeds and those currently expired are returned.- Parameters:
buildingId- a buildingIdresourceId- a resourceId- Returns:
- the returned
Deedlist - Throws:
NullArgumentException-buildingIdorresourceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getDeedsByGenusTypeForBuildingAndOwner
DeedList getDeedsByGenusTypeForBuildingAndOwner(Id buildingId, Id resourceId, Type deedGenusType) throws OperationFailedException, PermissionDeniedException Gets aDeedListfor the given building, owner, and genus type. In plenary mode, the returned list contains all known deeds or an error results. Otherwise, the returned list may contain only those deeds that are accessible through this session. In effective mode, deeds are returned that are currently effective. In any effective mode, effective deeds and those currently expired are returned.- Parameters:
buildingId- a buildingIdresourceId- a resourceIddeedGenusType- a deed genus type- Returns:
- the returned
Deedlist - Throws:
NullArgumentException-buildingId, resourceId, ordeedGenusTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getDeedsForBuildingAndOwnerOnDate
DeedList getDeedsForBuildingAndOwnerOnDate(Id buildingId, Id resourceId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets a list of all deeds for a building and owner resource effective during the entire given date range inclusive but not confined to the date range. In plenary mode, the returned list contains all known deeds or an error results. Otherwise, the returned list may contain only those deeds that are accessible through this session. In effective mode, deeds are returned that are currently effective. In any effective mode, effective deeds and those currently expired are returned.- Parameters:
buildingId- a buildingIdresourceId- a resourceIdfrom- start of date rangeto- end of date range- Returns:
- the returned
Deedlist - Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-buildingId, resourceId, from,ortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getDeedsByGenusTypeForBuildingAndOwnerOnDate
DeedList getDeedsByGenusTypeForBuildingAndOwnerOnDate(Id buildingId, Id resourceId, Type deedGenusType, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets a list of all deeds for a building and owner with a genus type and effective during the entire given date range inclusive but not confined to the date range. In plenary mode, the returned list contains all known deeds or an error results. Otherwise, the returned list may contain only those deeds that are accessible through this session. In effective mode, deeds are returned that are currently effective. In any effective mode, effective deeds and those currently expired are returned.- Parameters:
buildingId- a buildingIdresourceId- a resourceIddeedGenusType- a deed genus typefrom- start of date rangeto- end of date range- Returns:
- the returned
Deedlist - Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-buildingId, resourceId, deedGenusType, from,ortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getDeeds
Gets allDeeds. In plenary mode, the returned list contains all known deeds or an error results. Otherwise, the returned list may contain only those deeds that are accessible through this session. In effective mode, deeds are returned that are currently effective. In any effective mode, effective deeds and those currently expired are returned.- Returns:
- a list of
Deeds - Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-