From 368d6d4dbd78e46b65f4258f98b505003507260c Mon Sep 17 00:00:00 2001 From: NipuniBhagya Date: Sat, 26 Oct 2024 18:38:13 +0530 Subject: [PATCH] Remove Spring dependencies in user session management API --- .../pom.xml | 9 +-- .../common/factory/OSGIServiceFactory.java | 52 ------------- .../RealmServiceOSGIServiceFactory.java | 52 ------------- .../util/SessionManagementServiceHolder.java | 38 +++++---- .../pom.xml | 9 +-- .../rest/api/user/session/v1/MeApi.java | 28 ++++--- .../rest/api/user/session/v1/SessionsApi.java | 28 ++++--- .../rest/api/user/session/v1/UserIdApi.java | 28 ++++--- .../v1/factories/MeApiServiceFactory.java | 17 +++- .../factories/SessionsApiServiceFactory.java | 31 +++++--- .../v1/factories/UserIdApiServiceFactory.java | 17 +++- .../v1/core/SessionManagementService.java | 30 +++++--- .../SessionManagementServiceFactory.java | 77 +++++++++++++++++++ .../session/v1/impl/MeApiServiceImpl.java | 18 +++-- .../v1/impl/SessionsApiServiceImpl.java | 32 +++++--- .../session/v1/impl/UserIdApiServiceImpl.java | 18 +++-- .../META-INF/cxf/session-user-v1-cxf.xml | 34 -------- 17 files changed, 269 insertions(+), 249 deletions(-) delete mode 100644 components/org.wso2.carbon.identity.api.user.session/org.wso2.carbon.identity.api.user.session.common/src/main/java/org/wso2/carbon/identity/api/user/session/common/factory/OSGIServiceFactory.java delete mode 100644 components/org.wso2.carbon.identity.api.user.session/org.wso2.carbon.identity.api.user.session.common/src/main/java/org/wso2/carbon/identity/api/user/session/common/factory/RealmServiceOSGIServiceFactory.java create mode 100644 components/org.wso2.carbon.identity.api.user.session/org.wso2.carbon.identity.api.user.session.v1/src/main/java/org/wso2/carbon/identity/rest/api/user/session/v1/factories/SessionManagementServiceFactory.java delete mode 100644 components/org.wso2.carbon.identity.api.user.session/org.wso2.carbon.identity.api.user.session.v1/src/main/resources/META-INF/cxf/session-user-v1-cxf.xml diff --git a/components/org.wso2.carbon.identity.api.user.session/org.wso2.carbon.identity.api.user.session.common/pom.xml b/components/org.wso2.carbon.identity.api.user.session/org.wso2.carbon.identity.api.user.session.common/pom.xml index 8227c4fb0..076350b03 100644 --- a/components/org.wso2.carbon.identity.api.user.session/org.wso2.carbon.identity.api.user.session.common/pom.xml +++ b/components/org.wso2.carbon.identity.api.user.session/org.wso2.carbon.identity.api.user.session.common/pom.xml @@ -1,8 +1,8 @@ - - - - - - - - - - - - -