Class DefaultSession
java.lang.Object
de.hybris.platform.servicelayer.session.impl.DefaultSession
- All Implemented Interfaces:
Session,Serializable
- Direct Known Subclasses:
MockSession
Default implementation of the session interface.
- Since:
- 4.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanChecks whether given object equals this session by comparing session id's.<T> TgetAttribute(String name) Returns for the given session attribute name the valuefinal inthashCode()Returns the hashcode of this Session determined by it's session id.voidinit(JaloSession jaloSession, ModelService modelService) voidremoveAttribute(String name) Removes the given attribute from the current session.voidsetAttribute(String name, Object value) Sets the given value Object to the Session as attribute with the given namevoidsetJaloSession(JaloSession jaloSession) Deprecated, for removal: This API element is subject to removal in a future version.since ages
-
Constructor Details
-
DefaultSession
public DefaultSession()
-
-
Method Details
-
setAttribute
Description copied from interface:SessionSets the given value Object to the Session as attribute with the given name- Specified by:
setAttributein interfaceSession- Parameters:
name- the name of the attributevalue- the value to be set
-
getAttribute
Description copied from interface:SessionReturns for the given session attribute name the value- Specified by:
getAttributein interfaceSession- Parameters:
name- the attribute name- Returns:
nullif no attribute with the given name is stored in the session
-
getAllAttributes
- Specified by:
getAllAttributesin interfaceSession- Returns:
- a Map with all session attributes
-
getSessionId
- Specified by:
getSessionIdin interfaceSession- Returns:
- the id of the session
-
setJaloSession
Deprecated, for removal: This API element is subject to removal in a future version.since ages -
init
-
getJaloSession
- Returns:
- the
JaloSession
-
equals
Checks whether given object equals this session by comparing session id's. -
hashCode
public final int hashCode()Returns the hashcode of this Session determined by it's session id. -
removeAttribute
Description copied from interface:SessionRemoves the given attribute from the current session. Do nothing if the attribute doesn't exists in the session.- Specified by:
removeAttributein interfaceSession- Parameters:
name- the attribute name
-