From: Thorsten B. <t_b...@us...> - 2006-05-06 19:34:41
|
Update of /cvsroot/elateportal/elatePortal/api/src/de/elatePortal In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25655/api/src/de/elatePortal Modified Files: ElatePortalServices.java Log Message: feature: refresh navigations after course enrollment without logout/login Index: ElatePortalServices.java =================================================================== RCS file: /cvsroot/elateportal/elatePortal/api/src/de/elatePortal/ElatePortalServices.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ElatePortalServices.java 30 Mar 2006 00:26:54 -0000 1.1 +++ ElatePortalServices.java 6 May 2006 19:34:38 -0000 1.2 @@ -21,6 +21,10 @@ */ package de.elatePortal; +import java.util.Collections; +import java.util.HashSet; +import java.util.Set; + import de.elatePortal.components.core.userregistration.UserRegistrationManager; import de.elatePortal.log.Logger; import de.elatePortal.om.CourseManager; @@ -44,12 +48,14 @@ private UserRegistrationManager userRegistrationManager; private CourseManager courseManager; + private Set<String> refreshNavigations; + /** * */ public ElatePortalServices( ) { -// this.services = services; instance = this; + refreshNavigations = Collections.synchronizedSet( new HashSet<String>() ); } @@ -114,5 +120,16 @@ this.courseManager = courseManager; } + + public void setRefreshNavigations( String login ){ + if( login != null ) + refreshNavigations.add( login ); + } + + public boolean isRefreshNavigations( String login ){ + boolean ret = refreshNavigations.contains( login ); + refreshNavigations.remove( login ); + return ret; + } } |