Interface BlockingIssueAdminSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session blocks issues.
-
Method Summary
Modifier and TypeMethodDescriptionvoidblockIssue(Id blockedIssueId, Id blockingIssueId) Blocks anIssue.booleancanBlockIssue(Id issueId) Tests if this user can block anIssue.booleanTests if this user can blockIssues.Gets theFrontOfficeassociated with this session.Gets theFrontOfficeIdassociated with this session.voidunblockIssue(Id blockedIssueId, Id blockingIssueId) Unblocks anIssue.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.
-
canBlockIssues
boolean canBlockIssues()Tests if this user can blockIssues. A return of true does not guarantee successful authorization. A return of false indicates that it is known creating a subtask will result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer blocking operations to an unauthorized user.- Returns:
falseifIssueblocking is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
canBlockIssue
Tests if this user can block anIssue. A return of true does not guarantee successful authorization. A return of false indicates that it is known creating the subtask will result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer blocking operations to an unauthorized user.- Parameters:
issueId- theIdof theIssue- Returns:
falseif issue blocking 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 create available.
-
blockIssue
void blockIssue(Id blockedIssueId, Id blockingIssueId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Blocks anIssue.- Parameters:
blockedIssueId- theIdof the blockedIssueblockingIssueId- theIdof the blockingIssue- Throws:
AlreadyExistsException-blockingIssueIdalready blockingblockedIssueIdNotFoundException-blockedIssueIdorblockingIssueIdnot foundNullArgumentException-blockedIssueIdorblockingIssueIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unblockIssue
void unblockIssue(Id blockedIssueId, Id blockingIssueId) throws NotFoundException, OperationFailedException, PermissionDeniedException Unblocks anIssue.- Parameters:
blockedIssueId- theIdof the blockedIssueblockingIssueId- theIdof the blockingIssue- Throws:
NotFoundException-blockedIssueIdis not blocked byblockingIssueIdNullArgumentException-blockedIssueIdorblockingIssueIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-