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 TypeMethodDescriptionvoidaccess()voidprotected voiddoClearAttributes(Map<String, Object> attributes) getAttribute(String name) getAttribute(String name, int scope) getAttributeMap(int scope) getAttributeNames(int scope) longgetId()longintvoidbooleanbooleanisNew()voidremoveAttribute(String name) voidremoveAttribute(String name, int scope) voidsetAttribute(String name, Object value) voidsetAttribute(String name, Object value, int scope) voidsetMaxInactiveInterval(int interval) voidsetNew(boolean value)
-
Constructor Details
-
MockPortletSession
public MockPortletSession() -
MockPortletSession
-
-
Method Details
-
access
public void access() -
clearAttributes
public void clearAttributes() -
getAttribute
- Specified by:
getAttributein interfacePortletSession
-
getAttribute
- Specified by:
getAttributein interfacePortletSession
-
getAttributeMap
- Specified by:
getAttributeMapin interfacePortletSession
-
getAttributeMap
- Specified by:
getAttributeMapin interfacePortletSession
-
getAttributeNames
- Specified by:
getAttributeNamesin interfacePortletSession
-
getAttributeNames
- Specified by:
getAttributeNamesin interfacePortletSession
-
getCreationTime
public long getCreationTime()- Specified by:
getCreationTimein interfacePortletSession
-
getId
- Specified by:
getIdin interfacePortletSession
-
getLastAccessedTime
public long getLastAccessedTime()- Specified by:
getLastAccessedTimein interfacePortletSession
-
getMaxInactiveInterval
public int getMaxInactiveInterval()- Specified by:
getMaxInactiveIntervalin interfacePortletSession
-
getPortletContext
- Specified by:
getPortletContextin interfacePortletSession
-
invalidate
public void invalidate()- Specified by:
invalidatein interfacePortletSession
-
isInvalid
public boolean isInvalid() -
isNew
public boolean isNew()- Specified by:
isNewin interfacePortletSession
-
removeAttribute
- Specified by:
removeAttributein interfacePortletSession
-
removeAttribute
- Specified by:
removeAttributein interfacePortletSession
-
setAttribute
- Specified by:
setAttributein interfacePortletSession
-
setAttribute
- Specified by:
setAttributein interfacePortletSession
-
setMaxInactiveInterval
public void setMaxInactiveInterval(int interval) - Specified by:
setMaxInactiveIntervalin interfacePortletSession
-
setNew
public void setNew(boolean value) -
doClearAttributes
-