public interface SessionDocumentService
Document
form content and
retrieving back
Used as an extension to session support. If a session times out, the doucment contents can be retrieved from the persistence storage and work resumed
Modifier and Type | Method and Description |
---|---|
void |
addDocumentToUserSession(UserSession userSession,
WorkflowDocument document)
This method places a document into the user session.
|
DocumentFormBase |
getDocumentForm(String documentNumber,
String docFormKey,
UserSession userSession,
String ipAddress)
Returns DocumentFormBase object from the db
|
WorkflowDocument |
getDocumentFromSession(UserSession userSession,
String docId)
Retrieves a document from the user session for the given document id
|
void |
purgeAllSessionDocuments(Timestamp expirationDate)
Delete KualiDocumentFormBase from session and database.
|
void |
purgeDocumentForm(String documentNumber,
String docFormKey,
UserSession userSession,
String ipAddress)
Delete DocumentFormBase from session and database.
|
void |
setDocumentForm(DocumentFormBase form,
UserSession userSession,
String ipAddress)
This method stores a UifFormBase into session and database
|
WorkflowDocument getDocumentFromSession(UserSession userSession, String docId)
void addDocumentToUserSession(UserSession userSession, WorkflowDocument document)
void purgeDocumentForm(String documentNumber, String docFormKey, UserSession userSession, String ipAddress)
documentNumber
- docFormKey
- userSession
-
void purgeAllSessionDocuments(Timestamp expirationDate)
documentNumber
-
void setDocumentForm(DocumentFormBase form, UserSession userSession, String ipAddress)
form
- userSession
- ipAddress
- DocumentFormBase getDocumentForm(String documentNumber, String docFormKey, UserSession userSession, String ipAddress)
documentNumber
- docFormKey
- userSession
- ipAddress
- Copyright © 2005-2015 The Kuali Foundation. All Rights Reserved.