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 TypeMethodDescriptionvoidaddRequestType(EFormRequestType requestType) voidclose()com.alibaba.fastjson.JSONObjectDeprecated.longgetId()longGets theprocess IDof theform record, if this FRQ session is associated with a form record.longDeprecated.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.JSONObjectDeprecated.org.pac4j.core.profile.CommonProfileDeprecated.voidinit(IFormRequestContext ctx) booleanbooleanvoidsetAnonymize(boolean anonymize) voidsetFormBenutzer(Benutzer ben) Deprecated.usersetUser(Benutzer)voidsetInProcess(boolean inProcess) voidvoidsetRequestType(EFormRequestType reqType) Deprecated.UsesetRequestTypes(List)orgetRequestTypes().add()to add a type.voidsetRequestTypes(List<EFormRequestType> requestTypes) During a single FRQ session, multiple HTTP requests may be made.voidsetRequestUrl(String requestUrl) voidDeprecated.UsesetUserModel(IUser)instead.voidsetUserGroups(List<BenutzerGruppe> userGroups) Deprecated.UsegetUser()&IUser.getClientUserGroups(String, Mandant)instead.voidsetUserLdapData(com.alibaba.fastjson.JSONObject userLdapData) Deprecated.voidsetUserModel(IUser user) voidsetUserProfile(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, valuesMethods 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,REVIEWetc.) 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,REVIEWetc.) 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 IDof 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:
closein 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()