public class FormRequestContext extends Object implements IFormRequestContext
IFormRenderContext,
IFormPersistContext or IFormProcessContext| Modifier and Type | Field and Description |
|---|---|
protected ProjectDOIData |
doubleOptInData |
protected IFormDataAdapter |
formData |
protected FormVersion |
formVersion |
protected FrontendServer |
frontendServer |
protected FRQSession |
frqSession |
protected boolean |
isBenutzerZugriffAllowed |
protected boolean |
isCheckForm |
protected boolean |
isContinueProcessing |
protected boolean |
isFrontendServerAllowed |
protected boolean |
isOldVersion |
protected boolean |
isPreview |
protected boolean |
isResubmit |
protected boolean |
isReview |
protected boolean |
isRunWorkflow |
protected boolean |
isSaveOnly |
protected boolean |
isUseCurrentFv |
protected Locale |
locale |
protected static org.slf4j.Logger |
LOG |
protected Mandant |
mandant |
protected ParameterWrapper |
parameterWrapper |
protected Projekt |
projekt |
protected String |
requestContext |
protected EFormRequestType |
requestType |
protected Map<String,Serializable> |
sessionAttributes |
protected String |
sessionId |
protected UserContext |
uc |
protected Benutzer |
user |
protected List<BenutzerGruppe> |
userGroups |
protected List<Postfach> |
userInboxes |
protected org.pac4j.core.profile.CommonProfile |
userProfile |
protected Vorgang |
vorgang |
protected XfcSession |
xfcSession |
| Modifier | Constructor and Description |
|---|---|
protected |
FormRequestContext(EFormRequestType requestType,
UserContext uc) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetBenutzerGruppen, getBenutzerPostfaecher, getCurrentBenutzer, setBenutzerGruppen, setBenutzerPostfaecher, setCurrentBenutzerprotected static final org.slf4j.Logger LOG
protected XfcSession xfcSession
protected FRQSession frqSession
protected String sessionId
protected String requestContext
protected Locale locale
protected Mandant mandant
protected FormVersion formVersion
protected Vorgang vorgang
protected Projekt projekt
protected ProjectDOIData doubleOptInData
protected Benutzer user
protected org.pac4j.core.profile.CommonProfile userProfile
protected List<BenutzerGruppe> userGroups
protected FrontendServer frontendServer
protected IFormDataAdapter formData
protected UserContext uc
protected ParameterWrapper parameterWrapper
protected EFormRequestType requestType
protected Map<String,Serializable> sessionAttributes
protected boolean isSaveOnly
protected boolean isResubmit
protected boolean isPreview
protected boolean isReview
protected boolean isOldVersion
protected boolean isRunWorkflow
IFormRequestContext#isRunWorkflow()protected boolean isCheckForm
protected boolean isUseCurrentFv
protected boolean isFrontendServerAllowed
protected boolean isBenutzerZugriffAllowed
protected boolean isContinueProcessing
protected FormRequestContext(EFormRequestType requestType, UserContext uc) throws ContextBuilderException
ContextBuilderExceptionpublic IFormDataAdapter getFormData()
getFormData in interface IFormRequestContextIFormDataAdapter that can be used to access the current form data, ie. the submitted or already
present values for each form field.public void setFormData(IFormDataAdapter formData)
setFormData in interface IFormRequestContextpublic FormVersion getFormVersion()
getFormVersion in interface IFormRequestContextFormVersion that was requested.public void setFrontendServer(FrontendServer frontendServer)
setFrontendServer in interface IFormRequestContextpublic FrontendServer getFrontendServer()
getFrontendServer in interface IFormRequestContextFrontendServer, that frontend server. Otherwise, when the form
request is made directly to the master server, this return null.public FRQSession getFRQSession()
getFRQSession in interface IFormRequestContextIFormRequestContext.getSession() may contain multiple FRQSessions.public Locale getLocale()
getLocale in interface IFormRequestContextpublic Mandant getMandant()
getMandant in interface IFormRequestContextMandant to which the current form belongs to.public ParameterWrapper getParameterWrapper()
IFormRequestContextIFormRequestContext.initFormData(ParameterWrapper) or IFormRequestContext.getFormData() and IFormDataAdapter.init(Map) or
IFormRequestContext.setFormData(IFormDataAdapter)getParameterWrapper in interface IFormRequestContextParameterWrapperpublic Projekt getProjekt()
getProjekt in interface IFormRequestContextProjekt which contains the form that was requested.public String getRequestContext()
getRequestContext in interface IFormRequestContextHttpServletRequest.getContextPath()public EFormRequestType getRequestType()
getRequestType in interface IFormRequestContextpublic XfcSession getSession()
getSession in interface IFormRequestContextHttpSession.public String getSessionID()
getSessionID in interface IFormRequestContextHttpSession ID.public Boolean getUseCurrentFv()
getUseCurrentFv in interface IFormRequestContextpublic UserContext getUserContext()
getUserContext in interface IFormRequestContextpublic void setUserContext(UserContext uc)
setUserContext in interface IFormRequestContextpublic Vorgang getVorgang()
getVorgang in interface IFormRequestContextVorgang when the form was submitted; or null when a new empty form was just
requested.public boolean isBenutzerZugriffAllowed()
isBenutzerZugriffAllowed in interface IFormRequestContexttrue to indicate that the current Benutzer is allowed access to the request form, or
false otherwise.public void setBenutzerZugriffAllowed(boolean isBenutzerZugriffAllowed)
setBenutzerZugriffAllowed in interface IFormRequestContextpublic boolean isFrontendServerAllowed()
isFrontendServerAllowed in interface IFormRequestContexttrue if the requested form may be served by the IFormRequestContext.getFrontendServer(), or false
otherwise.public void setFrontenServerAllowed(boolean isFrontendServerAllowed)
setFrontenServerAllowed in interface IFormRequestContextpublic List<Postfach> getUserInboxes()
getUserInboxes in interface IFormRequestContextList of Postfachs which the current Benutzer can access.public void setUserInboxes(List<Postfach> userInboxes)
setUserInboxes in interface IFormRequestContextpublic List<BenutzerGruppe> getUserGroups()
getUserGroups in interface IFormRequestContextList of BenutzerGruppes to which the current Benutzer belongs to.public void setUserGroups(List<BenutzerGruppe> userGroups)
setUserGroups in interface IFormRequestContextpublic com.alibaba.fastjson.JSONObject createUserDataJSON()
createUserDataJSON in interface IFormRequestContextpublic void initFormData(ParameterWrapper rp)
initFormData in interface IFormRequestContextpublic boolean isAnonymize()
isAnonymize in interface IFormRequestContexttrue to indicate the form submission should be made anonymously, or false otherwise. When
the form is anonymized, no meta data is saved regarding the user who submitted the form.public boolean isCheckForm()
isCheckForm in interface IFormRequestContexttrue to indicate the form should be validated on the server, or false otherwise.public boolean isContinueProcessing()
isContinueProcessing in interface IFormRequestContexttrue if this form request should be processed further, or false to indicate that processing
should be aborted.public boolean isOldVersion()
isOldVersion in interface IFormRequestContexttrue if an old version was requested, or false otherwise.public boolean isResubmit()
isResubmit in interface IFormRequestContexttrue when the form was not submitted for the first time and a Vorgang exists already,
false otherwise.public boolean isReview()
isReview in interface IFormRequestContexttrue if a review was requested (when opening a form in the inbox), or false otherwise.public boolean isSaveOnly()
isSaveOnly in interface IFormRequestContextpublic void setSaveOnly(boolean saveOnly)
setSaveOnly in interface IFormRequestContextpublic boolean isUseCurrentFv()
isUseCurrentFv in interface IFormRequestContexttrue if the latest version of the form is to be used, false if a specific form version was
requested.public void setAnonymize(boolean anonymize)
setAnonymize in interface IFormRequestContextpublic void setCheckForm(boolean checkForm)
setCheckForm in interface IFormRequestContextpublic void setContinueProcessing(boolean isContinueProcessing)
setContinueProcessing in interface IFormRequestContextpublic Benutzer getUser()
getUser in interface IFormRequestContextpublic void setUser(Benutzer user)
setUser in interface IFormRequestContextpublic void setUserProfile(org.pac4j.core.profile.CommonProfile userData)
setUserProfile in interface IFormRequestContextpublic org.pac4j.core.profile.CommonProfile getUserProfile()
getUserProfile in interface IFormRequestContextpublic void setFormVersion(FormVersion formVersion)
setFormVersion in interface IFormRequestContextpublic void setFRQSession(FRQSession frqSession)
setFRQSession in interface IFormRequestContextpublic void setLocale(Locale locale)
setLocale in interface IFormRequestContextpublic void setMandant(Mandant mandant)
setMandant in interface IFormRequestContextpublic void setOldVersion(boolean isOldVersion)
setOldVersion in interface IFormRequestContextpublic void setProjekt(Projekt projekt)
setProjekt in interface IFormRequestContextpublic void setRequestContest(String requestContext)
setRequestContest in interface IFormRequestContextpublic void setRequestType(EFormRequestType requestType)
setRequestType in interface IFormRequestContextpublic void setResubmit(boolean isResubmit)
setResubmit in interface IFormRequestContextpublic void setReview(boolean isReview)
setReview in interface IFormRequestContextpublic boolean isPreview()
isPreview in interface IFormRequestContexttrue if a preview was requested, false otherwise.public void setPreview(boolean isPreview)
setPreview in interface IFormRequestContextpublic void setSessionID(String sessionID)
setSessionID in interface IFormRequestContextpublic void setUseCurrentFv(boolean isUseCurrentFv)
setUseCurrentFv in interface IFormRequestContextpublic ValueParameters getValueParameters()
getValueParameters in interface IFormRequestContextIFormRequestContext.getUploadParameters().public void setVorgang(Vorgang vorgang)
setVorgang in interface IFormRequestContextpublic void setSession(XfcSession xfcSession)
setSession in interface IFormRequestContextpublic UploadParameters getUploadParameters()
getUploadParameters in interface IFormRequestContextpublic Map<String,Serializable> getSessionAttributeMap()
getSessionAttributeMap in interface IFormRequestContextMap of all key-value pairs in the current HttpSession. Please note that changes to this
map will not affect the HttpSession.public void setSessionAttributeMap(Map<String,Serializable> sessionAttributes)
setSessionAttributeMap in interface IFormRequestContextpublic void loadUserData(FormUserRequestData userData)
loadUserData in interface IFormRequestContextpublic ProjectDOIData getDoubleOptInData()
getDoubleOptInData in interface IFormRequestContextpublic void setDoubleOptInData(ProjectDOIData doubleOptInData)
setDoubleOptInData in interface IFormRequestContext@Deprecated public void setParameterWrapper(ParameterWrapper parameterWrapper)
setParameterWrapper in interface IFormRequestContext@Deprecated public SessionAttributes getSessionAttributes()
getSessionAttributeMap()getSessionAttributes in interface IFormRequestContext@Deprecated public void setSessionAttributes(SessionAttributes sessionAttributes)
setSessionAttributeMap(Map)setSessionAttributes in interface IFormRequestContextCopyright © 2020 XIMA MEDIA GmbH. All rights reserved.