Java Code Examples for javax.portlet.PortletSession#getCreationTime()
The following examples show how to use
javax.portlet.PortletSession#getCreationTime() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Utils.java From portals-pluto with Apache License 2.0 | 5 votes |
public boolean checkEqualSessions(PortletSession injectedPortletSession, PortletSession requestSession){ if(injectedPortletSession.equals(requestSession)){ return true; } if(checkEqualEnumeration(injectedPortletSession.getAttributeNames(), requestSession.getAttributeNames()) && injectedPortletSession.getCreationTime()==requestSession.getCreationTime() && injectedPortletSession.getLastAccessedTime()==requestSession.getLastAccessedTime() && injectedPortletSession.getMaxInactiveInterval()==requestSession.getMaxInactiveInterval() && injectedPortletSession.getId()==requestSession.getId() && injectedPortletSession.getAttributeMap().equals(requestSession.getAttributeMap())){ return true; } else { return false; } }