added guest support for current users portlet
---------------------------------------------
Key: JBPORTAL-2014
URL:
http://jira.jboss.com/jira/browse/JBPORTAL-2014
Project: JBoss Portal
Issue Type: Patch
Security Level: Public (Everyone can see)
Components: Portal Core, Portal Samples
Affects Versions: 2.6.5 Final
Reporter: Luca Stancapiano
Assigned To: Luca Stancapiano
Fix For: 2.6.5 Final
I added support for guest users into current users portlet. Updates are:
Now you see three rows:
1-number of all users (guest and not)
2- number of logged users
3- list of logged users
I changed org.jboss.portal.core.identity.UserActivity class so:
- EXIT instead of SIGN_OUT. Now UserActivity is also for guest operations
- added a constant GUEST = "guest" to identify a guest operation
- added a field sessionId. It permits to identify a guest operation. UserId is
"guest" for all guests. SessionId is also important for logged users. It
resolves a early bug, because if the same user is on different hosts, they works as the
same user and we monitor one only host
I changed org.jboss.portal.core.identity.UsersActivityStatsService adding a method:
public int getActiveSessionCount(long period);
it returns the number of current session opened
I created a new listener,
org.jboss.portal.core.samples.users.event.PortalSessionEventListener into core-samples and
added it into jboss-service.xml. It catches operations of begin and end of portal
sessions. It works on creation and destroy of sessions and it increase values of
UsersActivityStatsService
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira