public static class PersonalResponseManager.PersonalResponse<D extends DynamicFormManager.DynamicForm> extends ResponseManager.Response<D>
DEBUG, record
MAX_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, setForm
addToMap, 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, toString
public PersonalResponse(PersonalResponseManager<?,D> manager, Repository.Record r)
r
- public boolean canView(SessionService<?> sess)
ResponseManager.Response
canView
in class ResponseManager.Response<D extends DynamicFormManager.DynamicForm>
public boolean canEdit(SessionService<?> sess)
ResponseManager.Response
canEdit
in class ResponseManager.Response<D extends DynamicFormManager.DynamicForm>
public java.lang.String getDescriptor()
ResponseManager.Response
getDescriptor
in class ResponseManager.Response<D extends DynamicFormManager.DynamicForm>
public boolean isSubmitter(SessionService<?> sess)
public void setPerson(AppUser user)
public AppUser getPerson() throws DataException
DataException
public MessageResult submit() throws java.lang.Exception
ResponseManager.Response
ResponseManager.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.Exception
public boolean validate() throws java.lang.Exception
ResponseManager.Response
validate
in class ResponseManager.Response<D extends DynamicFormManager.DynamicForm>
java.lang.Exception
public MimeStreamData getDataStream() throws DataException
ResponseManager.Response
MimeStreamData
representing a downloadable version of the responsegetDataStream
in class ResponseManager.Response<D extends DynamicFormManager.DynamicForm>
DataException