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
-
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
-
getUserModel
public IUser getUserModel()
-
setUserModel
public void setUserModel(IUser user)
-
getUserProfile
public org.pac4j.core.profile.CommonProfile getUserProfile()
-
setUserProfile
public void setUserProfile(org.pac4j.core.profile.CommonProfile profile)
-
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
-
getUser
@Deprecated public Benutzer getUser()
Deprecated.UsegetUserModel()
instead.
-
setUser
@Deprecated public void setUser(Benutzer formUser)
Deprecated.UsesetUserModel(IUser)
instead.
-
getUserGroups
@Deprecated public List<BenutzerGruppe> getUserGroups()
Deprecated.UsegetUser()
&IUser.getClientUserGroups(String, Mandant)
instead.
-
setUserGroups
@Deprecated public void setUserGroups(List<BenutzerGruppe> userGroups)
Deprecated.UsegetUser()
&IUser.getClientUserGroups(String, Mandant)
instead.
-
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)
-
-