Package de.xima.fc.session
Class FRQSession
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.concurrent.ConcurrentHashMap<Serializable,Serializable>
-
- de.xima.fc.session.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:
- Serialized Form
-
-
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 Modifier and Type Field Description protected boolean
isAnonymize
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addRequestType(EFormRequestType requestType)
void
close()
com.alibaba.fastjson.JSONObject
createUserDataJSON()
UUID
getClientUuid()
Benutzer
getFormBenutzer()
Deprecated.usergetUser()
long
getFormVersionId()
String
getId()
EFormRequestType
getInitialRequestType()
Locale
getLocale()
long
getMandantId()
EFormRequestType
getMostRecentRequestType()
long
getProjectId()
EFormRequestType
getRequestType()
Deprecated.List<EFormRequestType>
getRequestTypes()
During a single FRQ session, multiple HTTP requests may be made.String
getRequestUrl()
Benutzer
getUser()
List<BenutzerGruppe>
getUserGroups()
com.alibaba.fastjson.JSONObject
getUserLdapData()
Deprecated.org.pac4j.core.profile.CommonProfile
getUserProfile()
XfcSession
getXfcSession()
Deprecated.void
init(IFormRequestContext ctx)
boolean
isAnonymize()
boolean
isInProcess()
void
setAnonymize(boolean anonymize)
void
setFormBenutzer(Benutzer ben)
Deprecated.usersetUser(Benutzer)
void
setInProcess(boolean inProcess)
void
setLocale(Locale locale)
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
setUser(Benutzer formUser)
void
setUserGroups(List<BenutzerGruppe> userGroups)
void
setUserLdapData(com.alibaba.fastjson.JSONObject userLdapData)
Deprecated.void
setUserProfile(org.pac4j.core.profile.CommonProfile formProfile)
-
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
-
-
-
-
Method Detail
-
getId
public String getId()
- Returns:
- the formSessionId
-
getMandantId
public long getMandantId()
- Returns:
- The ID of the client to which the form belongs.
-
getClientUuid
public UUID 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
-
getUser
public Benutzer getUser()
-
setUser
public void setUser(Benutzer formUser)
-
getUserGroups
public List<BenutzerGruppe> getUserGroups()
-
setUserGroups
public void setUserGroups(List<BenutzerGruppe> userGroups)
-
getUserProfile
public org.pac4j.core.profile.CommonProfile getUserProfile()
-
setUserProfile
public void setUserProfile(org.pac4j.core.profile.CommonProfile formProfile)
-
getRequestUrl
public String getRequestUrl()
-
setRequestUrl
public void setRequestUrl(String requestUrl)
-
getRequestTypes
public List<EFormRequestType> 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
public void setRequestTypes(List<EFormRequestType> requestTypes)
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 public EFormRequestType getRequestType()
Deprecated.- Returns:
- The type of the most recent request that was made.
- See Also:
getInitialRequestType()
,getRequestTypes()
-
getMostRecentRequestType
public EFormRequestType getMostRecentRequestType()
- Returns:
- The type of the most recent request that was made.
- See Also:
getRequestTypes()
-
getInitialRequestType
public EFormRequestType getInitialRequestType()
- Returns:
- The type of the original request that started this FRQ session.
- See Also:
getRequestTypes()
-
addRequestType
public void addRequestType(EFormRequestType requestType)
-
setInProcess
public void setInProcess(boolean inProcess)
-
isInProcess
public boolean isInProcess()
-
setAnonymize
public void setAnonymize(boolean anonymize)
-
isAnonymize
public boolean isAnonymize()
-
init
public void init(IFormRequestContext ctx)
-
createUserDataJSON
public com.alibaba.fastjson.JSONObject createUserDataJSON()
-
getLocale
public Locale getLocale()
-
setLocale
public void setLocale(Locale locale)
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
-
setRequestType
@Deprecated public void setRequestType(EFormRequestType reqType)
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 public XfcSession getXfcSession()
Deprecated.
-
getUserLdapData
@Deprecated public com.alibaba.fastjson.JSONObject getUserLdapData()
Deprecated.
-
setUserLdapData
@Deprecated public void setUserLdapData(com.alibaba.fastjson.JSONObject userLdapData)
Deprecated.
-
getFormBenutzer
@Deprecated public Benutzer getFormBenutzer()
Deprecated.usergetUser()
- Returns:
- the user for this form-request
-
setFormBenutzer
@Deprecated public void setFormBenutzer(Benutzer ben)
Deprecated.usersetUser(Benutzer)
-
-