public interface ResourceRelationshipLookupSession extends OsidSession
This session provides methods for examining resource relationships.
This session defines views that offer differing behaviors when retrieving multiple objects.
ResourceRelationshipAdminSession.
| Modifier and Type | Method and Description |
|---|---|
boolean |
canLookupResourceRelationships()
Tests if this user can access resource relationships.
|
Bin |
getBin()
Gets the
Bin associated with this session. |
Id |
getBinId()
Gets the
Bin Id associated with this
session. |
ResourceRelationship |
getResourceRelationship(Id resourceRelationshipId)
Gets the
ResourceRelationship specified by its
Id. |
ResourceRelationshipList |
getResourceRelationships()
Gets all
ResourceRelationships. |
ResourceRelationshipList |
getResourceRelationshipsByGenusType(Type relationshipGenusType)
Gets the resource relationships for the given resource relationship
genus type.
|
ResourceRelationshipList |
getResourceRelationshipsByGenusTypeForDestinationResource(Id destinationResourceId,
Type relationshipGenusType)
Gets the
ResourceRelationships of a resource of
relationship genus type that includes any genus type derived from the
given one. |
ResourceRelationshipList |
getResourceRelationshipsByGenusTypeForDestinationResourceOnDate(Id destinationResourceId,
Type relationshipGenusType,
DateTime from,
DateTime to)
Gets a list of resource relationships of a given genus type for a
resource and effective during the entire given date range inclusive
but not confined to the date range.
|
ResourceRelationshipList |
getResourceRelationshipsByGenusTypeForResources(Id sourceResourceId,
Id destinationResourceId,
Type relationshipGenusType)
Gets the
ResourceRelationships given two resources and
a relationship genus type which includes any genus types derived from
the given genus type. |
ResourceRelationshipList |
getResourceRelationshipsByGenusTypeForResourcesOnDate(Id sourceResourceId,
Id destinationResourceId,
Type relationshipGenusType,
DateTime from,
DateTime to)
Gets a list of resource relationships of a given genus type for a two
peer resources and effective during the entire given date range
inclusive but not confined to the date range.
|
ResourceRelationshipList |
getResourceRelationshipsByGenusTypeForSourceResource(Id sourceResourceId,
Type relationshipGenusType)
Gets the
ResourceRelationships of a resource of
relationship genus type that includes any genus type derived from the
given one. |
ResourceRelationshipList |
getResourceRelationshipsByGenusTypeForSourceResourceOnDate(Id sourceResourceId,
Type relationshipGenusType,
DateTime from,
DateTime to)
Gets a list of resource relationships of a given genus type for a
resource and effective during the entire given date range inclusive
but not confined to the date range.
|
ResourceRelationshipList |
getResourceRelationshipsByIds(IdList resourceRelationshipIds)
Gets a
ResourceRelationshipList corresponding to the
given IdList. |
ResourceRelationshipList |
getResourceRelationshipsByParentGenusType(Type relationshipGenusType)
Gets the reource relationships for the given resource relationship
genus type and include any relationships with a genus type derived
from the specified genus type.
|
ResourceRelationshipList |
getResourceRelationshipsByRecordType(Type relationshipRecordType)
Gets the resource relationships for the given resource relationship
record type.
|
ResourceRelationshipList |
getResourceRelationshipsForDestinationResource(Id destinationResourceId)
Gets the
ResourceRelationships of a resource. |
ResourceRelationshipList |
getResourceRelationshipsForDestinationResourceOnDate(Id sourceResourceId,
DateTime from,
DateTime to)
Gets a list of resource relationships for a resource and effective
during the entire given date range inclusive but not confined to the
date range.
|
ResourceRelationshipList |
getResourceRelationshipsForResources(Id sourceResourceId,
Id destinationResourceId)
Gets the
ResourceRelationships given two resources. |
ResourceRelationshipList |
getResourceRelationshipsForResourcesOnDate(Id sourceResourceId,
Id destinationResourceId,
DateTime from,
DateTime to)
Gets a list of resource relationships for a two peer resources and
effective during the entire given date range inclusive but not
confined to the date range.
|
ResourceRelationshipList |
getResourceRelationshipsForSourceResource(Id sourceResourceId)
Gets the
ResourceRelationships of a resource. |
ResourceRelationshipList |
getResourceRelationshipsForSourceResourceOnDate(Id sourceResourceId,
DateTime from,
DateTime to)
Gets a list of resource relationships for a resource and effective
during the entire given date range inclusive but not confined to the
date range.
|
ResourceRelationshipList |
getResourceRelationshipsOnDate(DateTime from,
DateTime to)
Gets the resource relationships effective during the entire given date
range inclusive but not confined to the date range.
|
void |
useAnyEffectiveResourceRelationshipView()
All resource relationships of any effective dates are returned by
methods in this session.
|
void |
useComparativeResourceRelationshipView()
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 |
useEffectiveResourceRelationshipView()
Only resource relationships whose effective dates are current are
returned by methods in this session.
|
void |
useFederatedBinView()
Federates the view for methods in this session.
|
void |
useIsolatedBinView()
Isolates the view for methods in this session.
|
void |
usePlenaryResourceRelationshipView()
A complete view of the resource relationship returns is desired.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseId getBinId()
Bin Id associated with this
session. Bin Id associated with this sessionmandatory - This method must be implemented. Bin getBin() throws OperationFailedException, PermissionDeniedException
Bin associated with this session. Bin associated with this sessionOperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canLookupResourceRelationships()
PERMISSION_DENIED. This is intended as a hint to an
application that may opt not to offer relationship operations. false if lookup methods are not authorized,
true otherwisemandatory - This method must be implemented. void useComparativeResourceRelationshipView()
mandatory - This method is must be implemented. void usePlenaryResourceRelationshipView()
mandatory - This method is must be implemented. void useFederatedBinView()
mandatory - This method is must be implemented. void useIsolatedBinView()
mandatory - This method is must be implemented. void useEffectiveResourceRelationshipView()
mandatory - This method is must be implemented. void useAnyEffectiveResourceRelationshipView()
mandatory - This method is must be implemented. ResourceRelationship getResourceRelationship(Id resourceRelationshipId) throws NotFoundException, OperationFailedException, PermissionDeniedException
ResourceRelationship specified by its
Id.
In plenary mode, the exact Id is found
or a NOT_FOUND results. Otherwise, the returned
Relationship may have a different Id than
requested, such as the case where a duplicate Id was
assigned to a Relationship and retained for
compatibility.
In effective mode, resource relationships are returned that are
currently effective. In any effective mode, effective resource
relationships and those currently expired are returned.resourceRelationshipId - Id of the
Relationship NotFoundException - resourceRelationshipId
not foundNullArgumentException - resourceRelationshipId
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method is must be implemented. ResourceRelationshipList getResourceRelationshipsByIds(IdList resourceRelationshipIds) throws NotFoundException, OperationFailedException, PermissionDeniedException
ResourceRelationshipList corresponding to the
given IdList.
In plenary mode, the returned list contains all of the
relationships 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 Relationships may be omitted from the list
and may present the elements in any order including returning a unique
set.
In effective mode, resource relationships are returned that are
currently effective. In any effective mode, effective resource
relationships and those currently expired are returned.resourceRelationshipIds - the list of Ids to
retrieve ResourceRelationship listNotFoundException - an Id was not foundNullArgumentException - resourceRelationshipIds
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. ResourceRelationshipList getResourceRelationshipsByGenusType(Type relationshipGenusType) throws OperationFailedException, PermissionDeniedException
relationshipGenusType - a relationship genus typeNullArgumentException - relationshipGenusType
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. ResourceRelationshipList getResourceRelationshipsByParentGenusType(Type relationshipGenusType) throws OperationFailedException, PermissionDeniedException
relationshipGenusType - a relationship genus typeNullArgumentException - relationshipGenusType
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. ResourceRelationshipList getResourceRelationshipsByRecordType(Type relationshipRecordType) throws OperationFailedException, PermissionDeniedException
relationshipRecordType - a relationship record typeNullArgumentException - relationshipRecordType
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. ResourceRelationshipList getResourceRelationshipsOnDate(DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
from - starting dateto - ending dateInvalidArgumentException - from is
greater than to NullArgumentException - from or
to is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. ResourceRelationshipList getResourceRelationshipsForSourceResource(Id sourceResourceId) throws OperationFailedException, PermissionDeniedException
ResourceRelationships of a resource.
In plenary mode, the returned list contains all known relationships or
an error results. Otherwise, the returned list may contain only those
relationships that are accessible through this session.
In effective mode, resource relationships are returned that are
currently effective. In any effective mode, effective resource
relationships and those currently expired are returned.sourceResourceId - Id of a Resource
NullArgumentException - sourceResourceId
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. ResourceRelationshipList getResourceRelationshipsForSourceResourceOnDate(Id sourceResourceId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
In plenary mode, the returned list contains all known
resource relationships or an error results. Otherwise, the returned
list may contain only those resource relationships that are accessible
through this session.
In effective mode, resource relationships are returned that are
currently effective in addition to being effective during the given
dates. In any effective mode, effective resource relationships and
those currently expired are returned.sourceResourceId - a resource Id from - start of date rangeto - end of date rangeInvalidArgumentException - from is
greater than to NullArgumentException - sourceResourceId, from
or to is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. ResourceRelationshipList getResourceRelationshipsByGenusTypeForSourceResource(Id sourceResourceId, Type relationshipGenusType) throws OperationFailedException, PermissionDeniedException
ResourceRelationships of a resource of
relationship genus type that includes any genus type derived from the
given one.
In plenary mode, the returned list contains all known relationships or
an error results. Otherwise, the returned list may contain only those
relationships that are accessible through this session.
In effective mode, resource relationships are returned that are
currently effective. In any effective mode, effective resource
relationships and those currently expired are returned.sourceResourceId - Id of a Resource
relationshipGenusType - a relationship genus typeNullArgumentException - sourceResourceId
or relationshipGenusType is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. ResourceRelationshipList getResourceRelationshipsByGenusTypeForSourceResourceOnDate(Id sourceResourceId, Type relationshipGenusType, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
In plenary mode, the returned list contains all known
resource relationships or an error results. Otherwise, the returned
list may contain only those resource relationships that are accessible
through this session.
In effective mode, resource relationships are returned that are
currently effective in addition to being effective during the given
dates. In any effective mode, effective resource relationships and
those currently expired are returned.sourceResourceId - a resource Id relationshipGenusType - a relationship genus typefrom - start of date rangeto - end of date rangeInvalidArgumentException - from is
greater than to NullArgumentException - sourceResourceId,
relationshipGenusType, from or to is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. ResourceRelationshipList getResourceRelationshipsForDestinationResource(Id destinationResourceId) throws OperationFailedException, PermissionDeniedException
ResourceRelationships of a resource.
In plenary mode, the returned list contains all known relationships or
an error results. Otherwise, the returned list may contain only those
relationships that are accessible through this session.
In effective mode, resource relationships are returned that are
currently effective. In any effective mode, effective resource
relationships and those currently expired are returned.destinationResourceId - Id of a Resource
NullArgumentException - destinationResourceId
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. ResourceRelationshipList getResourceRelationshipsForDestinationResourceOnDate(Id sourceResourceId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
In plenary mode, the returned list contains all known
resource relationships or an error results. Otherwise, the returned
list may contain only those resource relationships that are accessible
through this session.
In effective mode, resource relationships are returned that are
currently effective in addition to being effective during the given
dates. In any effective mode, effective resource relationships and
those currently expired are returned.sourceResourceId - a resource Id from - start of date rangeto - end of date rangeInvalidArgumentException - from is
greater than to NullArgumentException - destinationResourceId,
from, or to is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. ResourceRelationshipList getResourceRelationshipsByGenusTypeForDestinationResource(Id destinationResourceId, Type relationshipGenusType) throws OperationFailedException, PermissionDeniedException
ResourceRelationships of a resource of
relationship genus type that includes any genus type derived from the
given one.
In plenary mode, the returned list contains all known relationships or
an error results. Otherwise, the returned list may contain only those
relationships that are accessible through this session.
In effective mode, resource relationships are returned that are
currently effective. In any effective mode, effective resource
relationships and those currently expired are returned.destinationResourceId - Id of a Resource
relationshipGenusType - a relationship genus typeNullArgumentException - destinationResourceId
or relationshipGenusType is null
OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. ResourceRelationshipList getResourceRelationshipsByGenusTypeForDestinationResourceOnDate(Id destinationResourceId, Type relationshipGenusType, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
In plenary mode, the returned list contains all known
resource relationships or an error results. Otherwise, the returned
list may contain only those resource relationships that are accessible
through this session.
In effective mode, resource relationships are returned that are
currently effective in addition to being effective during the given
dates. In any effective mode, effective resource relationships and
those currently expired are returned.destinationResourceId - a resource Id relationshipGenusType - a relationship genus typefrom - start of date rangeto - end of date rangeInvalidArgumentException - from is
greater than to NullArgumentException - destinationResourceId,
relationshipGenusType, from or to is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. ResourceRelationshipList getResourceRelationshipsForResources(Id sourceResourceId, Id destinationResourceId) throws OperationFailedException, PermissionDeniedException
ResourceRelationships given two resources.
In plenary mode, the returned list contains all known relationships or
an error results. Otherwise, the returned list may contain only those
relationships that are accessible through this session.
In effective mode, resource relationships are returned that are
currently effective. In any effective mode, effective resource
relationships and those currently expired are returned.sourceResourceId - Id of a Resource
destinationResourceId - Id of another
Resource NullArgumentException - sourceRelationshipId
or destinationRelationshipId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. ResourceRelationshipList getResourceRelationshipsForResourcesOnDate(Id sourceResourceId, Id destinationResourceId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
In plenary mode, the returned list contains all known
resource relationships or an error results. Otherwise, the returned
list may contain only those resource relationships that are accessible
through this session.
In effective mode, resource relationships are returned that are
currently effective in addition to being effective during the given
dates. In any effective mode, effective resource relationships and
those currently expired are returned.sourceResourceId - a resource Id destinationResourceId - Id of another
Resource from - start of date rangeto - end of date rangeInvalidArgumentException - from is
greater than to NullArgumentException - sourceResourceId,
destinationResourceId, from or to is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. ResourceRelationshipList getResourceRelationshipsByGenusTypeForResources(Id sourceResourceId, Id destinationResourceId, Type relationshipGenusType) throws OperationFailedException, PermissionDeniedException
ResourceRelationships given two resources and
a relationship genus type which includes any genus types derived from
the given genus type.
In plenary mode, the returned list contains all known relationships or
an error results. Otherwise, the returned list may contain only those
relationships that are accessible through this session.
In effective mode, resource relationships are returned that are
currently effective. In any effective mode, effective resource
relationships and those currently expired are returned.sourceResourceId - Id of a Resource
destinationResourceId - Id of another
Resource relationshipGenusType - a relationship genus typeNullArgumentException - sourceResourceId,
destinationResourceId, or relatonshipGenusType
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. ResourceRelationshipList getResourceRelationshipsByGenusTypeForResourcesOnDate(Id sourceResourceId, Id destinationResourceId, Type relationshipGenusType, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
sourceResourceId - a resource Id destinationResourceId - Id of another
Resource relationshipGenusType - a relationship genus typefrom - start of date rangeto - end of date rangeInvalidArgumentException - from is
greater than to NullArgumentException - sourceResourceId,
destinationResourceId, relationshipGenusType, from or
to is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. ResourceRelationshipList getResourceRelationships() throws OperationFailedException, PermissionDeniedException
ResourceRelationships.
In plenary mode, the returned list contains all known resource
relationships or an error results. Otherwise, the returned list may
contain only those resource relationships that are accessible through
this session.
In effective mode, resource relationships are returned that are
currently effective. In any effective mode, effective resource
relationships and those currently expired are returned.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.