public static class PersonalResponseManager.PersonalResponse<D extends DynamicFormManager.DynamicForm> extends ResponseManager.Response<D>
DEBUG, recordMAX_IDENTIFIER| Constructor and Description |
|---|
PersonalResponse(PersonalResponseManager<?,D> manager,
Repository.Record r) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canEdit(SessionService<?> sess)
Access control method to edit the response
|
boolean |
canView(SessionService<?> sess)
Access control method to view the response
|
MimeStreamData |
getDataStream()
get a
MimeStreamData representing a downloadable version of the response |
java.lang.String |
getDescriptor()
a text descriptor for the response.
|
AppUser |
getPerson() |
boolean |
isSubmitter(SessionService<?> sess) |
void |
setPerson(AppUser user) |
MessageResult |
submit()
method to be called when the form is finally submitted.
|
boolean |
validate()
This method must return true before the form edit transition allows
the submit button to be pressed.
|
getData, getForm, getResponseManager, getWrapper, setData, setFormaddToMap, addToMap, addToMap, commit, delete, empty, equals, formUpdate, getContext, getDatabaseService, getFactoryTag, getID, getIdentifier, getIdentifier, getLogger, getMap, getMap, getOwningFactory, getRecord, getRecord, getRecord, getSQLContext, getUniqueIdName, hashCode, isLocked, lock, post_commit, postCreate, pre_commit, release, setContents, setDirty, setMap, toStringpublic PersonalResponse(PersonalResponseManager<?,D> manager, Repository.Record r)
r - public boolean canView(SessionService<?> sess)
ResponseManager.ResponsecanView in class ResponseManager.Response<D extends DynamicFormManager.DynamicForm>public boolean canEdit(SessionService<?> sess)
ResponseManager.ResponsecanEdit in class ResponseManager.Response<D extends DynamicFormManager.DynamicForm>public java.lang.String getDescriptor()
ResponseManager.ResponsegetDescriptor in class ResponseManager.Response<D extends DynamicFormManager.DynamicForm>public boolean isSubmitter(SessionService<?> sess)
public void setPerson(AppUser user)
public AppUser getPerson() throws DataException
DataExceptionpublic MessageResult submit() throws java.lang.Exception
ResponseManager.ResponseResponseManager.Response.canEdit(SessionService) so
the response contents don't change while the response is reviewed.
Other submit time side-effects could also be included here
The reviewers could return the response to the submitter returning it
to a previous statesubmit in class ResponseManager.Response<D extends DynamicFormManager.DynamicForm>java.lang.Exceptionpublic boolean validate()
throws java.lang.Exception
ResponseManager.Responsevalidate in class ResponseManager.Response<D extends DynamicFormManager.DynamicForm>java.lang.Exceptionpublic MimeStreamData getDataStream() throws DataException
ResponseManager.ResponseMimeStreamData representing a downloadable version of the responsegetDataStream in class ResponseManager.Response<D extends DynamicFormManager.DynamicForm>DataException