public abstract class AbstractDocumentHolder extends LspsContextHolder
Modifier and Type | Field and Description |
---|---|
protected com.whitestein.lsps.human.dto.GenericDocument |
document |
protected String |
documentId |
protected Map<String,String> |
parameters |
protected boolean |
saved |
protected Long |
savedDocumentId |
protected UIScreenState |
uiState |
modelInstanceUtilsService, modelProviderService, sharedRecordTypeFactory
Constructor and Description |
---|
AbstractDocumentHolder(long savedDocumentId,
LspsAppConnector appConnector,
LspsFormConnector formConnector,
String userId)
Creates context for the given saved document id.
|
AbstractDocumentHolder(String documentId,
Map<String,String> parameters,
LspsAppConnector appConnector,
LspsFormConnector formConnector,
String userId)
Creates context for the given document id with the given parameters.
|
Modifier and Type | Method and Description |
---|---|
void |
addSaveMetadataToUploadedBinaryData(BinaryDataServiceLocal binaryDataService,
List<Long> uploadedBinaryData)
Adds metadata to the binary data uploaded in this holder.
|
protected com.whitestein.lsps.human.dto.GenericDocument |
createDocumentToSave()
Creates a smaller document to be saved.
|
protected abstract ExecutionContext |
createEvaluationContext()
Creates the evaluation context.
|
RecordHolder |
createSavedStateHolder()
Returns a representation of the saved state in the model.
|
protected abstract LspsScreen |
createScreen()
Creates the user interface.
|
com.whitestein.lsps.human.dto.GenericDocument |
getDocument() |
RecordHolder |
getHistoryEntry(ExecutionContext context,
Map<String,Object> defaultValues)
Returns the navigation history entry for this document.
|
Variant.ClosureVariant |
getSubmitNavigationDefinition()
Gets the navigation definition from the document/todo definition.
|
String |
getTitle()
Returns the title for the form content.
|
boolean |
isReadOnly()
Returns true if the GUI should be opened in read-only mode.
|
boolean |
isSaved()
Returns true if the state of the GUI was already saved before opening.
|
void |
save(UIScreenState uiState)
Saves the changes done within the context.
|
protected abstract RecordHolder |
submit()
Submits the changes done within the context and closes the context.
|
collectGarbage, deactivate, getAppConnector, getExecutionContext, getExecutionContext, getFormConnector, getHandle, getModelInstance, getScreen, getValueHolder, getValueHolderInLevel, invalidate, isClosureWithQuery, isValid, minimalModelInstanceCopy, performPersist, persist, reactivate, reloadContent, submitContext, updateApplicationData
protected String documentId
protected Long savedDocumentId
protected boolean saved
protected transient com.whitestein.lsps.human.dto.GenericDocument document
protected UIScreenState uiState
public AbstractDocumentHolder(long savedDocumentId, LspsAppConnector appConnector, LspsFormConnector formConnector, String userId) throws LspsException
savedDocumentId
- appConnector
- formConnector
- userId
- LspsException
public AbstractDocumentHolder(String documentId, Map<String,String> parameters, LspsAppConnector appConnector, LspsFormConnector formConnector, String userId) throws LspsException
documentId
- parameters
- appConnector
- formConnector
- userId
- LspsException
protected abstract ExecutionContext createEvaluationContext() throws LspsException
LspsContextHolder
LspsContextHolder.reloadContent()
.createEvaluationContext
in class LspsContextHolder
LspsException
protected abstract LspsScreen createScreen() throws LspsException
LspsContextHolder
LspsContextHolder.reloadContent()
.createScreen
in class LspsContextHolder
LspsException
protected abstract RecordHolder submit() throws LspsException
LspsContextHolder
submit
in class LspsContextHolder
LspsException
public boolean isSaved()
LspsContextHolder
isSaved
in class LspsContextHolder
public boolean isReadOnly()
LspsContextHolder
isReadOnly
in class LspsContextHolder
public RecordHolder createSavedStateHolder()
LspsContextHolder
UISaveAction
when the save action is going to be executed.createSavedStateHolder
in class LspsContextHolder
public void save(UIScreenState uiState) throws LspsException
LspsContextHolder
save
in class LspsContextHolder
LspsException
protected com.whitestein.lsps.human.dto.GenericDocument createDocumentToSave()
public String getTitle()
LspsContextHolder
getTitle
in class LspsContextHolder
public RecordHolder getHistoryEntry(ExecutionContext context, Map<String,Object> defaultValues)
context
- context in which the entry should be createddefaultValues
- public com.whitestein.lsps.human.dto.GenericDocument getDocument()
public void addSaveMetadataToUploadedBinaryData(BinaryDataServiceLocal binaryDataService, List<Long> uploadedBinaryData)
LspsContextHolder
addSaveMetadataToUploadedBinaryData
in class LspsContextHolder
public Variant.ClosureVariant getSubmitNavigationDefinition()
LspsContextHolder
getSubmitNavigationDefinition
in class LspsContextHolder
{Set<Todo> : Navigation}
Copyright © 2007-2018 Whitestein Technologies. All Rights Reserved.