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

This session provides methods for retrieving Lease objects. The Lease represents a relationship to a room.

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 lease methods in this session operate, retrieve and pertain to leases defined explicitly in the current campus. Using an isolated view is useful for managing leases with the LeaseAdminSession.
  • federated campus view: All lease lookup methods in this session operate, retrieve and pertain to all leases defined in this campus and any other campuses implicitly available in this campus through campus inheritence.
  • effective lease view: All lease lookup methods return effective leases.
  • any effective lease view: Leases 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.
MethodcanLookupLeases
Description

Tests if this user can perform Lease 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.
MethoduseComparativeLeaseView
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.
MethodusePlenaryLeaseView
Description

A complete view of the Lease 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 leases 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.
MethoduseEffectiveLeaseView
Description

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

CompliancemandatoryThis method is must be implemented.
MethoduseAnyEffectiveLeaseView
Description

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

CompliancemandatoryThis method is must be implemented.
MethodgetLease
Description

Gets the Lease specified by its Id.

In plenary mode, the exact Id is found or a NOT_FOUND results. Otherwise, the returned Lease may have a different Id than requested, such as the case where a duplicate Id was assigned to a Lease and retained for compatibility.

In effective mode, leases are returned that are currently effective. In any effective mode, effective leases and those currently expired are returned.

Parametersosid.id.IdleaseId Id of the Lease
Returnosid.room.squatting.Leasethe lease
ErrorsNOT_FOUND leaseId not found
NULL_ARGUMENT leaseId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method is must be implemented.
MethodgetLeasesByIds
Description

Gets a LeaseList corresponding to the given IdList.

In plenary mode, the returned list contains all of the leases 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 Leases may be omitted from the list and may present the elements in any order including returning a unique set.

In effective mode, leases are returned that are currently effective. In any effective mode, effective leases and those currently expired are returned.

Parametersosid.id.IdListleaseIdsthe list of Ids to retrieve
Returnosid.room.squatting.LeaseListthe returned Lease list
ErrorsNOT_FOUNDan Id was not found
NULL_ARGUMENT leaseIds is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetLeasesByGenusType
Description

Gets a LeaseList corresponding to the given lease genus Type which does not include leases of genus types derived from the specified Type.

In plenary mode, the returned list contains all known leases or an error results. Otherwise, the returned list may contain only those leases that are accessible through this session.

In effective mode, leases are returned that are currently effective. In any effective mode, effective leases and those currently expired are returned.

Parametersosid.type.TypeleaseGenusTypea lease genus type
Returnosid.room.squatting.LeaseListthe returned Lease list
ErrorsNULL_ARGUMENT leaseGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetLeasesByParentGenusType
Description

Gets a LeaseList corresponding to the given lease genus Type and include any additional leases with genus types derived from the specified Type.

In plenary mode, the returned list contains all known leases or an error results. Otherwise, the returned list may contain only those leases that are accessible through this session.

In effective mode, leases are returned that are currently effective. In any effective mode, effective leases and those currently expired are returned.

Parametersosid.type.TypeleaseGenusTypea lease genus type
Returnosid.room.squatting.LeaseListthe returned Lease list
ErrorsNULL_ARGUMENT leaseGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetLeasesByRecordType
Description

Gets a LeaseList containing the given lease record Type.

In plenary mode, the returned list contains all known leases or an error results. Otherwise, the returned list may contain only those leases that are accessible through this session.

In effective mode, leases are returned that are currently effective. In any effective mode, effective leases and those currently expired are returned.

Parametersosid.type.TypeleaseRecordTypea lease record type
Returnosid.room.squatting.LeaseListthe returned Lease list
ErrorsNULL_ARGUMENT leaseRecordType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetLeasesOnDate
Description

Gets a list of all leases effective during the entire given date range inclusive but not confined to the date range.

In plenary mode, the returned list contains all known leases or an error results. Otherwise, the returned list may contain only those leases that are accessible through this session.

In effective mode, leases are returned that are currently effective. In any effective mode, effective leases and those currently expired are returned.

Parametersosid.calendaring.DateTimefromstart of date range
osid.calendaring.DateTimetoend of date range
Returnosid.room.squatting.LeaseListthe returned LeaseList
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.
MethodgetLeasesByGenusTypeOnDate
Description

Gets a list of all leases 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 leases or an error results. Otherwise, the returned list may contain only those leases that are accessible through this session.

In effective mode, leases are returned that are currently effective. In any effective mode, effective leases and those currently expired are returned.

Parametersosid.type.TypeleaseGenusTypea lease genus type
osid.calendaring.DateTimefromstart of date range
osid.calendaring.DateTimetoend of date range
Returnosid.room.squatting.LeaseListthe returned LeaseList
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT leaseGenusType, from or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetLeasesForRoom
Description

Gets a list of all leases corresponding to a room Id.

In plenary mode, the returned list contains all known leases or an error results. Otherwise, the returned list may contain only those leases that are accessible through this session.

In effective mode, leases are returned that are currently effective. In any effective mode, effective leases and those currently expired are returned.

Parametersosid.id.IdroomIdthe Id of the room
Returnosid.room.squatting.LeaseListthe returned LeaseList
ErrorsNULL_ARGUMENT roomId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetLeasesByGenusTypeForRoom
Description

Gets a list of all leases for a room and a lease genus type .

In plenary mode, the returned list contains all known leases or an error results. Otherwise, the returned list may contain only those leases that are accessible through this session.

In effective mode, leases are returned that are currently effective. In any effective mode, effective leases and those currently expired are returned.

Parametersosid.id.IdroomIda room Id
osid.type.TypeleaseGenusTypea lease genus type
Returnosid.room.squatting.LeaseListthe returned LeaseList
ErrorsINVALID_ARGUMENT to is less than from
NULL_ARGUMENT roomId or leaseGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetLeasesForRoomOnDate
Description

Gets a list of all leases for a room effective during the entire given date range inclusive but not confined to the date range.

In plenary mode, the returned list contains all known leases or an error results. Otherwise, the returned list may contain only those leases that are accessible through this session.

In effective mode, leases are returned that are currently effective. In any effective mode, effective leases and those currently expired are returned.

Parametersosid.id.IdroomIda room Id
osid.calendaring.DateTimefromstart of date range
osid.calendaring.DateTimetoend of date range
Returnosid.room.squatting.LeaseListthe returned LeaseList
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT roomId, from or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetLeasesByGenusTypeForRoomOnDate
Description

Gets a list of all leases for a room and of a lease 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 leases or an error results. Otherwise, the returned list may contain only those leases that are accessible through this session.

In effective mode, leases are returned that are currently effective. In any effective mode, effective leases and those currently expired are returned.

Parametersosid.id.IdroomIda room Id
osid.type.TypeleaseGenusTypea lease genus type
osid.calendaring.DateTimefromstart of date range
osid.calendaring.DateTimetoend of date range
Returnosid.room.squatting.LeaseListthe returned LeaseList
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT roomId, leaseGenusType, from or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetLeasesForTenant
Description

Gets a list of all leases for a tenant corresponding to a room Id.

In plenary mode, the returned list contains all known leases or an error results. Otherwise, the returned list may contain only those leases that are accessible through this session.

In effective mode, leases are returned that are currently effective. In any effective mode, effective leases and those currently expired are returned.

Parametersosid.id.IdresourceIda resource Id
Returnosid.room.squatting.LeaseListthe returned LeaseList
ErrorsNULL_ARGUMENT resourceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetLeasesByGenusTypeForTenant
Description

Gets a list of all leases corresponding to a tenant Id and of a lease genus type.

In plenary mode, the returned list contains all known leases or an error results. Otherwise, the returned list may contain only those leases that are accessible through this session.

In effective mode, leases are returned that are currently effective. In any effective mode, effective leases and those currently expired are returned.

Parametersosid.id.IdresourceIda resourceId Id
osid.type.TypeleaseGenusTypea lease genus type
Returnosid.room.squatting.LeaseListthe returned LeaseList
ErrorsINVALID_ARGUMENT to is less than from
NULL_ARGUMENT resourceId or leaseGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetLeasesForTenantOnDate
Description

Gets a list of all leases for a tenant effective during the entire given date range inclusive but not confined to the date range.

In plenary mode, the returned list contains all known leases or an error results. Otherwise, the returned list may contain only those leases that are accessible through this session.

In effective mode, leases are returned that are currently effective. In any effective mode, effective leases 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.LeaseListthe returned LeaseList
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.
MethodgetLeasesByGenusTypeForTenantOnDate
Description

Gets a list of all leases for a tenant and of a lease 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 leases or an error results. Otherwise, the returned list may contain only those leases that are accessible through this session.

In effective mode, leases are returned that are currently effective. In any effective mode, effective leases and those currently expired are returned.

Parametersosid.id.IdresourceIda resource Id
osid.type.TypeleaseGenusTypea lease genus type
osid.calendaring.DateTimefromstart of date range
osid.calendaring.DateTimetoend of date range
Returnosid.room.squatting.LeaseListthe returned LeaseList
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT resourceId, leaseGenusType, from, or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetLeasesForRoomAndTenant
Description

Gets a list of all leases corresponding to a room and tenant.

In plenary mode, the returned list contains all known leases or an error results. Otherwise, the returned list may contain only those leases that are accessible through this session.

In effective mode, leases are returned that are currently effective. In any effective mode, effective leases and those currently expired are returned.

Parametersosid.id.IdroomIdthe Id of the room
osid.id.IdresourceIda tenant Id
Returnosid.room.squatting.LeaseListthe returned LeaseList
ErrorsNULL_ARGUMENT roomId or resourceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetLeasesByGenusTypeForRoomAndTenant
Description

Gets a list of all leases for a room, resource, and of a lease genus type.

In plenary mode, the returned list contains all known leases or an error results. Otherwise, the returned list may contain only those leases that are accessible through this session.

In effective mode, leases are returned that are currently effective. In any effective mode, effective leases and those currently expired are returned.

Parametersosid.id.IdroomIda room Id
osid.id.IdresourceIda tenant Id
osid.type.TypeleaseGenusTypea lease genus type
Returnosid.room.squatting.LeaseListthe returned LeaseList
ErrorsINVALID_ARGUMENT to is less than from
NULL_ARGUMENT roomId, resourceId, or leaseGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetLeasesForRoomAndTenantOnDate
Description

Gets a list of all leases for a room and tenant effective during the entire given date range inclusive but not confined to the date range.

In plenary mode, the returned list contains all known leases or an error results. Otherwise, the returned list may contain only those leases that are accessible through this session.

In effective mode, leases are returned that are currently effective. In any effective mode, effective leases and those currently expired are returned.

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

Gets a list of all leases for a room, tenant, and of a lease 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 leases or an error results. Otherwise, the returned list may contain only those leases that are accessible through this session.

In effective mode, leases are returned that are currently effective. In any effective mode, effective leases and those currently expired are returned.

Parametersosid.id.IdroomIda room Id
osid.id.IdresourceIda resource Id
osid.type.TypeleaseGenusTypea lease genus type
osid.calendaring.DateTimefromstart of date range
osid.calendaring.DateTimetoend of date range
Returnosid.room.squatting.LeaseListthe returned LeaseList
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT roomId, resourceId, leaseGenusType, from, or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetLeases
Description

Gets all Leases.

In plenary mode, the returned list contains all known leases or an error results. Otherwise, the returned list may contain only those leases that are accessible through this session.

In effective mode, leases are returned that are currently effective. In any effective mode, effective leases and those currently expired are returned.

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