Class MockPortletSession
Object
com.liferay.portal.kernel.test.portlet.MockPortletSession
- All Implemented Interfaces:
PortletSession
- Author:
- Dante Wang
-
Field Summary
Fields inherited from interface javax.portlet.PortletSession
APPLICATION_SCOPE, PORTLET_SCOPE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
access()
void
protected void
doClearAttributes
(Map<String, Object> attributes) getAttribute
(String name) getAttribute
(String name, int scope) getAttributeMap
(int scope) getAttributeNames
(int scope) long
getId()
long
int
void
boolean
boolean
isNew()
void
removeAttribute
(String name) void
removeAttribute
(String name, int scope) void
setAttribute
(String name, Object value) void
setAttribute
(String name, Object value, int scope) void
setMaxInactiveInterval
(int interval) void
setNew
(boolean value)
-
Constructor Details
-
MockPortletSession
public MockPortletSession() -
MockPortletSession
-
-
Method Details
-
access
public void access() -
clearAttributes
public void clearAttributes() -
getAttribute
- Specified by:
getAttribute
in interfacePortletSession
-
getAttribute
- Specified by:
getAttribute
in interfacePortletSession
-
getAttributeMap
- Specified by:
getAttributeMap
in interfacePortletSession
-
getAttributeMap
- Specified by:
getAttributeMap
in interfacePortletSession
-
getAttributeNames
- Specified by:
getAttributeNames
in interfacePortletSession
-
getAttributeNames
- Specified by:
getAttributeNames
in interfacePortletSession
-
getCreationTime
public long getCreationTime()- Specified by:
getCreationTime
in interfacePortletSession
-
getId
- Specified by:
getId
in interfacePortletSession
-
getLastAccessedTime
public long getLastAccessedTime()- Specified by:
getLastAccessedTime
in interfacePortletSession
-
getMaxInactiveInterval
public int getMaxInactiveInterval()- Specified by:
getMaxInactiveInterval
in interfacePortletSession
-
getPortletContext
- Specified by:
getPortletContext
in interfacePortletSession
-
invalidate
public void invalidate()- Specified by:
invalidate
in interfacePortletSession
-
isInvalid
public boolean isInvalid() -
isNew
public boolean isNew()- Specified by:
isNew
in interfacePortletSession
-
removeAttribute
- Specified by:
removeAttribute
in interfacePortletSession
-
removeAttribute
- Specified by:
removeAttribute
in interfacePortletSession
-
setAttribute
- Specified by:
setAttribute
in interfacePortletSession
-
setAttribute
- Specified by:
setAttribute
in interfacePortletSession
-
setMaxInactiveInterval
public void setMaxInactiveInterval(int interval) - Specified by:
setMaxInactiveInterval
in interfacePortletSession
-
setNew
public void setNew(boolean value) -
doClearAttributes
-