Package de.xima.fc.session
Class XfcSession
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<Serializable,Serializable>
-
- de.xima.fc.session.XfcSession
-
- All Implemented Interfaces:
Serializable,Cloneable,Map<Serializable,Serializable>
public final class XfcSession extends HashMap<Serializable,Serializable> implements Serializable
Context of a backend user session.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
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>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description BenutzercurrentBenutzer()Deprecated.The (backend) user is no longer saved in this session but rather in the generalHttpSession.MandantcurrentMandant()Deprecated.The client is no longer part of the request.voiddispose()booleanequals(Object obj)ELoginContextgetContext()Deprecated.Map<String,FD2Session>getFD2Sessions()Deprecated.FD2Sessions are no longer necessary as they are integrated via JSF.Map<String,String>getFridMapping()Map<String,FRQSession>getFRQSessions()Deprecated.LocalegetLocale()Deprecated.The locale is now determined by the user profile.StringgetLoginName()Deprecated.UsegetUser()instead to get details about the userStringgetSessionId()StringgetStayLoggedInToken()Deprecated.Use AutoLoginHelper#readCookie(HttpServletRequest) instead.IUsergetUser()Deprecated.Don't use! This is method only exists for compatibility reasons.inthashCode()booleanisBenutzerAuth()Deprecated.The (backend) user is no longer saved in this session but rather in the generalHttpSession.booleanisShowProductUpdatePrompt()voidsetContext(ELoginContext context)Deprecated.voidsetCurrentMandant(Mandant client)Deprecated.The client is no longer part of the request.voidsetLanguage(String langCode)Deprecated.The locale is now determined by the user profile.voidsetLocale(Locale loc)Deprecated.The locale is now determined by the user profile.voidsetLoginName(String loginName)Deprecated.UsegetUser()instead to get details about the uservoidsetSessionId(String sessionId)voidsetShowProductUpdatePrompt(boolean showProductUpdatePrompt)voidsetStayLoggedInToken(String token)Deprecated.Use AutoLoginHelper#readCookie(HttpServletRequest) instead.StringtoString()voidupdate(Benutzer user)Deprecated.-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
-
-
-
Method Detail
-
getSessionId
public String getSessionId()
- Returns:
- the Session id
-
setSessionId
public void setSessionId(String sessionId)
- Parameters:
sessionId- the session Id to set
-
isShowProductUpdatePrompt
public boolean isShowProductUpdatePrompt()
-
setShowProductUpdatePrompt
public void setShowProductUpdatePrompt(boolean showProductUpdatePrompt)
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfaceMap<Serializable,Serializable>- Overrides:
equalsin classAbstractMap<Serializable,Serializable>
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceMap<Serializable,Serializable>- Overrides:
hashCodein classAbstractMap<Serializable,Serializable>
-
dispose
public void dispose()
-
toString
public String toString()
- Overrides:
toStringin classAbstractMap<Serializable,Serializable>
-
getUser
@Deprecated public IUser getUser()
Deprecated.Don't use! This is method only exists for compatibility reasons. The user is now stored in the generalHttpSession.
-
isBenutzerAuth
@Deprecated public boolean isBenutzerAuth()
Deprecated.The (backend) user is no longer saved in this session but rather in the generalHttpSession.Returns whether or not the user has been authenticated and isn't anonymous.
-
getFD2Sessions
@Deprecated public Map<String,FD2Session> getFD2Sessions()
Deprecated.FD2Sessions are no longer necessary as they are integrated via JSF.Retrieve the FD2Session-Map from the current HTTP-Session, which is inside the XfcSession object.- Returns:
- a
Mapornullif theHttpSessioninside is null
-
getStayLoggedInToken
@Deprecated public String getStayLoggedInToken()
Deprecated.Use AutoLoginHelper#readCookie(HttpServletRequest) instead.
-
setStayLoggedInToken
@Deprecated public void setStayLoggedInToken(String token)
Deprecated.Use AutoLoginHelper#readCookie(HttpServletRequest) instead.
-
getFRQSessions
@Deprecated public Map<String,FRQSession> getFRQSessions()
Deprecated.Retrieve the FRQSession-Map from the current HTTP-Session, which is inside the XfcSession object.- Returns:
- a
Mapornullif theHttpSessioninside is null
-
getLoginName
@Deprecated public String getLoginName()
Deprecated.UsegetUser()instead to get details about the user
-
setLoginName
@Deprecated public void setLoginName(String loginName)
Deprecated.UsegetUser()instead to get details about the user
-
currentBenutzer
@Deprecated public Benutzer currentBenutzer()
Deprecated.The (backend) user is no longer saved in this session but rather in the generalHttpSession.
-
currentMandant
@Deprecated public Mandant currentMandant()
Deprecated.The client is no longer part of the request.
-
update
@Deprecated public void update(Benutzer user)
Deprecated.
-
setCurrentMandant
@Deprecated public void setCurrentMandant(Mandant client)
Deprecated.The client is no longer part of the request.
-
setLanguage
@Deprecated public void setLanguage(String langCode)
Deprecated.The locale is now determined by the user profile.
-
setLocale
@Deprecated public void setLocale(Locale loc)
Deprecated.The locale is now determined by the user profile.
-
getLocale
@Deprecated public Locale getLocale()
Deprecated.The locale is now determined by the user profile.
-
getContext
@Deprecated public ELoginContext getContext()
Deprecated.
-
setContext
@Deprecated public void setContext(ELoginContext context)
Deprecated.
-
-