public class FormRequestContext extends Object implements IFormRequestContext
IFormRenderContext
,
IFormPersistContext
or IFormProcessContext
Modifier and Type | Field and Description |
---|---|
protected String |
baseUrl |
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 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, wait
getBenutzerGruppen, getBenutzerPostfaecher, getCurrentBenutzer, getRequestContext, setBenutzerGruppen, setBenutzerPostfaecher, setCurrentBenutzer, setRequestContest, setRequestContext
protected static final org.slf4j.Logger LOG
protected XfcSession xfcSession
protected FRQSession frqSession
protected String sessionId
protected String baseUrl
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
ContextBuilderException
public IFormDataAdapter getFormData()
getFormData
in interface IFormRequestContext
IFormDataAdapter
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 IFormRequestContext
public FormVersion getFormVersion()
getFormVersion
in interface IFormRequestContext
FormVersion
that was requested.public void setFrontendServer(FrontendServer frontendServer)
setFrontendServer
in interface IFormRequestContext
public FrontendServer getFrontendServer()
getFrontendServer
in interface IFormRequestContext
FrontendServer
, that frontend server. Otherwise, when the form
request is made directly to the master server, this return null
.public FRQSession getFRQSession()
getFRQSession
in interface IFormRequestContext
IFormRequestContext.getSession()
may contain multiple FRQSession
s.public Locale getLocale()
getLocale
in interface IFormRequestContext
public Mandant getMandant()
getMandant
in interface IFormRequestContext
Mandant
to which the current form belongs to.public ParameterWrapper getParameterWrapper()
IFormRequestContext
IFormRequestContext.initFormData(ParameterWrapper)
or IFormRequestContext.getFormData()
and IFormDataAdapter.init(Map)
or
IFormRequestContext.setFormData(IFormDataAdapter)
getParameterWrapper
in interface IFormRequestContext
ParameterWrapper
public Projekt getProjekt()
getProjekt
in interface IFormRequestContext
Projekt
which contains the form that was requested.public String getBaseUrl()
getBaseUrl
in interface IFormRequestContext
public void setBaseUrl(String baseUrl)
setBaseUrl
in interface IFormRequestContext
public EFormRequestType getRequestType()
getRequestType
in interface IFormRequestContext
public XfcSession getSession()
getSession
in interface IFormRequestContext
HttpSession
.public String getSessionID()
getSessionID
in interface IFormRequestContext
HttpSession
ID.public Boolean getUseCurrentFv()
getUseCurrentFv
in interface IFormRequestContext
public UserContext getUserContext()
getUserContext
in interface IFormRequestContext
public void setUserContext(UserContext uc)
setUserContext
in interface IFormRequestContext
public Vorgang getVorgang()
getVorgang
in interface IFormRequestContext
Vorgang
when the form was submitted; or null
when a new empty form was just
requested.public boolean isBenutzerZugriffAllowed()
isBenutzerZugriffAllowed
in interface IFormRequestContext
true
to indicate that the current Benutzer
is allowed access to the request form, or
false
otherwise.public void setBenutzerZugriffAllowed(boolean isBenutzerZugriffAllowed)
setBenutzerZugriffAllowed
in interface IFormRequestContext
public boolean isFrontendServerAllowed()
isFrontendServerAllowed
in interface IFormRequestContext
true
if the requested form may be served by the IFormRequestContext.getFrontendServer()
, or false
otherwise.public void setFrontenServerAllowed(boolean isFrontendServerAllowed)
setFrontenServerAllowed
in interface IFormRequestContext
public List<Postfach> getUserInboxes()
getUserInboxes
in interface IFormRequestContext
List
of Postfach
s which the current Benutzer
can access.public void setUserInboxes(List<Postfach> userInboxes)
setUserInboxes
in interface IFormRequestContext
public List<BenutzerGruppe> getUserGroups()
getUserGroups
in interface IFormRequestContext
List
of BenutzerGruppe
s to which the current Benutzer
belongs to.public void setUserGroups(List<BenutzerGruppe> userGroups)
setUserGroups
in interface IFormRequestContext
public com.alibaba.fastjson.JSONObject createUserDataJSON()
createUserDataJSON
in interface IFormRequestContext
public void initFormData(ParameterWrapper rp)
initFormData
in interface IFormRequestContext
public boolean isAnonymize()
isAnonymize
in interface IFormRequestContext
true
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 IFormRequestContext
true
to indicate the form should be validated on the server, or false
otherwise.public boolean isContinueProcessing()
isContinueProcessing
in interface IFormRequestContext
true
if this form request should be processed further, or false
to indicate that processing
should be aborted.public boolean isOldVersion()
isOldVersion
in interface IFormRequestContext
true
if an old version was requested, or false
otherwise.public boolean isResubmit()
isResubmit
in interface IFormRequestContext
true
when the form was not submitted for the first time and a Vorgang
exists already,
false
otherwise.public boolean isReview()
isReview
in interface IFormRequestContext
true
if a review was requested (when opening a form in the inbox), or false
otherwise.public boolean isSaveOnly()
isSaveOnly
in interface IFormRequestContext
public void setSaveOnly(boolean saveOnly)
setSaveOnly
in interface IFormRequestContext
public boolean isUseCurrentFv()
isUseCurrentFv
in interface IFormRequestContext
true
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 IFormRequestContext
public void setCheckForm(boolean checkForm)
setCheckForm
in interface IFormRequestContext
public void setContinueProcessing(boolean isContinueProcessing)
setContinueProcessing
in interface IFormRequestContext
public Benutzer getUser()
getUser
in interface IFormRequestContext
public void setUser(Benutzer user)
setUser
in interface IFormRequestContext
public void setUserProfile(org.pac4j.core.profile.CommonProfile userData)
setUserProfile
in interface IFormRequestContext
public org.pac4j.core.profile.CommonProfile getUserProfile()
getUserProfile
in interface IFormRequestContext
public void setFormVersion(FormVersion formVersion)
setFormVersion
in interface IFormRequestContext
public void setFRQSession(FRQSession frqSession)
setFRQSession
in interface IFormRequestContext
public void setLocale(Locale locale)
setLocale
in interface IFormRequestContext
public void setMandant(Mandant mandant)
setMandant
in interface IFormRequestContext
public void setOldVersion(boolean isOldVersion)
setOldVersion
in interface IFormRequestContext
public void setProjekt(Projekt projekt)
setProjekt
in interface IFormRequestContext
public void setRequestType(EFormRequestType requestType)
setRequestType
in interface IFormRequestContext
public void setResubmit(boolean isResubmit)
setResubmit
in interface IFormRequestContext
public void setReview(boolean isReview)
setReview
in interface IFormRequestContext
public boolean isPreview()
isPreview
in interface IFormRequestContext
true
if a preview was requested, false
otherwise.public void setPreview(boolean isPreview)
setPreview
in interface IFormRequestContext
public void setSessionID(String sessionID)
setSessionID
in interface IFormRequestContext
public void setUseCurrentFv(boolean isUseCurrentFv)
setUseCurrentFv
in interface IFormRequestContext
public ValueParameters getValueParameters()
getValueParameters
in interface IFormRequestContext
IFormRequestContext.getUploadParameters()
.public void setVorgang(Vorgang vorgang)
setVorgang
in interface IFormRequestContext
public void setSession(XfcSession xfcSession)
setSession
in interface IFormRequestContext
public UploadParameters getUploadParameters()
getUploadParameters
in interface IFormRequestContext
public Map<String,Serializable> getSessionAttributeMap()
getSessionAttributeMap
in interface IFormRequestContext
Map
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 IFormRequestContext
public void loadUserData(FormUserRequestData userData)
loadUserData
in interface IFormRequestContext
public ProjectDOIData getDoubleOptInData()
getDoubleOptInData
in interface IFormRequestContext
public 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 IFormRequestContext
Copyright © 2020 XIMA MEDIA GmbH. All rights reserved.