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, submitContext
protected 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
- LspsException
public final boolean isReadOnly()
LspsContextHolder
isReadOnly
in class LspsContextHolder
protected RecordHolder submit() throws LspsException
LspsContextHolder
submit
in class LspsContextHolder
LspsException
protected InterpreterStackTrace createStackTrace(String property)
protected abstract TodoList submitTodo() throws LspsException
LspsException
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
save
in class LspsContextHolder
LspsException
public RecordHolder getHistoryEntry(ExecutionContext context, Map<String,Object> defaultValues)
context
- defaultValues
- public String getTitle()
LspsContextHolder
getTitle
in class LspsContextHolder
public Todo getTodo()
protected void updateApplicationData(ModelInstance modelInstance)
getApplicationData()
function.updateApplicationData
in class LspsContextHolder
modelInstance
- public void addSaveMetadataToUploadedBinaryData(BinaryDataServiceLocal binaryDataService, List<Long> uploadedBinaryData)
LspsContextHolder
addSaveMetadataToUploadedBinaryData
in class LspsContextHolder
protected boolean isUsingEvalLevels(ExecutionContext taskContext)
public Variant.ClosureVariant getSubmitNavigationDefinition()
LspsContextHolder
getSubmitNavigationDefinition
in class LspsContextHolder
{Set<Todo> : Navigation}
Copyright © 2007-2018 Whitestein Technologies. All Rights Reserved.