Interface IssueOublietteAssignmentSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to re-assign Issues to
Oubliette mappings. An Issue may appear in multiple
Oubliette objects and removing the last reference to an Issue is
the equivalent of deleting it. Each Oubliette may have its own
authorizations governing who is allowed to operate on it.
Adding a reference of an Issue to another Oubliette is
not a copy operation (eg: does not change its Id ).
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignIssueToOubliette(Id issueId, Id oublietteId) Adds an existingIssueto anOubliette.booleanTests if this user can alter issue/oubliette mappings.booleancanAssignIssuesToOubliette(Id oublietteId) Tests if this user can alter issue/oubliette mappings.getAssignableOublietteIds(Id oublietteId) Gets a list of oubliettes including and under the given oubliette node in which any issue can be assigned.getAssignableOublietteIdsForIssue(Id oublietteId, Id issueId) Gets a list of oubliettes including and under the given oubliette node in which a specific issue can be assigned.voidreassignIssueToOubliette(Id issueId, Id fromOublietteId, Id toOublietteId) Moves anIssuefrom oneOublietteto another.voidunassignIssueFromOubliette(Id issueId, Id oublietteId) Removes anIssuefrom anOubliette.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
-
canAssignIssues
boolean canAssignIssues()Tests if this user can alter issue/oubliette mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known mapping methods in this session will result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer lookup operations to unauthorized users.- Returns:
falseif issue is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
canAssignIssuesToOubliette
Tests if this user can alter issue/oubliette mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known mapping methods in this session will result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer lookup operations to unauthorized users.- Parameters:
oublietteId- theIdof theOubliette- Returns:
falseif mapping is not authorized,trueotherwise- Throws:
NullArgumentException-oublietteIdisnull- Compliance:
mandatory- This method must be implemented.
-
getAssignableOublietteIds
Gets a list of oubliettes including and under the given oubliette node in which any issue can be assigned.- Parameters:
oublietteId- theIdof theOubliette- Returns:
- list of assignable oubliette
Ids - Throws:
NullArgumentException-oublietteIdisnullOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getAssignableOublietteIdsForIssue
IdList getAssignableOublietteIdsForIssue(Id oublietteId, Id issueId) throws OperationFailedException Gets a list of oubliettes including and under the given oubliette node in which a specific issue can be assigned.- Parameters:
oublietteId- theIdof theOublietteissueId- theIdof theIssue- Returns:
- list of assignable oubliette
Ids - Throws:
NullArgumentException-oublietteIdorissueIdisnullOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
assignIssueToOubliette
void assignIssueToOubliette(Id issueId, Id oublietteId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingIssueto anOubliette.- Parameters:
issueId- theIdof theIssueoublietteId- theIdof theOubliette- Throws:
AlreadyExistsException-issueIdis already assigned tooublietteIdNotFoundException-issueIdoroublietteIdnot foundNullArgumentException-issueIdoroublietteIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignIssueFromOubliette
void unassignIssueFromOubliette(Id issueId, Id oublietteId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes anIssuefrom anOubliette.- Parameters:
issueId- theIdof theIssueoublietteId- theIdof theOubliette- Throws:
NotFoundException-issueIdoroublietteIdnot found orissueIdis not assigned tooublietteIdNullArgumentException-issueIdoroublietteIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
reassignIssueToOubliette
void reassignIssueToOubliette(Id issueId, Id fromOublietteId, Id toOublietteId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Moves anIssuefrom oneOublietteto another. Mappings to otherOubliettesare unaffected.- Parameters:
issueId- theIdof theIssuefromOublietteId- theIdof the currentOubliettetoOublietteId- theIdof the destinationOubliette- Throws:
AlreadyExistsException-issueIdalready assigned totoOublietteIdNotFoundException-issueId, fromOublietteId, ortoOublietteIdnot found orissueIdnot mapped tofromOublietteIdNullArgumentException-issueId, fromOublietteId, ortoOublietteIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-