Package wt.vc.sessioniteration
Interface SessionIterationService
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptioncommitSessionIteration(SessionEditedIteration sessionIteration, String comment) Commits the session iteration.createSessionIteration(SessionEditedIteration iteration, WTPrincipal principal, String comment) Creates a session iteration for the specified principal from the given iteration.deleteSessionIteration(SessionEditedIteration sessionIteration) Deletes the session iteration.getSessionIteration(SessionEditedIteration iteration, WTPrincipal principal) Returns a session iteration for the principal specified (or the current principal if null is passed in) -- if one exists -- that was created from the iteration provided.voidvalidateCommitSessionIteration(SessionEditedIteration sessionIteration) Returns true if the session iteration can be commited.voidvalidateCreateSessionIteration(SessionEditedIteration iteration, WTPrincipal principal) Returns true if the principal can create a session iteration from the specified iteration.voidvalidateDeleteSessionIteration(SessionEditedIteration sessionIteration) Validates that the session iteration can be deleted.
-
Method Details
-
getSessionIteration
SessionEditedIteration getSessionIteration(SessionEditedIteration iteration, WTPrincipal principal) throws WTException Returns a session iteration for the principal specified (or the current principal if null is passed in) -- if one exists -- that was created from the iteration provided.
Supported API: true- Parameters:
iteration-principal-- Returns:
- SessionEditedIteration
- Throws:
WTException
-
validateCreateSessionIteration
void validateCreateSessionIteration(SessionEditedIteration iteration, WTPrincipal principal) throws WTException Returns true if the principal can create a session iteration from the specified iteration. Creating a session iteration is analogous to a checkout, except that the "check out" is not reserved.
Supported API: true- Parameters:
iteration-principal-- Throws:
WTException
-
createSessionIteration
SessionEditedIteration createSessionIteration(SessionEditedIteration iteration, WTPrincipal principal, String comment) throws WTException Creates a session iteration for the specified principal from the given iteration. This is analogous to a check out, except that the "check out" is not reserved.
Supported API: true- Parameters:
iteration-principal-comment-- Returns:
- SessionEditedIteration
- Throws:
WTException
-
validateCommitSessionIteration
Returns true if the session iteration can be commited. Among the validations is a check to verify that the iteration the session iteration was created from hasn't already been superseded by another user. Committing a session iteration is analogous to a check in.
Supported API: true- Parameters:
sessionIteration-- Throws:
WTException
-
commitSessionIteration
SessionEditedIteration commitSessionIteration(SessionEditedIteration sessionIteration, String comment) throws WTException Commits the session iteration. This is analogous to a check in.
Supported API: true- Parameters:
sessionIteration-comment-- Returns:
- SessionEditedIteration
- Throws:
WTException
-
validateDeleteSessionIteration
Validates that the session iteration can be deleted. Deleting a session iteration is analogous to an undo checkout.
Supported API: true- Parameters:
sessionIteration-- Throws:
WTException
-
deleteSessionIteration
SessionEditedIteration deleteSessionIteration(SessionEditedIteration sessionIteration) throws WTException Deletes the session iteration. This is analogous to an undo checkout.
Supported API: true- Parameters:
sessionIteration-- Returns:
- SessionEditedIteration
- Throws:
WTException
-