«
Précédent
|
Suivant
»
Révision 675e977d
Ajouté par Remy Menard il y a presque 11 ans
- ID 675e977d6baa946d508d77b8721408cbe9155a8e
- Parent 8fd1d584
ETa/EpcisPHI/src/main/java/fr/unicaen/iota/epcisphi/utils/MapSessions.java | ||
---|---|---|
}
|
||
public static HashMap<String, InterfaceHelper> APMSessions = new HashMap<String, InterfaceHelper>();
|
||
|
||
public static synchronized InterfaceHelper getAPMSession(String sessionId, String ownerId) {
|
||
if (APMSessions.containsKey(sessionId)) {
|
||
return APMSessions.get(sessionId);
|
||
public static synchronized InterfaceHelper getAPMSession(String userId, String ownerId) {
|
||
if (APMSessions.containsKey(userId)) {
|
||
return APMSessions.get(userId);
|
||
} else {
|
||
InterfaceHelper IH = new InterfaceHelper(ownerId);
|
||
APMSessions.put(sessionId, IH);
|
||
APMSessions.put(userId, IH);
|
||
return IH;
|
||
}
|
||
}
|
||
|
||
public static synchronized void releaseSession(String sessionId) {
|
||
APMSessions.remove(sessionId);
|
||
public static synchronized void releaseSession(String userId) {
|
||
APMSessions.remove(userId);
|
||
}
|
||
|
||
public static synchronized void init() {
|
Formats disponibles : Unified diff
Version 2.1
- a few bugs fixed!
- uses the new DS events
- improves the session management
- the account creation by the web interface adds access policies to
the interface ("admin" policies), this is always done even if a
corresponding account exists in the LDAP directory
- simplifies the service
- upgrades Apache Tomcat to 7.0.42