test_class.file: src/core/services-impl/src/test/java/it/geosolutions/geostore/services/InMemoryUserSessionServiceImplTest.java
test_class.identifier: InMemoryUserSessionServiceImplTest
test_class.superclass: extends ServiceTestBase
test_case.body: @Test
      public void testInitialization() {
      	InMemoryUserSessionServiceImpl service = new InMemoryUserSessionServiceImpl();
      	service.setCleanUpSeconds(500);
      	assertTrue(true);
      }
test_case.class_method_signature: InMemoryUserSessionServiceImplTest.testInitialization()
test_case.full_signature: @Test public void testInitialization()
test_case.identifier: testInitialization
test_case.invocations: setCleanUpSeconds assertTrue
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testInitialization()
focal_class.declarator: sessions = new ConcurrentHashMap<String, UserSession>()
focal_class.modifier: private
focal_class.original_string: private Map<String, UserSession> sessions = new ConcurrentHashMap<String, UserSession>();
focal_class.type: Map<String, UserSession>
focal_class.var_name: sessions
focal_class.declarator: cleanUpSeconds = 60
focal_class.modifier: private
focal_class.original_string: private int cleanUpSeconds = 60;
focal_class.type: int
focal_class.var_name: cleanUpSeconds
focal_class.declarator: scheduler = Executors
              .newScheduledThreadPool(1)
focal_class.modifier: private final
focal_class.original_string: private final ScheduledExecutorService scheduler = Executors
              .newScheduledThreadPool(1);
focal_class.type: ScheduledExecutorService
focal_class.var_name: scheduler
focal_class.declarator: evictionTask = new Runnable() {
          @Override
          public void run() {
              for(String sessionId : sessions.keySet()) {
                  UserSession session = sessions.get(sessionId);
                  if(session.isExpired()) {
                      removeSession(sessionId);
                  }
              }
          }
      }
focal_class.modifier: private
focal_class.original_string: private Runnable evictionTask = new Runnable() {
          @Override
          public void run() {
              for(String sessionId : sessions.keySet()) {
                  UserSession session = sessions.get(sessionId);
                  if(session.isExpired()) {
                      removeSession(sessionId);
                  }
              }
          }
      };
focal_class.type: Runnable
focal_class.var_name: evictionTask
focal_class.file: src/core/services-impl/src/main/java/it/geosolutions/geostore/services/InMemoryUserSessionServiceImpl.java
focal_class.identifier: InMemoryUserSessionServiceImpl
focal_class.interfaces: implements UserSessionService
focal_class.class_method_signature: InMemoryUserSessionServiceImpl.InMemoryUserSessionServiceImpl()
focal_class.full_signature: public  InMemoryUserSessionServiceImpl()
focal_class.identifier: InMemoryUserSessionServiceImpl
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  InMemoryUserSessionServiceImpl()
focal_class.class_method_signature: InMemoryUserSessionServiceImpl.setCleanUpSeconds(int cleanUpSeconds)
focal_class.full_signature: public void setCleanUpSeconds(int cleanUpSeconds)
focal_class.identifier: setCleanUpSeconds
focal_class.modifiers: public
focal_class.parameters: (int cleanUpSeconds)
focal_class.return: void
focal_class.signature: void setCleanUpSeconds(int cleanUpSeconds)
focal_class.class_method_signature: InMemoryUserSessionServiceImpl.getUserData(String sessionId)
focal_class.full_signature: @Override public User getUserData(String sessionId)
focal_class.identifier: getUserData
focal_class.modifiers: @Override public
focal_class.parameters: (String sessionId)
focal_class.return: User
focal_class.signature: User getUserData(String sessionId)
focal_class.class_method_signature: InMemoryUserSessionServiceImpl.registerNewSession(String sessionId, UserSession session)
focal_class.full_signature: @Override public void registerNewSession(String sessionId, UserSession session)
focal_class.identifier: registerNewSession
focal_class.modifiers: @Override public
focal_class.parameters: (String sessionId, UserSession session)
focal_class.return: void
focal_class.signature: void registerNewSession(String sessionId, UserSession session)
focal_class.class_method_signature: InMemoryUserSessionServiceImpl.registerNewSession(UserSession session)
focal_class.full_signature: @Override public String registerNewSession(UserSession session)
focal_class.identifier: registerNewSession
focal_class.modifiers: @Override public
focal_class.parameters: (UserSession session)
focal_class.return: String
focal_class.signature: String registerNewSession(UserSession session)
focal_class.class_method_signature: InMemoryUserSessionServiceImpl.createSessionId()
focal_class.full_signature: private String createSessionId()
focal_class.identifier: createSessionId
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String createSessionId()
focal_class.class_method_signature: InMemoryUserSessionServiceImpl.removeSession(String sessionId)
focal_class.full_signature: @Override public void removeSession(String sessionId)
focal_class.identifier: removeSession
focal_class.modifiers: @Override public
focal_class.parameters: (String sessionId)
focal_class.return: void
focal_class.signature: void removeSession(String sessionId)
focal_class.class_method_signature: InMemoryUserSessionServiceImpl.removeAllSessions()
focal_class.full_signature: @Override public void removeAllSessions()
focal_class.identifier: removeAllSessions
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void removeAllSessions()
focal_class.class_method_signature: InMemoryUserSessionServiceImpl.isOwner(String sessionId, Object owner)
focal_class.full_signature: public boolean isOwner(String sessionId, Object owner)
focal_class.identifier: isOwner
focal_class.modifiers: public
focal_class.parameters: (String sessionId, Object owner)
focal_class.return: boolean
focal_class.signature: boolean isOwner(String sessionId, Object owner)
focal_class.class_method_signature: InMemoryUserSessionServiceImpl.refreshSession(String sessionId, String refreshToken)
focal_class.full_signature: @Override public UserSession refreshSession(String sessionId, String refreshToken)
focal_class.identifier: refreshSession
focal_class.modifiers: @Override public
focal_class.parameters: (String sessionId, String refreshToken)
focal_class.return: UserSession
focal_class.signature: UserSession refreshSession(String sessionId, String refreshToken)
focal_class.class_method_signature: InMemoryUserSessionServiceImpl.getRefreshToken(String sessionId)
focal_class.full_signature: @Override public String getRefreshToken(String sessionId)
focal_class.identifier: getRefreshToken
focal_class.modifiers: @Override public
focal_class.parameters: (String sessionId)
focal_class.return: String
focal_class.signature: String getRefreshToken(String sessionId)
focal_method.body: public void setCleanUpSeconds(int cleanUpSeconds) {
          this.cleanUpSeconds = cleanUpSeconds;
      }
focal_method.class_method_signature: InMemoryUserSessionServiceImpl.setCleanUpSeconds(int cleanUpSeconds)
focal_method.full_signature: public void setCleanUpSeconds(int cleanUpSeconds)
focal_method.identifier: setCleanUpSeconds
focal_method.modifiers: public
focal_method.parameters: (int cleanUpSeconds)
focal_method.return: void
focal_method.signature: void setCleanUpSeconds(int cleanUpSeconds)