Interface IssueResourcingSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session defines methods for resourcing issues.
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignIssueToResource(Id issueId, Id resourceId) Assigns anIssueto aResource.booleanTests if this user can assign resources toIssues.Gets theFrontOfficeassociated with this session.Gets theFrontOfficeIdassociated with this session.getIssuesByResource(Id resourceId) Gets a list of issues assigned to a resource.getIssuesByResourceForQueue(Id queueId, Id resourceId) Gets a list of issues assigned to a resource in a given queue.getResourcesAvailableForIssue(Id issueId) Gets a list of candidate resources from this queue available for an issue sorted from best suited.getResourcesForQueue(Id queueId) Gets a list of resource assignable in this queue.voidunassignIssueFromResource(Id issueId) Unassigns anIssuefrom aResource.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.
-
canResourceIssues
boolean canResourceIssues()Tests if this user can assign resources toIssues. 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 aPERMISSION_DENIED. This is intended as a hint to an application that may not offer assignment operations to unauthorized users.- Returns:
falseif resource assignment methods are not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
getResourcesForQueue
ResourceList getResourcesForQueue(Id queueId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets a list of resource assignable in this queue.- Parameters:
queueId- theIdof aQueue- Returns:
- a list of resources
- Throws:
NotFoundException-queueIdnot foundNullArgumentException-queueIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getResourcesAvailableForIssue
ResourceList getResourcesAvailableForIssue(Id issueId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets a list of candidate resources from this queue available for an issue sorted from best suited.- Parameters:
issueId- theIdof anIssue- Returns:
- a list of resources
- Throws:
NotFoundException-issueIdnot foundNullArgumentException-issueIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getIssuesByResource
IssueList getIssuesByResource(Id resourceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets a list of issues assigned to a resource.- Parameters:
resourceId- theIdof aResource- Returns:
- a list of issues
- Throws:
NotFoundException-resourceIdnot foundNullArgumentException-resourceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getIssuesByResourceForQueue
IssueList getIssuesByResourceForQueue(Id queueId, Id resourceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets a list of issues assigned to a resource in a given queue.- Parameters:
queueId- theIdof aQueueresourceId- theIdof aResource- Returns:
- a list of issues
- Throws:
NotFoundException-queueIdorresourceIdnot foundNullArgumentException-queueIdorresourceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
assignIssueToResource
void assignIssueToResource(Id issueId, Id resourceId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Assigns anIssueto aResource. The resource must be a valid resource in the issue queue.- Parameters:
issueId- theIdof theIssueresourceId- theIdof theResource- Throws:
AlreadyExistsException-issueIdalready assignedNotFoundException-issueIdorresourceIdnot foundNullArgumentException-issueIdorresourceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignIssueFromResource
void unassignIssueFromResource(Id issueId) throws NotFoundException, OperationFailedException, PermissionDeniedException Unassigns anIssuefrom aResource.- Parameters:
issueId- theIdof theIssue- Throws:
NotFoundException-issueIdnot foundNullArgumentException-issueIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-