public interface ProjectCampusSession extends OsidSession
This session provides methods to retrieve Project
to
Campus
mappings. A Project
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 |
canLookupProjectCampusMappings()
Tests if this user can perform lookups of project/campus mappings.
|
CampusList |
getCampusesByProject(Id projectId)
Gets the list of
Campus objects mapped to a
Project. |
IdList |
getCampusIdsByProject(Id projectId)
Gets the list of
Campus Ids mapped to a
Project. |
IdList |
getProjectIdsByCampus(Id campusId)
Gets the list of
Project Ids associated
with a Campus. |
IdList |
getProjectIdsByCampuses(IdList campusIds)
Gets the list of
Project Ids corresponding to a list of
Campus objects. |
ProjectList |
getProjectsByCampus(Id campusId)
Gets the list of
Projects associated with a
Campus. |
ProjectList |
getProjectsByCampuses(IdList campusIds)
Gets the list of
Projects 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
Project and Campus
returns is desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
boolean canLookupProjectCampusMappings()
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()
Project
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 getProjectIdsByCampus(Id campusId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Project
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. ProjectList getProjectsByCampus(Id campusId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Projects
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 getProjectIdsByCampuses(IdList campusIds) throws OperationFailedException, PermissionDeniedException
Project 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. ProjectList getProjectsByCampuses(IdList campusIds) throws OperationFailedException, PermissionDeniedException
Projects
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 getCampusIdsByProject(Id projectId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Campus
Ids
mapped to a
Project.
projectId
- Id
of a Project
Ids
NotFoundException
- projectId
is not
foundNullArgumentException
- projectId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. CampusList getCampusesByProject(Id projectId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Campus
objects mapped to a
Project.
projectId
- Id
of a Project
NotFoundException
- projectId
is not
foundNullArgumentException
- projectId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.