Skip to content

Commit

Permalink
[Spring Cleanup] Remove spring dependency from governance API user en…
Browse files Browse the repository at this point in the history
…dpoint (#908)

* Remove spring dependency from governance API user
endpoint

* Remove spring dependency from governance API user recovery
endpoint
  • Loading branch information
lashinijay authored Jan 17, 2025
1 parent 0cd8cbe commit 4d27ea5
Show file tree
Hide file tree
Showing 18 changed files with 266 additions and 99 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,11 +202,6 @@
<artifactId>cxf-rt-rs-service-description</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-jaxrs</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,31 @@
/*
* Copyright (c) 2020-2024, WSO2 LLC. (http://www.wso2.com).
*
* WSO2 LLC. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.wso2.carbon.identity.user.endpoint.factories;

import org.wso2.carbon.identity.user.endpoint.IntrospectCodeApiService;
import org.wso2.carbon.identity.user.endpoint.impl.IntrospectCodeApiServiceImpl;

public class IntrospectCodeApiServiceFactory {

private final static IntrospectCodeApiService service = new IntrospectCodeApiServiceImpl();
private static final IntrospectCodeApiService SERVICE = new IntrospectCodeApiServiceImpl();

public static IntrospectCodeApiService getIntrospectCodeApi()
{
return service;
return SERVICE;
}
}
Original file line number Diff line number Diff line change
@@ -1,14 +1,31 @@
/*
* Copyright (c) 2020-2024, WSO2 LLC. (http://www.wso2.com).
*
* WSO2 LLC. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.wso2.carbon.identity.user.endpoint.factories;

import org.wso2.carbon.identity.user.endpoint.LiteApiService;
import org.wso2.carbon.identity.user.endpoint.impl.LiteApiServiceImpl;

public class LiteApiServiceFactory {

private final static LiteApiService service = new LiteApiServiceImpl();
private static final LiteApiService SERVICE = new LiteApiServiceImpl();

public static LiteApiService getLiteApi()
{
return service;
return SERVICE;
}
}
Original file line number Diff line number Diff line change
@@ -1,14 +1,31 @@
/*
* Copyright (c) 2016-2024, WSO2 LLC. (http://www.wso2.com).
*
* WSO2 LLC. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.wso2.carbon.identity.user.endpoint.factories;

import org.wso2.carbon.identity.user.endpoint.MeApiService;
import org.wso2.carbon.identity.user.endpoint.impl.MeApiServiceImpl;

public class MeApiServiceFactory {

private final static MeApiService service = new MeApiServiceImpl();
private static final MeApiService SERVICE = new MeApiServiceImpl();

public static MeApiService getMeApi()
{
return service;
return SERVICE;
}
}
Original file line number Diff line number Diff line change
@@ -1,14 +1,31 @@
/*
* Copyright (c) 2018-2024, WSO2 LLC. (http://www.wso2.com).
*
* WSO2 LLC. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.wso2.carbon.identity.user.endpoint.factories;

import org.wso2.carbon.identity.user.endpoint.PiInfoApiService;
import org.wso2.carbon.identity.user.endpoint.impl.PiInfoApiServiceImpl;

public class PiInfoApiServiceFactory {

private final static PiInfoApiService service = new PiInfoApiServiceImpl();
private static final PiInfoApiService SERVICE = new PiInfoApiServiceImpl();

public static PiInfoApiService getPiInfoApi()
{
return service;
return SERVICE;
}
}
Original file line number Diff line number Diff line change
@@ -1,14 +1,31 @@
/*
* Copyright (c) 2016-2024, WSO2 LLC. (http://www.wso2.com).
*
* WSO2 LLC. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.wso2.carbon.identity.user.endpoint.factories;

import org.wso2.carbon.identity.user.endpoint.ResendCodeApiService;
import org.wso2.carbon.identity.user.endpoint.impl.ResendCodeApiServiceImpl;

public class ResendCodeApiServiceFactory {

private final static ResendCodeApiService service = new ResendCodeApiServiceImpl();
private static final ResendCodeApiService SERVICE = new ResendCodeApiServiceImpl();

public static ResendCodeApiService getResendCodeApi()
{
return service;
return SERVICE;
}
}
Original file line number Diff line number Diff line change
@@ -1,14 +1,31 @@
/*
* Copyright (c) 2018-2024, WSO2 LLC. (http://www.wso2.com).
*
* WSO2 LLC. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.wso2.carbon.identity.user.endpoint.factories;

import org.wso2.carbon.identity.user.endpoint.UpdateUsernameApiService;
import org.wso2.carbon.identity.user.endpoint.impl.UpdateUsernameApiServiceImpl;

public class UpdateUsernameApiServiceFactory {

private final static UpdateUsernameApiService service = new UpdateUsernameApiServiceImpl();
private static final UpdateUsernameApiService SERVICE = new UpdateUsernameApiServiceImpl();

public static UpdateUsernameApiService getUpdateUsernameApi()
{
return service;
return SERVICE;
}
}
Original file line number Diff line number Diff line change
@@ -1,14 +1,31 @@
/*
* Copyright (c) 2016-2024, WSO2 LLC. (http://www.wso2.com).
*
* WSO2 LLC. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.wso2.carbon.identity.user.endpoint.factories;

import org.wso2.carbon.identity.user.endpoint.ValidateCodeApiService;
import org.wso2.carbon.identity.user.endpoint.impl.ValidateCodeApiServiceImpl;

public class ValidateCodeApiServiceFactory {

private final static ValidateCodeApiService service = new ValidateCodeApiServiceImpl();
private static final ValidateCodeApiService SERVICE = new ValidateCodeApiServiceImpl();

public static ValidateCodeApiService getValidateCodeApi()
{
return service;
return SERVICE;
}
}
Original file line number Diff line number Diff line change
@@ -1,14 +1,31 @@
/*
* Copyright (c) 2018-2024, WSO2 LLC. (http://www.wso2.com).
*
* WSO2 LLC. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.wso2.carbon.identity.user.endpoint.factories;

import org.wso2.carbon.identity.user.endpoint.ValidateUsernameApiService;
import org.wso2.carbon.identity.user.endpoint.impl.ValidateUsernameApiServiceImpl;

public class ValidateUsernameApiServiceFactory {

private final static ValidateUsernameApiService service = new ValidateUsernameApiServiceImpl();
private static final ValidateUsernameApiService SERVICE = new ValidateUsernameApiServiceImpl();

public static ValidateUsernameApiService getValidateUsernameApi()
{
return service;
return SERVICE;
}
}

This file was deleted.

5 changes: 0 additions & 5 deletions components/org.wso2.carbon.identity.api.user.recovery/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,6 @@
<artifactId>cxf-rt-rs-service-description</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.ws.rs</groupId>
<artifactId>javax.ws.rs-api</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,31 @@
/*
* Copyright (c) 2018-2024, WSO2 LLC. (http://www.wso2.com).
*
* WSO2 LLC. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.wso2.carbon.identity.recovery.endpoint.factories;

import org.wso2.carbon.identity.recovery.endpoint.CaptchaApiService;
import org.wso2.carbon.identity.recovery.endpoint.impl.CaptchaApiServiceImpl;

public class CaptchaApiServiceFactory {

private final static CaptchaApiService service = new CaptchaApiServiceImpl();
private final static CaptchaApiService SERVICE = new CaptchaApiServiceImpl();

public static CaptchaApiService getCaptchaApi()
{
return service;
return SERVICE;
}
}
Original file line number Diff line number Diff line change
@@ -1,14 +1,31 @@
/*
* Copyright (c) 2016-2024, WSO2 LLC. (http://www.wso2.com).
*
* WSO2 LLC. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.wso2.carbon.identity.recovery.endpoint.factories;

import org.wso2.carbon.identity.recovery.endpoint.ClaimsApiService;
import org.wso2.carbon.identity.recovery.endpoint.impl.ClaimsApiServiceImpl;

public class ClaimsApiServiceFactory {

private final static ClaimsApiService service = new ClaimsApiServiceImpl();
private final static ClaimsApiService SERVICE = new ClaimsApiServiceImpl();

public static ClaimsApiService getClaimsApi()
{
return service;
return SERVICE;
}
}
Loading

0 comments on commit 4d27ea5

Please sign in to comment.