Rena Tsantouli 2009-10-14 11:31:06 +00:00
parent bbdf48a906
commit 082c7f0bcf
1 changed files with 9 additions and 1 deletions

View File

@ -5,6 +5,8 @@ import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Set; import java.util.Set;
import org.gcube.application.framework.accesslogger.library.impl.AccessLogger;
import org.gcube.application.framework.accesslogger.model.LoginToVreAccessLogEntry;
import org.gcube.application.framework.core.cache.CachesManager; import org.gcube.application.framework.core.cache.CachesManager;
import org.gcube.application.framework.core.security.PortalSecurityManager; import org.gcube.application.framework.core.security.PortalSecurityManager;
import org.gcube.application.framework.core.util.SessionConstants; import org.gcube.application.framework.core.util.SessionConstants;
@ -31,6 +33,9 @@ public class ASLSession{
private HashMap<String, Notifier> notifiers; private HashMap<String, Notifier> notifiers;
String scopeName; String scopeName;
// ACCESS LOGGER
AccessLogger accessLogger = AccessLogger.getAccessLogger();
/** /**
* A constructor based on the user and an external ID * A constructor based on the user and an external ID
* @param externalSessionId the external id * @param externalSessionId the external id
@ -204,7 +209,10 @@ public class ASLSession{
this.credential = UserCredential.getCredential(username, scope); this.credential = UserCredential.getCredential(username, scope);
innerSession.clear(); innerSession.clear();
initializeAttributes(); initializeAttributes();
System.out.println("la" + scope);
// ACCESS LOGGER
LoginToVreAccessLogEntry loginEntry = new LoginToVreAccessLogEntry();
accessLogger.logEntry(username, scope, loginEntry);
} }
/** /**