public interface LeaseCampusSession extends OsidSession
This session provides methods to retrieve Lease
to
Campus
mappings. A Lease
may appear in
multiple Campuses.
Each Campus
may have its
own authorizations governing who is allowed to look at it.
This lookup session defines several views:
Modifier and Type | Method and Description |
---|---|
boolean |
canLookupLeaseCampusMappings()
Tests if this user can perform lookups of lease/campus mappings.
|
CampusList |
getCampusesByLease(Id leaseId)
Gets the list of
Campus objects mapped to a
Lease. |
IdList |
getCampusIdsByLease(Id leaseId)
Gets the list of
Campus Ids mapped to a
Lease. |
IdList |
getLeaseIdsByCampus(Id campusId)
Gets the list of
Lease Ids associated
with a Campus. |
IdList |
getLeaseIdsByCampuses(IdList campusIds)
Gets the list of
Lease Ids corresponding to a list of
Campus objects. |
LeaseList |
getLeasesByCampus(Id campusId)
Gets the list of
Leases associated with a
Campus. |
LeaseList |
getLeasesByCampuses(IdList campusIds)
Gets the list of
Leases corresponding to a list of
Campuses. |
void |
useComparativeCampusView()
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 |
usePlenaryCampusView()
A complete view of the
Lease and Campus
returns is desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
boolean canLookupLeaseCampusMappings()
PERMISSION_DENIED.
This is intendedas
a hint to an application that may opt not to offer lookup operations
to unauthorized users. false
if looking up mappings is not authorized,
true
otherwisemandatory
- This method must be implemented. void useComparativeCampusView()
mandatory
- This method is must be implemented. void usePlenaryCampusView()
Lease
and Campus
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. IdList getLeaseIdsByCampus(Id campusId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Lease
Ids
associated
with a Campus.
campusId
- Id
of a Campus
Ids
NotFoundException
- campusId
is not
foundNullArgumentException
- campusId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. LeaseList getLeasesByCampus(Id campusId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Leases
associated with a
Campus.
campusId
- Id
of a Campus
NotFoundException
- campusId
is not
foundNullArgumentException
- campusId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. IdList getLeaseIdsByCampuses(IdList campusIds) throws OperationFailedException, PermissionDeniedException
Lease Ids
corresponding to a list of
Campus
objects.campusIds
- list of campus Ids
Ids
NullArgumentException
- campusIds
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. LeaseList getLeasesByCampuses(IdList campusIds) throws OperationFailedException, PermissionDeniedException
Leases
corresponding to a list of
Campuses.
campusIds
- list of campus Ids
NullArgumentException
- campusIds
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. IdList getCampusIdsByLease(Id leaseId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Campus
Ids
mapped to a
Lease.
leaseId
- Id
of a Lease
Ids
NotFoundException
- leaseId
is not foundNullArgumentException
- leaseId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. CampusList getCampusesByLease(Id leaseId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Campus
objects mapped to a
Lease.
leaseId
- Id
of a Lease
NotFoundException
- leaseId
is not foundNullArgumentException
- leaseId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.