public interface SubtaskIssueLookupSession extends OsidSession
This session defines methods for retrieving subtasks.
This lookup session defines several views:
Issues
with the IssueAdminSession.
The methods useFederatedFrontOfficeView()
and
useIsolatedFrontOfficeView()
behave as a radio group and one
should be selected before invoking any lookup methods.
Issues may have an additional records indicated by their respective
record types. The record may not be accessed through a cast of the
Issues.
Modifier and Type | Method and Description |
---|---|
boolean |
canLookupIssues()
Tests if this user can perform
Issue lookups. |
FrontOffice |
getFrontOffice()
Gets the
FrontOffice associated with this session. |
Id |
getFrontOfficeId()
Gets the
FrontOffice Id associated with
this session. |
IdList |
getSubtaskIds(Id issueId)
Gets any subtasks for the given
Issue. |
IssueList |
getSubtasks(Id issueId)
Gets any subtasks for the given
Issue. |
void |
useComparativeIssueView()
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 |
useFederatedFrontOfficeView()
Federates the view for methods in this session.
|
void |
useIsolatedFrontOfficeView()
Isolates the view for methods in this session.
|
void |
usePlenaryIssueView()
A complete view of the
Issue returns is desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getFrontOfficeId()
FrontOffice
Id
associated with
this session. FrontOffice Id
associated with this sessionmandatory
- This method must be implemented. FrontOffice getFrontOffice() throws OperationFailedException, PermissionDeniedException
FrontOffice
associated with this session.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canLookupIssues()
Issue
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. false
if lookup methods are not authorized,
true
otherwisemandatory
- This method must be implemented. void useComparativeIssueView()
mandatory
- This method is must be implemented. void usePlenaryIssueView()
Issue
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. void useFederatedFrontOfficeView()
mandatory
- This method is must be implemented. void useIsolatedFrontOfficeView()
mandatory
- This method is must be implemented. IdList getSubtaskIds(Id issueId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Issue.
In plenary mode,
the exact Id
is found or a NOT_FOUND
results. Otherwise, the returned Issue
may have a
different Id
than requested, such as the case where a
duplicate Id
was assigned to an Issue
and retained for compatibility.issueId
- the Id
of the Issue
Ids
NotFoundException
- no Issue
found with
the given Id
NullArgumentException
- issueId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. IssueList getSubtasks(Id issueId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Issue.
In plenary mode,
the exact Id
is found or a NOT_FOUND
results. Otherwise, the returned Issue
may have a
different Id
than requested, such as the case where a
duplicate Id
was assigned to an Issue
and retained for compatibility.issueId
- the Id
of the Issue
NotFoundException
- no Issue
found with
the given Id
NullArgumentException
- issueId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.