OSID Logo
OSID Specifications
room squatting package
Version 3.0.0
Release Candidate Preview
Interfaceosid.room.squatting.DeedLookupSession
Implementsosid.OsidSession
Description

This session provides methods for retrieving Deed objects. 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.
MethodgetCampusId
Description

Gets the Campus Id associated with this session.

Returnosid.id.Idthe Campus Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetCampus
Description

Gets the Campus associated with this session.

Returnosid.room.Campusthe campus
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanLookupDeeds
Description

Tests if this user can perform Deed 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.

Returnboolean false if lookup methods are not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoduseComparativeDeedView
Description

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.

CompliancemandatoryThis method is must be implemented.
MethodusePlenaryDeedView
Description

A complete view of the Deed 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.

CompliancemandatoryThis method is must be implemented.
MethoduseFederatedCampusView
Description

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.

CompliancemandatoryThis method is must be implemented.
MethoduseIsolatedCampusView
Description

Isolates the view for methods in this session. An isolated view restricts retrievals to this campus only.

CompliancemandatoryThis method is must be implemented.
MethoduseEffectiveDeedView
Description

Only deeds whose effective dates are current are returned by methods in this session

CompliancemandatoryThis method is must be implemented.
MethoduseAnyEffectiveDeedView
Description

Deeds of any effective dates are returned by all methods in this session.

CompliancemandatoryThis method is must be implemented.
MethodgetDeed
Description

Gets the Deed specified by its Id.

In plenary mode, the exact Id is found or a NOT_FOUND results. Otherwise, the returned Deed may have a different Id than requested, such as the case where a duplicate Id was assigned to a Deed and 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.

Parametersosid.id.IddeedId Id of the Deed
Returnosid.room.squatting.Deedthe deed
ErrorsNOT_FOUND deedId not found
NULL_ARGUMENT deedId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method is must be implemented.
MethodgetDeedsByIds
Description

Gets a DeedList corresponding to the given IdList.

In plenary mode, the returned list contains all of the deeds 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 Deeds may 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.

Parametersosid.id.IdListdeedIdsthe list of Ids to retrieve
Returnosid.room.squatting.DeedListthe returned Deed list
ErrorsNOT_FOUNDan Id was not found
NULL_ARGUMENT deedIds is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetDeedsByGenusType
Description

Gets a DeedList corresponding to the given deed genus Type which does not include deeds of genus types derived from the specified 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.

Parametersosid.type.TypedeedGenusTypea deed genus type
Returnosid.room.squatting.DeedListthe returned Deed list
ErrorsNULL_ARGUMENT deedGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetDeedsByParentGenusType
Description

Gets a DeedList corresponding to the given deed genus Type and include any additional deeds with genus types derived from the specified 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.

Parametersosid.type.TypedeedGenusTypea deed genus type
Returnosid.room.squatting.DeedListthe returned Deed list
ErrorsNULL_ARGUMENT deedGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetDeedsByRecordType
Description

Gets a DeedList containing the given deed record 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.

Parametersosid.type.TypedeedRecordTypea deed record type
Returnosid.room.squatting.DeedListthe returned Deed list
ErrorsNULL_ARGUMENT deedRecordType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetDeedsOnDate
Description

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.

Parametersosid.calendaring.DateTimefromstart of date range
osid.calendaring.DateTimetoend of date range
Returnosid.room.squatting.DeedListthe returned Deed list
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT from or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetDeedsByGenusTypeOnDate
Description

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.

Parametersosid.type.TypedeedGenusTypea deed genus type
osid.calendaring.DateTimefromstart of date range
osid.calendaring.DateTimetoend of date range
Returnosid.room.squatting.DeedListthe returned Deed list
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT deedGenusType, from or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetDeedsForBuilding
Description

Gets a DeedList containing 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.

Parametersosid.id.IdbuildingIda building Id
Returnosid.room.squatting.DeedListthe returned Deed list
ErrorsNULL_ARGUMENT buildingId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetDeedsByGenusTypeForBuilding
Description

Gets a DeedList containing 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.

Parametersosid.id.IdbuildingIda building Id
osid.type.TypedeedGenusTypea deed genus type
Returnosid.room.squatting.DeedListthe returned Deed list
ErrorsNULL_ARGUMENT buildingId or deedGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetDeedsForBuildingOnDate
Description

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.

Parametersosid.id.IdbuildingIda building Id
osid.calendaring.DateTimefromstart of date range
osid.calendaring.DateTimetoend of date range
Returnosid.room.squatting.DeedListthe returned Deed list
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT buildingId, from or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetDeedsByGenusTypeForBuildingOnDate
Description

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.

Parametersosid.id.IdbuildingIda building Id
osid.type.TypedeedGenusTypea deed genus type
osid.calendaring.DateTimefromstart of date range
osid.calendaring.DateTimetoend of date range
Returnosid.room.squatting.DeedListthe returned Deed list
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT buildingId, deedGenusType, from or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetDeedsForOwner
Description

Gets a DeedList containing 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.

Parametersosid.id.IdresourceIda resource Id
Returnosid.room.squatting.DeedListthe returned Deed list
ErrorsNULL_ARGUMENT resourceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetDeedsByGenusTypeForOwner
Description

Gets a DeedList containing 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.

Parametersosid.id.IdresourceIda resource Id
osid.type.TypedeedGenusTypea deed genus type
Returnosid.room.squatting.DeedListthe returned Deed list
ErrorsNULL_ARGUMENT resourceId or deedGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetDeedsForOwnerOnDate
Description

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.

Parametersosid.id.IdresourceIda resource Id
osid.calendaring.DateTimefromstart of date range
osid.calendaring.DateTimetoend of date range
Returnosid.room.squatting.DeedListthe returned Deed list
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT resourceId, from or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetDeedsByGenusTypeForOwnerOnDate
Description

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.

Parametersosid.id.IdresourceIda resource Id
osid.type.TypedeedGenusTypea deed genus type
osid.calendaring.DateTimefromstart of date range
osid.calendaring.DateTimetoend of date range
Returnosid.room.squatting.DeedListthe returned Deed list
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT resourceId, deedGenusType, from or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetDeedsForBuildingAndOwner
Description

Gets a DeedList for 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.

Parametersosid.id.IdbuildingIda building Id
osid.id.IdresourceIda resource Id
Returnosid.room.squatting.DeedListthe returned Deed list
ErrorsNULL_ARGUMENT buildingId or resourceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetDeedsByGenusTypeForBuildingAndOwner
Description

Gets a DeedList for the given buildin, 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.

Parametersosid.id.IdbuildingIda building Id
osid.id.IdresourceIda resource Id
osid.type.TypedeedGenusTypea deed genus type
Returnosid.room.squatting.DeedListthe returned Deed list
ErrorsNULL_ARGUMENT buildingId, resourceId, or deedGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetDeedsForBuildingAndOwnerOnDate
Description

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.

Parametersosid.id.IdbuildingIda building Id
osid.id.IdresourceIda resource Id
osid.calendaring.DateTimefromstart of date range
osid.calendaring.DateTimetoend of date range
Returnosid.room.squatting.DeedListthe returned Deed list
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT buildingId, resourceId, from, or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetDeedsByGenusTypeForBuildingAndOwnerOnDate
Description

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.

Parametersosid.id.IdbuildingIda building Id
osid.id.IdresourceIda resource Id
osid.type.TypedeedGenusTypea deed genus type
osid.calendaring.DateTimefromstart of date range
osid.calendaring.DateTimetoend of date range
Returnosid.room.squatting.DeedListthe returned Deed list
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT buildingId, resourceId, deedGenusType, from, or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetDeeds
Description

Gets all Deeds.

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.

Returnosid.room.squatting.DeedLista list of Deeds
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.