Class MockSession
java.lang.Object
de.hybris.platform.servicelayer.session.impl.DefaultSession
de.hybris.platform.servicelayer.session.MockSession
- All Implemented Interfaces:
Session,Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TgetAttribute(String name) Returns for the given session attribute name the valuevoidsetAttribute(String name, Object value) Sets the given value Object to the Session as attribute with the given nameMethods inherited from class de.hybris.platform.servicelayer.session.impl.DefaultSession
equals, getJaloSession, hashCode, init, removeAttribute, setJaloSession
-
Constructor Details
-
MockSession
public MockSession()
-
-
Method Details
-
getSessionId
- Specified by:
getSessionIdin interfaceSession- Overrides:
getSessionIdin classDefaultSession- Returns:
- the id of the session
-
getAllAttributes
- Specified by:
getAllAttributesin interfaceSession- Overrides:
getAllAttributesin classDefaultSession- Returns:
- a Map with all session attributes
-
getAttribute
Description copied from interface:SessionReturns for the given session attribute name the value- Specified by:
getAttributein interfaceSession- Overrides:
getAttributein classDefaultSession- Parameters:
name- the attribute name- Returns:
nullif no attribute with the given name is stored in the session
-
setAttribute
Description copied from interface:SessionSets the given value Object to the Session as attribute with the given name- Specified by:
setAttributein interfaceSession- Overrides:
setAttributein classDefaultSession- Parameters:
name- the name of the attributevalue- the value to be set
-