public abstract class AbstractTodoHolder extends LspsContextHolder
LspsContextHolder which displays and handles the lifecycle of
a LSPS to-do.| Modifier and Type | Field and Description |
|---|---|
protected static String |
PARAM_NAVIGATION |
protected static String |
PARAM_UIDEFINITION |
protected Long |
taskContextId |
protected Todo |
todo |
protected long |
todoId |
protected com.whitestein.lsps.human.ejb.TodoServiceLocal |
todoServiceLocal |
modelInstanceUtilsService, modelProviderService, sharedRecordTypeFactory| Constructor and Description |
|---|
AbstractTodoHolder(long todoId,
LspsAppConnector appConnector,
LspsFormConnector formConnector,
String userId,
boolean readOnly)
Creates context for the given to-do id.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSaveMetadataToUploadedBinaryData(BinaryDataServiceLocal binaryDataService,
List<Long> uploadedBinaryData)
Adds metadata to the binary data uploaded in this holder.
|
RecordHolder |
createSavedStateHolder()
Returns a representation of the saved state in the model.
|
protected InterpreterStackTrace |
createStackTrace(String property) |
RecordHolder |
getHistoryEntry(ExecutionContext context,
Map<String,Object> defaultValues)
Returns the navigation history entry for this todo.
|
Variant.ClosureVariant |
getSubmitNavigationDefinition()
Gets the navigation definition from the document/todo definition.
|
String |
getTitle()
Returns the title for the form content.
|
Todo |
getTodo()
Returns the displayed to-do.
|
boolean |
isReadOnly()
Returns true if the GUI should be opened in read-only mode.
|
protected boolean |
isUsingEvalLevels(ExecutionContext taskContext) |
void |
save(UIScreenState uiState)
Saves the current state of the to-do.
|
protected RecordHolder |
submit()
Submits the changes done within the context and closes the context.
|
protected abstract TodoList |
submitTodo() |
protected void |
updateApplicationData(ModelInstance modelInstance)
Updates the data available to the model through the
getApplicationData() function. |
collectGarbage, createEvaluationContext, createScreen, deactivate, getAppConnector, getExecutionContext, getExecutionContext, getFormConnector, getHandle, getModelInstance, getScreen, getValueHolder, getValueHolderInLevel, invalidate, isClosureWithQuery, isSaved, isValid, minimalModelInstanceCopy, performPersist, persist, reactivate, reloadContent, submitContextprotected static final String PARAM_NAVIGATION
protected static final String PARAM_UIDEFINITION
protected final long todoId
protected Todo todo
protected Long taskContextId
protected com.whitestein.lsps.human.ejb.TodoServiceLocal todoServiceLocal
public AbstractTodoHolder(long todoId,
LspsAppConnector appConnector,
LspsFormConnector formConnector,
String userId,
boolean readOnly)
throws LspsException
todoId - appConnector - formConnector - userId - readOnly - LspsExceptionpublic final boolean isReadOnly()
LspsContextHolderisReadOnly in class LspsContextHolderprotected RecordHolder submit() throws LspsException
LspsContextHoldersubmit in class LspsContextHolderLspsExceptionprotected InterpreterStackTrace createStackTrace(String property)
protected abstract TodoList submitTodo() throws LspsException
LspsExceptionpublic RecordHolder createSavedStateHolder()
LspsContextHolderUISaveAction when the save action is going to be executed.createSavedStateHolder in class LspsContextHolderpublic void save(UIScreenState uiState) throws LspsException
save in class LspsContextHolderLspsExceptionpublic RecordHolder getHistoryEntry(ExecutionContext context, Map<String,Object> defaultValues)
context - defaultValues - public String getTitle()
LspsContextHoldergetTitle in class LspsContextHolderpublic Todo getTodo()
protected void updateApplicationData(ModelInstance modelInstance)
getApplicationData() function.updateApplicationData in class LspsContextHoldermodelInstance - public void addSaveMetadataToUploadedBinaryData(BinaryDataServiceLocal binaryDataService, List<Long> uploadedBinaryData)
LspsContextHolderaddSaveMetadataToUploadedBinaryData in class LspsContextHolderprotected boolean isUsingEvalLevels(ExecutionContext taskContext)
public Variant.ClosureVariant getSubmitNavigationDefinition()
LspsContextHoldergetSubmitNavigationDefinition in class LspsContextHolder{Set<Todo> : Navigation}Copyright © 2007-2018 Whitestein Technologies. All Rights Reserved.