Interface DuplicateIssueAdminSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session creates and manages linked issues.
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanLinkIssue(Id issueId) Tests if this user can link anIssue.booleanTests if this user can link duplicateIssues.Gets theFrontOfficeassociated with this session.Gets theFrontOfficeIdassociated with this session.voidLinks two issues as duplicates.voidunlinkIssue(Id issueId, Id anotherIssueId) Removes the link between two issues as duplicates.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionsModifier and TypeMethodDescriptionGets the agent authenticated to this session.Gets theIdof the agent authenticated to this session.Gets the rate of the service clock.getDate()Gets the service date which may be the current date or the effective date in which this session exists.Gets the effective agent in use by this session.Gets theIdof the effective agent in use by this session.Gets theDisplayTextformatTypepreference in effect for this session.Gets the locale indicating the localization preferences in effect for this session.booleanTests if an agent is authenticated to this session.Starts a new transaction for this sesson.booleanTests for the availability of transactions.
-
Method Details
-
getFrontOfficeId
Id getFrontOfficeId()Gets theFrontOfficeIdassociated with this session.- Returns:
- the
FrontOffice Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getFrontOffice
Gets theFrontOfficeassociated with this session.- Returns:
- the front office
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canLinkIssues
boolean canLinkIssues()Tests if this user can link duplicateIssues. A return of true does not guarantee successful authorization. A return of false indicates that it is known linking an issue will result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer create operations to an unauthorized user.- Returns:
falseif linkingIssuesis not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
canLinkIssue
Tests if this user can link anIssue. A return of true does not guarantee successful authorization. A return of false indicates that it is known linking the issue will result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer update operations to an unauthorized user.- Parameters:
issueId- theIdof theIssue- Returns:
falseif issue linking is not authorized,trueotherwise- Throws:
NullArgumentException-issueIdisnull- Compliance:
mandatory- This method must be implemented.- Notes:
If- the {@code issueId} is not found, then it is acceptable to return false to indicate the lack of linking available.
-
linkIssue
void linkIssue(Id issueId, Id anotherIssueId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Links two issues as duplicates. An issue may link to more than issue.- Parameters:
issueId- theIdof theIssueanotherIssueId- theIdof anotherIssue- Throws:
AlreadyExistsException-issueIdandanotherIssueIdalready linkedNotFoundException-issueIdoranotherIssueIdis not foundNullArgumentException-issueIdoranotherIssueIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unlinkIssue
void unlinkIssue(Id issueId, Id anotherIssueId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes the link between two issues as duplicates.- Parameters:
issueId- theIdof theIssueanotherIssueId- theIdof anotherIssue- Throws:
NotFoundException-issueIdandanotherIssueIdnot linkedNullArgumentException-issueIdoranotherIssueIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-