6fc99cd7496be821f3f852eb4aa06c71fa522d77
Files Diff
- Added: 11
- Removed: 3
- Renamed: 0
- Modified: 107
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Merge Attribute | 1 | ||
Merge Attribute [nodeName : String, siteName : String] to topologyInfo : TopologyInfo in class org.keycloak.connections.infinispan.DefaultInfinispanConnectionProviderFactory | From | To | |
Move And Inline Method | 1 | ||
Move And Inline Method protected getOrCreateInitializerState() : InitializerState moved from class org.keycloak.models.sessions.infinispan.initializer.BaseCacheInitializer to class org.keycloak.models.sessions.infinispan.initializer.InfinispanCacheInitializer & inlined to protected startLoading() : void | From | To | |
Change Parameter Type | 2 | ||
Change Parameter Type nodeName : String to topologyInfo : TopologyInfo in method public DefaultInfinispanConnectionProvider(cacheManager EmbeddedCacheManager, remoteCacheProvider RemoteCacheProvider, topologyInfo TopologyInfo) in class org.keycloak.connections.infinispan.DefaultInfinispanConnectionProvider | From | To | |
Change Parameter Type sessionsPerSegment : int to ctx : SessionLoader.LoaderContext in method public setWorkerEnvironment(segment int, ctx SessionLoader.LoaderContext, sessionLoader SessionLoader) : void in class org.keycloak.models.sessions.infinispan.initializer.SessionInitializerWorker | From | To | |
Move Method | 1 | ||
Move Method protected generateNodeName() : String from class org.keycloak.connections.infinispan.DefaultInfinispanConnectionProviderFactory to private generateNodeName() : String from class org.keycloak.connections.infinispan.TopologyInfo | From | To | |
Move Attribute | 2 | ||
Move Attribute private sessionsPerSegment : int from class org.keycloak.models.sessions.infinispan.initializer.SessionInitializerWorker to private sessionsPerSegment : int from class org.keycloak.models.sessions.infinispan.initializer.OfflinePersistentUserSessionLoaderContext | From | To | |
Move Attribute private sessionsPerSegment : int from class org.keycloak.models.sessions.infinispan.initializer.SessionInitializerWorker to private sessionsPerSegment : int from class org.keycloak.models.sessions.infinispan.initializer.OfflinePersistentUserSessionLoader | From | To | |
Extract Class | 1 | ||
Extract Class org.keycloak.connections.infinispan.TopologyInfo from class org.keycloak.connections.infinispan.DefaultInfinispanConnectionProviderFactory | From | To | |
Rename Class | 2 | ||
Rename Class org.keycloak.cluster.infinispan.ConcurrencyJDGRemoteCacheTest renamed to org.keycloak.cluster.infinispan.ConcurrencyJDGCachePutTest | From | To | |
Rename Class org.keycloak.cluster.infinispan.ConcurrencyJDGSessionsCacheTest renamed to org.keycloak.cluster.infinispan.ConcurrencyJDGCacheReplaceTest | From | To | |
Merge Parameter | 1 | ||
Merge Parameter [decodedAuthSessionId : String, reencodedAuthSessionId : String] to newAuthSessionId : AuthSessionId in method package reencodeAuthSessionCookie(oldEncodedAuthSessionId String, newAuthSessionId AuthSessionId, realm RealmModel) : void in class org.keycloak.services.managers.AuthenticationSessionManager | From | To | |
Extract Method | 1 | ||
Extract Method protected startLoadingImpl(state InitializerState, ctx SessionLoader.LoaderContext) : void extracted from protected startLoading() : void in class org.keycloak.models.sessions.infinispan.initializer.InfinispanCacheInitializer | From | To | |
Rename Method | 4 | ||
Rename Method public getAuthSessionCookieIds(realm RealmModel) : List<String> renamed to package getAuthSessionCookies(realm RealmModel) : List<String> in class org.keycloak.services.managers.AuthenticationSessionManager | From | To | |
Rename Method public getSessionsCount(session KeycloakSession) : int renamed to public computeLoaderContext(session KeycloakSession) : OfflinePersistentUserSessionLoaderContext in class org.keycloak.models.sessions.infinispan.initializer.OfflinePersistentUserSessionLoader | From | To | |
Rename Method public getSessionsCount(session KeycloakSession) : int renamed to public computeLoaderContext(session KeycloakSession) : RemoteCacheSessionsLoaderContext in class org.keycloak.models.sessions.infinispan.remotestore.RemoteCacheSessionsLoader | From | To | |
Rename Method public getMyAddress(session KeycloakSession) : String renamed to public getTopologyInfo(session KeycloakSession) : TopologyInfo in class org.keycloak.models.sessions.infinispan.util.InfinispanUtil | From | To | |
Rename Variable | 6 | ||
Rename Variable authSessionIds : List<String> to authSessionCookies : List<String> in method public getCurrentAuthenticationSession(realm RealmModel, client ClientModel, tabId String) : AuthenticationSessionModel in class org.keycloak.services.managers.AuthenticationSessionManager | From | To | |
Rename Variable sessionIds : List<String> to sessionCookies : List<String> in method public getUserSessionIfExistsRemotely(asm AuthenticationSessionManager, realm RealmModel) : UserSessionModel in class org.keycloak.services.managers.UserSessionCrossDCManager | From | To | |
Rename Variable authSessionIds : List<String> to authSessionCookies : List<String> in method public getUserSessionFromAuthCookie(realm RealmModel) : UserSessionModel in class org.keycloak.services.managers.AuthenticationSessionManager | From | To | |
Rename Variable authSessionIds : List<String> to authSessionCookies : List<String> in method public getCurrentRootAuthenticationSession(realm RealmModel) : RootAuthenticationSessionModel in class org.keycloak.services.managers.AuthenticationSessionManager | From | To | |
Rename Variable iteration : int to replaceIteration : int in method private replace(topology TopologyInfo, remoteCache RemoteCache<K,SessionEntityWrapper<V>>, lifespanMs long, maxIdleMs long, key K, task SessionUpdateTask<V>) : void in class org.keycloak.models.sessions.infinispan.remotestore.RemoteCacheInvoker | From | To | |
Rename Variable nodeName : String to route : String in method public encodeSessionId(sessionId String) : String in class org.keycloak.models.sessions.infinispan.InfinispanStickySessionEncoderProvider | From | To | |
Change Return Type | 4 | ||
Change Return Type String to TopologyInfo in method public getTopologyInfo(session KeycloakSession) : TopologyInfo in class org.keycloak.models.sessions.infinispan.util.InfinispanUtil | From | To | |
Change Return Type int to RemoteCacheSessionsLoaderContext in method public computeLoaderContext(session KeycloakSession) : RemoteCacheSessionsLoaderContext in class org.keycloak.models.sessions.infinispan.remotestore.RemoteCacheSessionsLoader | From | To | |
Change Return Type SimpleEntry<String,String> to AuthSessionId in method package decodeAuthSessionId(encodedAuthSessionId String) : AuthSessionId in class org.keycloak.services.managers.AuthenticationSessionManager | From | To | |
Change Return Type int to OfflinePersistentUserSessionLoaderContext in method public computeLoaderContext(session KeycloakSession) : OfflinePersistentUserSessionLoaderContext in class org.keycloak.models.sessions.infinispan.initializer.OfflinePersistentUserSessionLoader | From | To | |
Rename Attribute | 4 | ||
Rename Attribute myAddress : String to topologyInfo : TopologyInfo in class org.keycloak.models.sessions.infinispan.changes.sessions.LastSessionRefreshListener | From | To | |
Rename Attribute sessionsPerSegment : int to ctx : SessionLoader.LoaderContext in class org.keycloak.models.sessions.infinispan.initializer.SessionInitializerWorker | From | To | |
Rename Attribute myAddress : String to topologyInfo : TopologyInfo in class org.keycloak.models.sessions.infinispan.remotestore.RemoteCacheSessionListener | From | To | |
Rename Attribute nodeName : String to topologyInfo : TopologyInfo in class org.keycloak.connections.infinispan.DefaultInfinispanConnectionProvider | From | To | |
Change Attribute Type | 4 | ||
Change Attribute Type myAddress : String to topologyInfo : TopologyInfo in class org.keycloak.models.sessions.infinispan.changes.sessions.LastSessionRefreshListener | From | To | |
Change Attribute Type sessionsPerSegment : int to ctx : SessionLoader.LoaderContext in class org.keycloak.models.sessions.infinispan.initializer.SessionInitializerWorker | From | To | |
Change Attribute Type myAddress : String to topologyInfo : TopologyInfo in class org.keycloak.models.sessions.infinispan.remotestore.RemoteCacheSessionListener | From | To | |
Change Attribute Type nodeName : String to topologyInfo : TopologyInfo in class org.keycloak.connections.infinispan.DefaultInfinispanConnectionProvider | From | To | |
Rename Parameter | 5 | ||
Rename Parameter sessionsPerSegment : int to ctx : SessionLoader.LoaderContext in method public setWorkerEnvironment(segment int, ctx SessionLoader.LoaderContext, sessionLoader SessionLoader) : void in class org.keycloak.models.sessions.infinispan.initializer.SessionInitializerWorker | From | To | |
Rename Parameter authSessionId : String to encodedAuthSessionId : String in method package decodeAuthSessionId(encodedAuthSessionId String) : AuthSessionId in class org.keycloak.services.managers.AuthenticationSessionManager | From | To | |
Rename Parameter first : int to segment : int in method public loadSessions(session KeycloakSession, ctx OfflinePersistentUserSessionLoaderContext, segment int) : boolean in class org.keycloak.models.sessions.infinispan.initializer.OfflinePersistentUserSessionLoader | From | To | |
Rename Parameter decodedAuthSessionId : String to oldEncodedAuthSessionId : String in method package reencodeAuthSessionCookie(oldEncodedAuthSessionId String, newAuthSessionId AuthSessionId, realm RealmModel) : void in class org.keycloak.services.managers.AuthenticationSessionManager | From | To | |
Rename Parameter nodeName : String to topologyInfo : TopologyInfo in method public DefaultInfinispanConnectionProvider(cacheManager EmbeddedCacheManager, remoteCacheProvider RemoteCacheProvider, topologyInfo TopologyInfo) in class org.keycloak.connections.infinispan.DefaultInfinispanConnectionProvider | From | To |