public interface DuplicateIssueAdminSession extends OsidSession
This session creates and manages linked issues.
| Modifier and Type | Method and Description |
|---|---|
boolean |
canLinkIssue(Id issueId)
Tests if this user can link an
Issue. |
boolean |
canLinkIssues()
Tests if this user can link duplicate
Issues. |
FrontOffice |
getFrontOffice()
Gets the
FrontOffice associated with this session. |
Id |
getFrontOfficeId()
Gets the
FrontOffice Id associated with
this session. |
void |
linkIssue(Id issueId,
Id anotherIssueId)
Links two issues as duplicates.
|
void |
unlinkIssue(Id issueId,
Id anotherIssueId)
Removes the link between two issues as duplicates.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseId 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 canLinkIssues()
Issues. A return
of true does not guarantee successful authorization. A return of false
indicates that it is known linking an issue will result in a
PERMISSION_DENIED. This is intended as a hint to an
application that may opt not to offer create operations to an
unauthorized user. false if linking Issues is not
authorized, true otherwisemandatory - This method must be implemented. boolean canLinkIssue(Id issueId)
Issue. A return of true
does not guarantee successful authorization. A return of false
indicates that it is known linking the issue will result in a
PERMISSION_DENIED. This is intended as a hint to an
application that may opt not to offer update operations to an
unauthorized user.issueId - the Id of the Issue false if issue linking is not authorized,
true otherwiseNullArgumentException - issueId is
null mandatory - This method must be implemented. If - the issueId is not found, then it is
acceptable to return false to indicate the lack of linking
available. void linkIssue(Id issueId, Id anotherIssueId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
issueId - the Id of the Issue anotherIssueId - the Id of another Issue
AlreadyExistsException - issueId and
anotherIssueId already linkedNotFoundException - issueId or
anotherIssueId is not foundNullArgumentException - issueId or
anotherIssueId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void unlinkIssue(Id issueId, Id anotherIssueId) throws NotFoundException, OperationFailedException, PermissionDeniedException
issueId - the Id of the Issue anotherIssueId - the Id of another Issue
NotFoundException - issueId and
anotherIssueId not linkedNullArgumentException - issueId or
anotherIssueId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.