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
Kontext einer Formcycle-Nutzersession.- 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()Liefert den (erfolgreich) angemeldeten Benutzer.MandantcurrentMandant()Liefert den aktuell verwendeten Mandanten.voiddispose()booleanequals(Object obj)ELoginContextgetContext()Map<String,FD2Session>getFD2Sessions()Retrieve the FD2Session-Map from the current HTTP-Session, which is inside the XfcSession object.Map<String,String>getFridMapping()Map<String,FRQSession>getFRQSessions()Deprecated.LocalegetLocale()Returns the current session-specific locale setting.StringgetLoginName()StringgetSessionId()StringgetStayLoggedInToken()inthashCode()booleanisBenutzerAuth()Lieferttrue, wenn es einen (erfolgreich) angemeldeten Benutzer gibt.booleanisShowProductUpdatePrompt()voidsetContext(ELoginContext context)voidsetCurrentMandant(Mandant client)voidsetLanguage(String langCode)Setter für sessionabhängige SpracheinstellungvoidsetLocale(Locale loc)voidsetLoginName(String loginName)voidsetSessionId(String sessionId)voidsetShowProductUpdatePrompt(boolean showProductUpdatePrompt)voidsetStayLoggedInToken(String token)StringtoString()voidupdate(Benutzer user)- 
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
- 
currentBenutzer
public Benutzer currentBenutzer()
Liefert den (erfolgreich) angemeldeten Benutzer. 
- 
isBenutzerAuth
public boolean isBenutzerAuth()
Lieferttrue, wenn es einen (erfolgreich) angemeldeten Benutzer gibt. 
- 
currentMandant
public Mandant currentMandant()
Liefert den aktuell verwendeten Mandanten. (Default = Benutzer.getMandant() 
- 
update
public void update(Benutzer user)
 
- 
setCurrentMandant
public void setCurrentMandant(Mandant client)
 
- 
setLanguage
public void setLanguage(String langCode)
Setter für sessionabhängige Spracheinstellung- Parameters:
 langCode- - Sprachkürzel (siehe http://www.loc.gov/standards/iso639-2/englangn.html)- See Also:
 getLocale(),Locale.forLanguageTag(String)
 
- 
setLocale
public void setLocale(Locale loc)
 
- 
getLocale
public Locale getLocale()
Returns the current session-specific locale setting. Defaults toLocale.ENGLISHwhen not set to a different value viasetLocale(Locale).- Returns:
 - The current locale.
 - See Also:
 setLanguage(String)
 
- 
getSessionId
public String getSessionId()
- Returns:
 - the Session id
 
 
- 
setSessionId
public void setSessionId(String sessionId)
- Parameters:
 sessionId- the session Id to set
 
- 
getContext
public ELoginContext getContext()
 
- 
setContext
public void setContext(ELoginContext context)
 
- 
setLoginName
public void setLoginName(String loginName)
 
- 
getLoginName
public String getLoginName()
 
- 
getStayLoggedInToken
public String getStayLoggedInToken()
 
- 
setStayLoggedInToken
public void setStayLoggedInToken(String token)
 
- 
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()
 
- 
getFD2Sessions
public Map<String,FD2Session> getFD2Sessions()
Retrieve the FD2Session-Map from the current HTTP-Session, which is inside the XfcSession object.- Returns:
 - a 
Mapornullif theHttpSessioninside is null 
 
- 
toString
public String toString()
- Overrides:
 toStringin classAbstractMap<Serializable,Serializable>
 
- 
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 
 
 - 
 
 -