Package org.kuali.rice.krad
Class UserSessionUtils
java.lang.Object
org.kuali.rice.krad.UserSessionUtils
Utility class for working with the UserSession.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddWorkflowDocument(UserSession userSession, WorkflowDocument workflowDocument) Adds the givenWorkflowDocumentto theUserSession.static WorkflowDocumentgetWorkflowDocument(UserSession userSession, String workflowDocumentId) Returns theWorkflowDocumentwith the given ID from theUserSession.
-
Method Details
-
addWorkflowDocument
Adds the givenWorkflowDocumentto theUserSession.- Parameters:
userSession- the session to add the workflow document toworkflowDocument- the workflow doc to add to the session
-
getWorkflowDocument
public static WorkflowDocument getWorkflowDocument(UserSession userSession, String workflowDocumentId) Returns theWorkflowDocumentwith the given ID from theUserSession. If there is not one cached in the session with that ID, then null is returned.- Parameters:
userSession- the user session from which to retrieve the workflow documentworkflowDocumentId- the ID of the workflow document to get- Returns:
- the cached workflow document, or null if a document with that ID is not cached in the user session
-