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, updateApplicationDataprotected 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 - LspsExceptionpublic AbstractDocumentHolder(String documentId, Map<String,String> parameters, LspsAppConnector appConnector, LspsFormConnector formConnector, String userId) throws LspsException
documentId - parameters - appConnector - formConnector - userId - LspsExceptionprotected abstract ExecutionContext createEvaluationContext() throws LspsException
LspsContextHolderLspsContextHolder.reloadContent().createEvaluationContext in class LspsContextHolderLspsExceptionprotected abstract LspsScreen createScreen() throws LspsException
LspsContextHolderLspsContextHolder.reloadContent().createScreen in class LspsContextHolderLspsExceptionprotected abstract RecordHolder submit() throws LspsException
LspsContextHoldersubmit in class LspsContextHolderLspsExceptionpublic boolean isSaved()
LspsContextHolderisSaved in class LspsContextHolderpublic boolean isReadOnly()
LspsContextHolderisReadOnly in class LspsContextHolderpublic RecordHolder createSavedStateHolder()
LspsContextHolderUISaveAction when the save action is going to be executed.createSavedStateHolder in class LspsContextHolderpublic void save(UIScreenState uiState) throws LspsException
LspsContextHoldersave in class LspsContextHolderLspsExceptionprotected com.whitestein.lsps.human.dto.GenericDocument createDocumentToSave()
public String getTitle()
LspsContextHoldergetTitle in class LspsContextHolderpublic 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)
LspsContextHolderaddSaveMetadataToUploadedBinaryData in class LspsContextHolderpublic Variant.ClosureVariant getSubmitNavigationDefinition()
LspsContextHoldergetSubmitNavigationDefinition in class LspsContextHolder{Set<Todo> : Navigation}Copyright © 2007-2018 Whitestein Technologies. All Rights Reserved.