Interface IssueProcessorOublietteAssignmentSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to re-assign IssueProcessors to
Oubliette mappings. An IssueProcessor may appear in
multiple Oubliette catalogs and removing the last reference to an
IssueProcessor 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 IssueProcessor to another
Oubliette is not a copy operation (eg: does not change its Id ).
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignIssueProcessorToOubliette(Id issueProcessorId, Id oublietteId) Adds an existingIssueProcessorto anoublietteId.booleanTests if this user can alter issue processor/oubliette mappings.booleancanAssignIssueProcessorToOubliette(Id oublietteId) Tests if this user can alter issue processor/oubliette mappings.getAssignableOublietteIds(Id oublietteId) Gets a list of oubliettes including and under the given oubliette node in which any issue processor can be assigned.getAssignableOublietteIdsForIssueProcessor(Id oublietteId, Id issueProcessorId) Gets a list of oubliettes including and under the given oubliette node in which a specific issue processor can be assigned.voidreassignIssueProcessorToOubliette(Id issueProcessorId, Id fromOublietteId, Id toOublietteId) Moves anIssueProcessorfrom oneOublietteto another.voidunassignIssueProcessorFromOubliette(Id issueProcessorId, Id oublietteId) Removes anIssueProcessorfrom 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
-
canAssignIssueProcessors
boolean canAssignIssueProcessors()Tests if this user can alter issue processor/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 assignment operations to unauthorized users.- Returns:
falseif mapping is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
canAssignIssueProcessorToOubliette
Tests if this user can alter issue processor/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 assignment 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 processor 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.
-
getAssignableOublietteIdsForIssueProcessor
IdList getAssignableOublietteIdsForIssueProcessor(Id oublietteId, Id issueProcessorId) throws OperationFailedException Gets a list of oubliettes including and under the given oubliette node in which a specific issue processor can be assigned.- Parameters:
oublietteId- theIdof theOublietteissueProcessorId- theIdof theIssueProcessor- Returns:
- list of assignable oubliette
Ids - Throws:
NullArgumentException-oublietteIdorissueProcessorIdisnullOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
assignIssueProcessorToOubliette
void assignIssueProcessorToOubliette(Id issueProcessorId, Id oublietteId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingIssueProcessorto anoublietteId.- Parameters:
issueProcessorId- theIdof theIssueProcessoroublietteId- theIdof theOubliette- Throws:
AlreadyExistsException-issueProcessorIdis already assigned tooublietteIdNotFoundException-issueProcessorIdoroublietteIdnot foundNullArgumentException-issueProcessorIdoroublietteIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignIssueProcessorFromOubliette
void unassignIssueProcessorFromOubliette(Id issueProcessorId, Id oublietteId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes anIssueProcessorfrom anOubliette.- Parameters:
issueProcessorId- theIdof theIssueProcessoroublietteId- theIdof theOubliette- Throws:
NotFoundException-issueProcessorIdoroublietteIdnot found orissueProcessorIdnot assigned tooublietteIdNullArgumentException-issueProcessorIdoroublietteIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
reassignIssueProcessorToOubliette
void reassignIssueProcessorToOubliette(Id issueProcessorId, Id fromOublietteId, Id toOublietteId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Moves anIssueProcessorfrom oneOublietteto another. Mappings to otherOubliettesare unaffected.- Parameters:
issueProcessorId- theIdof theIssueProcessorfromOublietteId- theIdof the currentOubliettetoOublietteId- theIdof the destinationOubliette- Throws:
AlreadyExistsException-issueProcessorIdalready assigned totoOublietteIdNotFoundException-issueProcessorId, fromOublietteId, ortoOublietteeIdnot found orissueProcessorIdnot mapped tofromOublietteIdNullArgumentException-issueProcessorId, fromOublietteId, ortoOublietteIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-