Skip to content

Commit

Permalink
Merge pull request #880 from lashinijay/feature-remove-spring-api-gov…
Browse files Browse the repository at this point in the history
…ernance

[Spring Cleanup] Remove spring dependency from governance API user endpoint
  • Loading branch information
lashinijay authored Dec 12, 2024
2 parents 2630019 + 94b8f26 commit ae52fce
Show file tree
Hide file tree
Showing 10 changed files with 152 additions and 52 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.

0 comments on commit ae52fce

Please sign in to comment.