public interface MyIssueSession extends OsidSession
This session defines methods for retrieving issues.
This lookup session defines several views:
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 |
canLookupMyIssues()
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. |
IssueList |
getMyClosedIssues()
Gets closed issues where the agent is the customer.
|
IssueList |
getMyIssues()
Gets all issues for the agent.
|
IssueList |
getMyIssuesInProgress()
Gets the list of open issues in progress
. |
IssueList |
getMyOpenIssues()
Gets open issues where the agent is the customer.
|
IssueList |
getMyOpenIssuesSinceDate(DateTime date)
Gets a list of issues opened since given date.
|
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 |
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 canLookupMyIssues()
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. IssueList getMyOpenIssues() throws OperationFailedException, PermissionDeniedException
Id
in the supplied list is not found or inaccessible. Otherwise,
inaccessible Issues may be omitted from the list and may present the
elements in any order including returning a unique set. IssueList
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. IssueList getMyIssuesInProgress() throws OperationFailedException, PermissionDeniedException
.
In plenary
mode, the returned list contains all of the issues 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
Issues
may be omitted from the list and may present the
elements in any order including returning a unique set. Issue
listOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. IssueList getMyClosedIssues() throws OperationFailedException, PermissionDeniedException
Id
in the supplied list is not found or inaccessible. Otherwise,
inaccessible Issues may be omitted from the list and may present the
elements in any order including returning a unique set. IssueList
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. IssueList getMyOpenIssuesSinceDate(DateTime date) throws OperationFailedException, PermissionDeniedException
In
plenary mode, the returned list contains all known issues or an error
results. Otherwise, the returned list may contain only those issues
that are accessible through this session.date
- a date Issue
listNullArgumentException
- date
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. IssueList getMyIssues() throws OperationFailedException, PermissionDeniedException
In plenary mode, the
returned list contains all of the issues, including duplicates, or an
error results if an Id
in the supplied list is not
found or inaccessible. Otherwise, inaccessible Issues
may be omitted from the list and may present the elements in any order
including returning a unique set. Issue
listOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.