Interface IssueConstrainerOublietteAssignmentSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to re-assign IssueConstrain ers
to Oubliette mappings. An IssueConstrai ner may appear in
multiple Oubliette catalogs and removing the last reference to an
IssueConstrai ner 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 IssueConstrai ner to another
Oubliette is not a copy operation (eg: does not change its Id ).
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignIssueConstrainerToOubliette(Id issueConstrainerId, Id oublietteId) Adds an existingIssueConstrainerto anoublietteId.booleanTests if this user can alter issue constrainer/oubliette mappings.booleancanAssignIssueConstrainerToOubliette(Id oublietteId) Tests if this user can alter issue constrainer/oubliette mappings.getAssignableOublietteIds(Id oublietteId) Gets a list of oubliettes including and under the given oubliette node in which any issue constrainer can be assigned.getAssignableOublietteIdsForIssueConstrainer(Id oublietteId, Id issueConstrainerId) Gets a list of oubliettes including and under the given oubliette node in which a specific issue constrainer can be assigned.voidreassignIssueConstrainerToOubliette(Id issueConstrainerId, Id fromOublietteId, Id toOublietteId) Moves anIssueConstrainerfrom oneOublietteto another.voidunassignIssueConstrainerFromOubliette(Id issueConstrainerId, Id oublietteId) Removes anIssueConstrainerfrom 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
-
canAssignIssueConstrainers
boolean canAssignIssueConstrainers()Tests if this user can alter issue constrainer/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.
-
canAssignIssueConstrainerToOubliette
Tests if this user can alter issue constrainer/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 constrainer 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.
-
getAssignableOublietteIdsForIssueConstrainer
IdList getAssignableOublietteIdsForIssueConstrainer(Id oublietteId, Id issueConstrainerId) throws OperationFailedException Gets a list of oubliettes including and under the given oubliette node in which a specific issue constrainer can be assigned.- Parameters:
oublietteId- theIdof theOublietteissueConstrainerId- theIdof theIssueConstrainer- Returns:
- list of assignable oubliette
Ids - Throws:
NullArgumentException-oublietteIdorissueConstrainerIdisnullOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
assignIssueConstrainerToOubliette
void assignIssueConstrainerToOubliette(Id issueConstrainerId, Id oublietteId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingIssueConstrainerto anoublietteId.- Parameters:
issueConstrainerId- theIdof theIssueConstraineroublietteId- theIdof theOubliette- Throws:
AlreadyExistsException-issueConstrainerIdis already assigned tooublietteIdNotFoundException-issueConstrainerIdoroublietteIdnot foundNullArgumentException-issueConstrainerIdoroublietteIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignIssueConstrainerFromOubliette
void unassignIssueConstrainerFromOubliette(Id issueConstrainerId, Id oublietteId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes anIssueConstrainerfrom anOubliette.- Parameters:
issueConstrainerId- theIdof theIssueConstraineroublietteId- theIdof theOubliette- Throws:
NotFoundException-issueConstrainerIdoroublietteIdnot found orissueConstrainerIdnot assigned tooublietteIdNullArgumentException-issueConstrainerIdoroublietteIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
reassignIssueConstrainerToOubliette
void reassignIssueConstrainerToOubliette(Id issueConstrainerId, Id fromOublietteId, Id toOublietteId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Moves anIssueConstrainerfrom oneOublietteto another. Mappings to otherOubliettesare unaffected.- Parameters:
issueConstrainerId- theIdof theIssueConstrainerfromOublietteId- theIdof the currentOubliettetoOublietteId- theIdof the destinationOubliette- Throws:
AlreadyExistsException-issueConstrainerIdalready assigned totoOublietteIdNotFoundException-issueConstrainerId, fromOublietteId, ortoOublietteeIdnot found orissueConstrainerIdnot mapped tofromOublietteIdNullArgumentException-issueConstrainerId, fromOublietteId, ortoOublietteIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-