Class DialobSession
java.lang.Object
io.dialob.session.engine.session.model.DialobSession
- All Implemented Interfaces:
ItemStates,Serializable
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDialobSession(String tenantId, String id, String revision, String language, List<ItemState> items, List<ItemState> prototypes, List<ValueSetState> valueSets, List<ErrorState> errors, List<ErrorState> errorPrototypes, Date completed, Date opened, Date lastAnswer) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(DialobSessionVisitor visitor) voidapplyUpdate(EvalContext evalContext, Command<?> command) booleancomplete()createScope(EvalContext evalContext, ItemId itemId) createScopedEvalContext(EvalContext evalContext, ItemId itemId) findErrorPrototypes(ItemId itemId) findMatchingItemIds(ItemId partialItemId) findPrototype(ItemId itemId) getErrorState(ItemId itemId, String code) getItemState(ItemId id) booleanstatic DialobSessionreadFrom(com.google.protobuf.CodedInputStream input) protected voidupdated()voidwriteTo(com.google.protobuf.CodedOutputStream output)
-
Field Details
-
QUESTIONNAIRE_REF
-
-
Constructor Details
-
DialobSession
-
-
Method Details
-
writeTo
- Throws:
IOException
-
readFrom
- Throws:
IOException
-
withId
-
getRootItem
-
getItemState
-
accept
-
applyUpdate
- Parameters:
evalContext- execution contextcommand- object to execute within context
-
createScopedEvalContext
-
createScope
-
updated
protected void updated() -
getErrorState
-
getLastUpdate
-
getCompleted
-
getOpened
-
getLastAnswer
-
isCompleted
public boolean isCompleted() -
complete
public boolean complete() -
getItemStates
- Specified by:
getItemStatesin interfaceItemStates
-
getValueSetStates
- Specified by:
getValueSetStatesin interfaceItemStates
-
getErrorStates
- Specified by:
getErrorStatesin interfaceItemStates
-
getValueSetState
-
findPrototype
-
findMatchingItemIds
-
findErrorPrototypes
-
generateUpdateId
-