Package de.xima.fc.session
Class FRQSession
- All Implemented Interfaces:
Serializable
,AutoCloseable
,ConcurrentMap<Serializable,
,Serializable> Map<Serializable,
Serializable>
public final class FRQSession
extends ConcurrentHashMap<Serializable,Serializable>
implements Map<Serializable,Serializable>, AutoCloseable, Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.concurrent.ConcurrentHashMap
ConcurrentHashMap.KeySetView<K extends Object,
V extends Object> Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
addRequestType
(EFormRequestType requestType) void
close()
com.alibaba.fastjson.JSONObject
Deprecated.long
getId()
long
Gets theprocess ID
of theform record
, if this FRQ session is associated with a form record.long
Deprecated.During a single FRQ session, multiple HTTP requests may be made.getUser()
Deprecated.UsegetUserModel()
instead.Deprecated.UsegetUser()
&IUser.getClientUserGroups(String, Mandant)
instead.com.alibaba.fastjson.JSONObject
Deprecated.org.pac4j.core.profile.CommonProfile
Deprecated.void
init
(IFormRequestContext ctx) boolean
boolean
void
setAnonymize
(boolean anonymize) void
setFormBenutzer
(Benutzer ben) Deprecated.usersetUser(Benutzer)
void
setInProcess
(boolean inProcess) void
void
setRequestType
(EFormRequestType reqType) Deprecated.UsesetRequestTypes(List)
orgetRequestTypes().add()
to add a type.void
setRequestTypes
(List<EFormRequestType> requestTypes) During a single FRQ session, multiple HTTP requests may be made.void
setRequestUrl
(String requestUrl) void
Deprecated.UsesetUserModel(IUser)
instead.void
setUserGroups
(List<BenutzerGruppe> userGroups) Deprecated.UsegetUser()
&IUser.getClientUserGroups(String, Mandant)
instead.void
setUserLdapData
(com.alibaba.fastjson.JSONObject userLdapData) Deprecated.void
setUserModel
(IUser user) void
setUserProfile
(org.pac4j.core.profile.CommonProfile profile) Methods inherited from class java.util.concurrent.ConcurrentHashMap
clear, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, forEach, forEach, forEachEntry, forEachEntry, forEachKey, forEachKey, forEachValue, forEachValue, get, getOrDefault, hashCode, isEmpty, keys, keySet, keySet, mappingCount, merge, newKeySet, newKeySet, put, putAll, putIfAbsent, reduce, reduceEntries, reduceEntries, reduceEntriesToDouble, reduceEntriesToInt, reduceEntriesToLong, reduceKeys, reduceKeys, reduceKeysToDouble, reduceKeysToInt, reduceKeysToLong, reduceToDouble, reduceToInt, reduceToLong, reduceValues, reduceValues, reduceValuesToDouble, reduceValuesToInt, reduceValuesToLong, remove, remove, replace, replace, replaceAll, search, searchEntries, searchKeys, searchValues, size, toString, values
Methods inherited from class java.util.AbstractMap
clone
-
Field Details
-
isAnonymize
protected boolean isAnonymize
-
-
Method Details
-
getId
- Returns:
- the formSessionId
-
getMandantId
public long getMandantId()- Returns:
- The ID of the client to which the form belongs.
-
getClientUuid
- Returns:
- The UUID of the client to which the form belongs.
-
getProjectId
public long getProjectId()- Returns:
- the projectId
-
getFormVersionId
public long getFormVersionId()- Returns:
- the formVersionId
-
getUserModel
-
setUserModel
-
getUserProfile
public org.pac4j.core.profile.CommonProfile getUserProfile() -
setUserProfile
public void setUserProfile(org.pac4j.core.profile.CommonProfile profile) -
getRequestUrl
-
setRequestUrl
-
getRequestTypes
During a single FRQ session, multiple HTTP requests may be made. For example, during the usual lifecycle of an FRQ session, the form is first requested (PROVIDE
,REVIEW
etc.) and subsequentially submitted (PROCESS
). This method returns a list of all request types.- Returns:
- All request types, with the first entry being the first request and the last entry being the most recent request.
-
setRequestTypes
During a single FRQ session, multiple HTTP requests may be made. For example, during the usual lifecycle of an FRQ session, the form is first requested (PROVIDE
,REVIEW
etc.) and subsequentially submitted (PROCESS
). This method returns a list of all request types.- Parameters:
requestTypes
- All request types, with the first entry being the first request and the last entry being the most recent request.
-
getRequestType
Deprecated.- Returns:
- The type of the most recent request that was made.
- See Also:
-
getMostRecentRequestType
- Returns:
- The type of the most recent request that was made.
- See Also:
-
getInitialRequestType
- Returns:
- The type of the original request that started this FRQ session.
- See Also:
-
addRequestType
-
setInProcess
public void setInProcess(boolean inProcess) -
isInProcess
public boolean isInProcess() -
setAnonymize
public void setAnonymize(boolean anonymize) -
isAnonymize
public boolean isAnonymize() -
init
-
createUserDataJSON
public com.alibaba.fastjson.JSONObject createUserDataJSON() -
getProcessId
Gets theprocess ID
of theform record
, if this FRQ session is associated with a form record. When a new form is opened, no form record was created yet.- Returns:
- The process ID of the form record, or the empty string when this session does not have a form record.
-
getLocale
-
setLocale
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
getUser
Deprecated.UsegetUserModel()
instead. -
setUser
Deprecated.UsesetUserModel(IUser)
instead. -
getUserGroups
Deprecated.UsegetUser()
&IUser.getClientUserGroups(String, Mandant)
instead. -
setUserGroups
Deprecated.UsegetUser()
&IUser.getClientUserGroups(String, Mandant)
instead. -
setRequestType
Deprecated.UsesetRequestTypes(List)
orgetRequestTypes().add()
to add a type.Sets the type of the most recent request.- Parameters:
reqType
- Request type to set.
-
getXfcSession
Deprecated. -
getUserLdapData
Deprecated. -
setUserLdapData
Deprecated. -
getFormBenutzer
Deprecated.usergetUser()
- Returns:
- the user for this form-request
-
setFormBenutzer
Deprecated.usersetUser(Benutzer)
-
getUser()