myrle-krantz closed pull request #4: Updating package names.
URL: https://github.com/apache/fineract-cn-permitted-feign-client/pull/4
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/README.md b/README.md
index 6df960f..ef1e068 100644
--- a/README.md
+++ b/README.md
@@ -1,8 +1,6 @@
 # Apache Fineract CN Permitted Feign Client Library
 
-[![Join the chat at 
https://gitter.im/mifos-initiative/mifos.io](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/mifos-initiative/mifos.io?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
-
-This project provides secured access to other microservices via Feign. For 
this it uses anubis and identity to provide refresh and access tokens 
transparently.
+This project provides secured access to other services via Feign. For this it 
uses anubis and identity to provide refresh and access tokens transparently.
 
 ## Abstract
 Apache Fineract CN is an application framework for digital financial services, 
a system to support nationwide and cross-national financial transactions and 
help to level and speed the creation of an inclusive, interconnected digital 
economy for every nation in the world.
diff --git a/another-for-test/src/main/java/io/mifos/another/api/Another.java 
b/another-for-test/src/main/java/org/apache/fineract/cn/permittedfeignclient/another/api/Another.java
similarity index 89%
rename from another-for-test/src/main/java/io/mifos/another/api/Another.java
rename to 
another-for-test/src/main/java/org/apache/fineract/cn/permittedfeignclient/another/api/Another.java
index a9678b2..ed81420 100644
--- a/another-for-test/src/main/java/io/mifos/another/api/Another.java
+++ 
b/another-for-test/src/main/java/org/apache/fineract/cn/permittedfeignclient/another/api/Another.java
@@ -16,10 +16,10 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package io.mifos.another.api;
+package org.apache.fineract.cn.permittedfeignclient.another.api;
 
-import io.mifos.anubis.api.v1.client.Anubis;
-import io.mifos.core.api.util.CustomFeignClientsConfiguration;
+import org.apache.fineract.cn.anubis.api.v1.client.Anubis;
+import org.apache.fineract.cn.api.util.CustomFeignClientsConfiguration;
 import org.springframework.cloud.netflix.feign.FeignClient;
 import org.springframework.http.MediaType;
 import org.springframework.web.bind.annotation.RequestMapping;
diff --git 
a/another-for-test/src/main/java/io/mifos/another/service/AnotherConfiguration.java
 
b/another-for-test/src/main/java/org/apache/fineract/cn/permittedfeignclient/another/service/AnotherConfiguration.java
similarity index 80%
rename from 
another-for-test/src/main/java/io/mifos/another/service/AnotherConfiguration.java
rename to 
another-for-test/src/main/java/org/apache/fineract/cn/permittedfeignclient/another/service/AnotherConfiguration.java
index 7802696..03e8e63 100644
--- 
a/another-for-test/src/main/java/io/mifos/another/service/AnotherConfiguration.java
+++ 
b/another-for-test/src/main/java/org/apache/fineract/cn/permittedfeignclient/another/service/AnotherConfiguration.java
@@ -16,12 +16,12 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package io.mifos.another.service;
+package org.apache.fineract.cn.permittedfeignclient.another.service;
 
-import io.mifos.anubis.config.EnableAnubis;
-import io.mifos.core.lang.config.EnableApplicationName;
-import io.mifos.core.lang.config.EnableServiceException;
-import io.mifos.core.lang.config.EnableTenantContext;
+import org.apache.fineract.cn.anubis.config.EnableAnubis;
+import org.apache.fineract.cn.lang.config.EnableApplicationName;
+import org.apache.fineract.cn.lang.config.EnableServiceException;
+import org.apache.fineract.cn.lang.config.EnableTenantContext;
 import org.springframework.boot.SpringApplication;
 import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
 import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
@@ -41,7 +41,7 @@
 @EnableApplicationName
 @EnableServiceException
 @ComponentScan({
-        "io.mifos.another.service"
+        "org.apache.fineract.cn.permittedfeignclient.another.service"
 })
 public class AnotherConfiguration {
 
diff --git 
a/another-for-test/src/main/java/io/mifos/another/service/AnotherRestController.java
 
b/another-for-test/src/main/java/org/apache/fineract/cn/permittedfeignclient/another/service/AnotherRestController.java
similarity index 89%
rename from 
another-for-test/src/main/java/io/mifos/another/service/AnotherRestController.java
rename to 
another-for-test/src/main/java/org/apache/fineract/cn/permittedfeignclient/another/service/AnotherRestController.java
index 3397891..db61744 100644
--- 
a/another-for-test/src/main/java/io/mifos/another/service/AnotherRestController.java
+++ 
b/another-for-test/src/main/java/org/apache/fineract/cn/permittedfeignclient/another/service/AnotherRestController.java
@@ -16,10 +16,10 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package io.mifos.another.service;
+package org.apache.fineract.cn.permittedfeignclient.another.service;
 
-import io.mifos.anubis.annotation.AcceptedTokenType;
-import io.mifos.anubis.annotation.Permittable;
+import org.apache.fineract.cn.anubis.annotation.AcceptedTokenType;
+import org.apache.fineract.cn.anubis.annotation.Permittable;
 import org.springframework.http.ResponseEntity;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RequestMethod;
diff --git 
a/api/src/main/java/io/mifos/permittedfeignclient/api/v1/client/ApplicationPermissionRequirements.java
 
b/api/src/main/java/org/apache/finearct/cn/permittedfeignclient/api/v1/client/ApplicationPermissionRequirements.java
similarity index 90%
rename from 
api/src/main/java/io/mifos/permittedfeignclient/api/v1/client/ApplicationPermissionRequirements.java
rename to 
api/src/main/java/org/apache/finearct/cn/permittedfeignclient/api/v1/client/ApplicationPermissionRequirements.java
index 746b34d..cdd4e0f 100644
--- 
a/api/src/main/java/io/mifos/permittedfeignclient/api/v1/client/ApplicationPermissionRequirements.java
+++ 
b/api/src/main/java/org/apache/finearct/cn/permittedfeignclient/api/v1/client/ApplicationPermissionRequirements.java
@@ -16,9 +16,9 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package io.mifos.permittedfeignclient.api.v1.client;
+package org.apache.finearct.cn.permittedfeignclient.api.v1.client;
 
-import io.mifos.permittedfeignclient.api.v1.domain.ApplicationPermission;
+import 
org.apache.finearct.cn.permittedfeignclient.api.v1.domain.ApplicationPermission;
 import org.springframework.cloud.netflix.feign.FeignClient;
 import org.springframework.http.MediaType;
 import org.springframework.web.bind.annotation.RequestMapping;
diff --git 
a/api/src/main/java/io/mifos/permittedfeignclient/api/v1/domain/ApplicationPermission.java
 
b/api/src/main/java/org/apache/finearct/cn/permittedfeignclient/api/v1/domain/ApplicationPermission.java
similarity index 91%
rename from 
api/src/main/java/io/mifos/permittedfeignclient/api/v1/domain/ApplicationPermission.java
rename to 
api/src/main/java/org/apache/finearct/cn/permittedfeignclient/api/v1/domain/ApplicationPermission.java
index 9043811..8efa044 100644
--- 
a/api/src/main/java/io/mifos/permittedfeignclient/api/v1/domain/ApplicationPermission.java
+++ 
b/api/src/main/java/org/apache/finearct/cn/permittedfeignclient/api/v1/domain/ApplicationPermission.java
@@ -16,14 +16,13 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package io.mifos.permittedfeignclient.api.v1.domain;
-
-import io.mifos.core.lang.validation.constraints.ValidIdentifier;
-import io.mifos.identity.api.v1.domain.Permission;
+package org.apache.finearct.cn.permittedfeignclient.api.v1.domain;
 
+import java.util.Objects;
 import javax.annotation.Nullable;
 import javax.validation.Valid;
-import java.util.Objects;
+import org.apache.fineract.cn.identity.api.v1.domain.Permission;
+import org.apache.fineract.cn.lang.validation.constraints.ValidIdentifier;
 
 /**
  * @author Myrle Krantz
diff --git a/component-test/src/main/java/TestAccessAnother.java 
b/component-test/src/main/java/TestAccessAnother.java
index f086b42..cdf9e73 100644
--- a/component-test/src/main/java/TestAccessAnother.java
+++ b/component-test/src/main/java/TestAccessAnother.java
@@ -16,26 +16,42 @@
  * specific language governing permissions and limitations
  * under the License.
  */
+import static 
accessanother.service.apiforother.AnotherWithApplicationPermissions.ENDPOINT_SET_IDENTIFIER;
+import static 
org.apache.fineract.cn.test.env.TestEnvironment.RIBBON_USES_EUREKA_PROPERTY;
+import static 
org.apache.fineract.cn.test.env.TestEnvironment.SPRING_CLOUD_DISCOVERY_ENABLED_PROPERTY;
+
 import accessanother.api.AccessAnother;
 import accessanother.service.AccessAnotherConfiguration;
-import io.mifos.another.api.Another;
-import io.mifos.anubis.api.v1.domain.AllowedOperation;
-import io.mifos.anubis.test.v1.TenantApplicationSecurityEnvironmentTestRule;
-import io.mifos.core.api.config.EnableApiFactory;
-import io.mifos.core.api.context.AutoUserContext;
-import io.mifos.core.api.util.ApiFactory;
-import io.mifos.core.lang.DateConverter;
-import io.mifos.core.test.env.TestEnvironment;
-import io.mifos.core.test.fixture.cassandra.CassandraInitializer;
-import io.mifos.core.test.servicestarter.EurekaForTest;
-import io.mifos.core.test.servicestarter.InitializedMicroservice;
-import io.mifos.core.test.servicestarter.IntegrationTestEnvironment;
-import io.mifos.identity.api.v1.client.IdentityManager;
-import io.mifos.identity.api.v1.domain.Authentication;
-import io.mifos.identity.api.v1.domain.Permission;
-import 
io.mifos.permittedfeignclient.api.v1.client.ApplicationPermissionRequirements;
-import io.mifos.permittedfeignclient.api.v1.domain.ApplicationPermission;
-import org.junit.*;
+import org.apache.fineract.cn.permittedfeignclient.another.api.Another;
+import 
org.apache.finearct.cn.permittedfeignclient.api.v1.client.ApplicationPermissionRequirements;
+import 
org.apache.finearct.cn.permittedfeignclient.api.v1.domain.ApplicationPermission;
+import java.time.LocalDateTime;
+import java.time.ZoneId;
+import java.util.Arrays;
+import java.util.Date;
+import java.util.HashSet;
+import java.util.List;
+import java.util.concurrent.TimeUnit;
+import org.apache.fineract.cn.anubis.api.v1.domain.AllowedOperation;
+import 
org.apache.fineract.cn.anubis.test.v1.TenantApplicationSecurityEnvironmentTestRule;
+import org.apache.fineract.cn.api.config.EnableApiFactory;
+import org.apache.fineract.cn.api.context.AutoUserContext;
+import org.apache.fineract.cn.api.util.ApiFactory;
+import org.apache.fineract.cn.identity.api.v1.client.IdentityManager;
+import org.apache.fineract.cn.identity.api.v1.domain.Authentication;
+import org.apache.fineract.cn.identity.api.v1.domain.Permission;
+import org.apache.fineract.cn.lang.DateConverter;
+import org.apache.fineract.cn.test.env.TestEnvironment;
+import org.apache.fineract.cn.test.fixture.cassandra.CassandraInitializer;
+import org.apache.fineract.cn.test.servicestarter.EurekaForTest;
+import org.apache.fineract.cn.test.servicestarter.InitializedMicroservice;
+import org.apache.fineract.cn.test.servicestarter.IntegrationTestEnvironment;
+import org.junit.Assert;
+import org.junit.Before;
+import org.junit.BeforeClass;
+import org.junit.ClassRule;
+import org.junit.Rule;
+import org.junit.Test;
 import org.junit.rules.RuleChain;
 import org.junit.rules.TestRule;
 import org.junit.runner.RunWith;
@@ -50,18 +66,6 @@
 import org.springframework.context.annotation.Import;
 import org.springframework.test.context.junit4.SpringRunner;
 
-import java.time.LocalDateTime;
-import java.time.ZoneId;
-import java.util.Arrays;
-import java.util.Date;
-import java.util.HashSet;
-import java.util.List;
-import java.util.concurrent.TimeUnit;
-
-import static 
accessanother.service.apiforother.AnotherWithApplicationPermissions.ENDPOINT_SET_IDENTIFIER;
-import static 
io.mifos.core.test.env.TestEnvironment.RIBBON_USES_EUREKA_PROPERTY;
-import static 
io.mifos.core.test.env.TestEnvironment.SPRING_CLOUD_DISCOVERY_ENABLED_PROPERTY;
-
 /**
  * @author Myrle Krantz
  */
diff --git a/component-test/src/main/java/accessanother/api/AccessAnother.java 
b/component-test/src/main/java/accessanother/api/AccessAnother.java
index 4c1def7..b9717d8 100644
--- a/component-test/src/main/java/accessanother/api/AccessAnother.java
+++ b/component-test/src/main/java/accessanother/api/AccessAnother.java
@@ -18,8 +18,8 @@
  */
 package accessanother.api;
 
-import io.mifos.anubis.api.v1.client.Anubis;
-import io.mifos.core.api.util.CustomFeignClientsConfiguration;
+import org.apache.fineract.cn.anubis.api.v1.client.Anubis;
+import org.apache.fineract.cn.api.util.CustomFeignClientsConfiguration;
 import org.springframework.cloud.netflix.feign.FeignClient;
 import org.springframework.http.MediaType;
 import org.springframework.web.bind.annotation.RequestMapping;
diff --git 
a/component-test/src/main/java/accessanother/service/AccessAnotherConfiguration.java
 
b/component-test/src/main/java/accessanother/service/AccessAnotherConfiguration.java
index 0f6d6a8..6bd7090 100644
--- 
a/component-test/src/main/java/accessanother/service/AccessAnotherConfiguration.java
+++ 
b/component-test/src/main/java/accessanother/service/AccessAnotherConfiguration.java
@@ -19,10 +19,10 @@
 package accessanother.service;
 
 import accessanother.service.apiforother.AnotherWithApplicationPermissions;
-import io.mifos.anubis.config.EnableAnubis;
-import io.mifos.core.lang.config.EnableServiceException;
-import io.mifos.core.lang.config.EnableTenantContext;
-import 
io.mifos.permittedfeignclient.config.EnablePermissionRequestingFeignClient;
+import 
org.apache.fineract.cn.permittedfeignclient.config.EnablePermissionRequestingFeignClient;
+import org.apache.fineract.cn.anubis.config.EnableAnubis;
+import org.apache.fineract.cn.lang.config.EnableServiceException;
+import org.apache.fineract.cn.lang.config.EnableTenantContext;
 import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
 import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
 import org.springframework.cloud.netflix.feign.EnableFeignClients;
diff --git 
a/component-test/src/main/java/accessanother/service/AccessAnotherRestController.java
 
b/component-test/src/main/java/accessanother/service/AccessAnotherRestController.java
index be6107b..eb16653 100644
--- 
a/component-test/src/main/java/accessanother/service/AccessAnotherRestController.java
+++ 
b/component-test/src/main/java/accessanother/service/AccessAnotherRestController.java
@@ -19,7 +19,7 @@
 package accessanother.service;
 
 import accessanother.service.apiforother.AnotherWithApplicationPermissions;
-import io.mifos.anubis.annotation.Permittable;
+import org.apache.fineract.cn.anubis.annotation.Permittable;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.http.ResponseEntity;
 import org.springframework.web.bind.annotation.RequestMapping;
diff --git 
a/component-test/src/main/java/accessanother/service/apiforother/AnotherWithApplicationPermissions.java
 
b/component-test/src/main/java/accessanother/service/apiforother/AnotherWithApplicationPermissions.java
index d30cdc0..af3fd4c 100644
--- 
a/component-test/src/main/java/accessanother/service/apiforother/AnotherWithApplicationPermissions.java
+++ 
b/component-test/src/main/java/accessanother/service/apiforother/AnotherWithApplicationPermissions.java
@@ -18,9 +18,9 @@
  */
 package accessanother.service.apiforother;
 
-import io.mifos.anubis.annotation.Permittable;
-import io.mifos.permittedfeignclient.annotation.EndpointSet;
-import 
io.mifos.permittedfeignclient.annotation.PermittedFeignClientsConfiguration;
+import org.apache.fineract.cn.permittedfeignclient.annotation.EndpointSet;
+import 
org.apache.fineract.cn.permittedfeignclient.annotation.PermittedFeignClientsConfiguration;
+import org.apache.fineract.cn.anubis.annotation.Permittable;
 import org.springframework.cloud.netflix.feign.FeignClient;
 import org.springframework.http.MediaType;
 import org.springframework.web.bind.annotation.RequestMapping;
diff --git 
a/library/src/main/java/io/mifos/permittedfeignclient/LibraryConstants.java 
b/library/src/main/java/org/apache/fineract/cn/permittedfeignclient/LibraryConstants.java
similarity index 94%
rename from 
library/src/main/java/io/mifos/permittedfeignclient/LibraryConstants.java
rename to 
library/src/main/java/org/apache/fineract/cn/permittedfeignclient/LibraryConstants.java
index 0995411..f555c1a 100644
--- a/library/src/main/java/io/mifos/permittedfeignclient/LibraryConstants.java
+++ 
b/library/src/main/java/org/apache/fineract/cn/permittedfeignclient/LibraryConstants.java
@@ -16,7 +16,7 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package io.mifos.permittedfeignclient;
+package org.apache.fineract.cn.permittedfeignclient;
 
 /**
  * @author Myrle Krantz
diff --git 
a/library/src/main/java/io/mifos/permittedfeignclient/annotation/EndpointSet.java
 
b/library/src/main/java/org/apache/fineract/cn/permittedfeignclient/annotation/EndpointSet.java
similarity index 94%
rename from 
library/src/main/java/io/mifos/permittedfeignclient/annotation/EndpointSet.java
rename to 
library/src/main/java/org/apache/fineract/cn/permittedfeignclient/annotation/EndpointSet.java
index 3f2ff7e..26d153d 100644
--- 
a/library/src/main/java/io/mifos/permittedfeignclient/annotation/EndpointSet.java
+++ 
b/library/src/main/java/org/apache/fineract/cn/permittedfeignclient/annotation/EndpointSet.java
@@ -16,7 +16,7 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package io.mifos.permittedfeignclient.annotation;
+package org.apache.fineract.cn.permittedfeignclient.annotation;
 
 import java.lang.annotation.*;
 
diff --git 
a/library/src/main/java/io/mifos/permittedfeignclient/annotation/PermittedFeignClientsConfiguration.java
 
b/library/src/main/java/org/apache/fineract/cn/permittedfeignclient/annotation/PermittedFeignClientsConfiguration.java
similarity index 86%
rename from 
library/src/main/java/io/mifos/permittedfeignclient/annotation/PermittedFeignClientsConfiguration.java
rename to 
library/src/main/java/org/apache/fineract/cn/permittedfeignclient/annotation/PermittedFeignClientsConfiguration.java
index e8e86b9..b81df81 100644
--- 
a/library/src/main/java/io/mifos/permittedfeignclient/annotation/PermittedFeignClientsConfiguration.java
+++ 
b/library/src/main/java/org/apache/fineract/cn/permittedfeignclient/annotation/PermittedFeignClientsConfiguration.java
@@ -16,7 +16,9 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package io.mifos.permittedfeignclient.annotation;
+package org.apache.fineract.cn.permittedfeignclient.annotation;
+
+import static org.apache.fineract.cn.api.config.ApiConfiguration.LOGGER_NAME;
 
 import feign.Feign;
 import feign.Target;
@@ -24,10 +26,10 @@
 import feign.codec.Encoder;
 import feign.gson.GsonDecoder;
 import feign.gson.GsonEncoder;
-import io.mifos.core.api.util.AnnotatedErrorDecoder;
-import io.mifos.core.api.util.TenantedTargetInterceptor;
-import 
io.mifos.permittedfeignclient.security.ApplicationTokenedTargetInterceptor;
-import io.mifos.permittedfeignclient.service.ApplicationAccessTokenService;
+import 
org.apache.fineract.cn.permittedfeignclient.security.ApplicationTokenedTargetInterceptor;
+import 
org.apache.fineract.cn.permittedfeignclient.service.ApplicationAccessTokenService;
+import org.apache.fineract.cn.api.util.AnnotatedErrorDecoder;
+import org.apache.fineract.cn.api.util.TenantedTargetInterceptor;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springframework.beans.factory.annotation.Qualifier;
@@ -36,8 +38,6 @@
 import org.springframework.context.annotation.Bean;
 import org.springframework.context.annotation.Scope;
 
-import static io.mifos.core.api.config.ApiConfiguration.LOGGER_NAME;
-
 /**
  * @author Myrle Krantz
  */
diff --git 
a/library/src/main/java/io/mifos/permittedfeignclient/config/EnablePermissionRequestingFeignClient.java
 
b/library/src/main/java/org/apache/fineract/cn/permittedfeignclient/config/EnablePermissionRequestingFeignClient.java
similarity index 95%
rename from 
library/src/main/java/io/mifos/permittedfeignclient/config/EnablePermissionRequestingFeignClient.java
rename to 
library/src/main/java/org/apache/fineract/cn/permittedfeignclient/config/EnablePermissionRequestingFeignClient.java
index 294eb0c..231b856 100644
--- 
a/library/src/main/java/io/mifos/permittedfeignclient/config/EnablePermissionRequestingFeignClient.java
+++ 
b/library/src/main/java/org/apache/fineract/cn/permittedfeignclient/config/EnablePermissionRequestingFeignClient.java
@@ -16,7 +16,7 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package io.mifos.permittedfeignclient.config;
+package org.apache.fineract.cn.permittedfeignclient.config;
 
 import org.springframework.context.annotation.Import;
 
diff --git 
a/library/src/main/java/io/mifos/permittedfeignclient/config/PermittedFeignClientBeanDefinitionRegistrar.java
 
b/library/src/main/java/org/apache/fineract/cn/permittedfeignclient/config/PermittedFeignClientBeanDefinitionRegistrar.java
similarity index 92%
rename from 
library/src/main/java/io/mifos/permittedfeignclient/config/PermittedFeignClientBeanDefinitionRegistrar.java
rename to 
library/src/main/java/org/apache/fineract/cn/permittedfeignclient/config/PermittedFeignClientBeanDefinitionRegistrar.java
index d83dfae..acad314 100644
--- 
a/library/src/main/java/io/mifos/permittedfeignclient/config/PermittedFeignClientBeanDefinitionRegistrar.java
+++ 
b/library/src/main/java/org/apache/fineract/cn/permittedfeignclient/config/PermittedFeignClientBeanDefinitionRegistrar.java
@@ -16,9 +16,9 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package io.mifos.permittedfeignclient.config;
+package org.apache.fineract.cn.permittedfeignclient.config;
 
-import 
io.mifos.permittedfeignclient.service.ApplicationPermissionRequirementsService;
+import 
org.apache.fineract.cn.permittedfeignclient.service.ApplicationPermissionRequirementsService;
 import org.springframework.beans.factory.support.AbstractBeanDefinition;
 import org.springframework.beans.factory.support.BeanDefinitionBuilder;
 import org.springframework.beans.factory.support.BeanDefinitionRegistry;
diff --git 
a/library/src/main/java/io/mifos/permittedfeignclient/config/PermittedFeignClientConfiguration.java
 
b/library/src/main/java/org/apache/fineract/cn/permittedfeignclient/config/PermittedFeignClientConfiguration.java
similarity index 81%
rename from 
library/src/main/java/io/mifos/permittedfeignclient/config/PermittedFeignClientConfiguration.java
rename to 
library/src/main/java/org/apache/fineract/cn/permittedfeignclient/config/PermittedFeignClientConfiguration.java
index 7bbed95..933fc15 100644
--- 
a/library/src/main/java/io/mifos/permittedfeignclient/config/PermittedFeignClientConfiguration.java
+++ 
b/library/src/main/java/org/apache/fineract/cn/permittedfeignclient/config/PermittedFeignClientConfiguration.java
@@ -16,19 +16,20 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package io.mifos.permittedfeignclient.config;
+package org.apache.fineract.cn.permittedfeignclient.config;
 
 import feign.Client;
 import feign.Feign;
 import feign.gson.GsonDecoder;
 import feign.gson.GsonEncoder;
-import io.mifos.anubis.config.EnableAnubis;
-import io.mifos.core.api.util.AnnotatedErrorDecoder;
-import io.mifos.core.api.util.EmptyBodyInterceptor;
-import io.mifos.core.api.util.TenantedTargetInterceptor;
-import io.mifos.core.api.util.TokenedTargetInterceptor;
-import io.mifos.identity.api.v1.client.IdentityManager;
-import io.mifos.permittedfeignclient.LibraryConstants;
+import org.apache.fineract.cn.permittedfeignclient.LibraryConstants;
+import javax.annotation.Nonnull;
+import org.apache.fineract.cn.anubis.config.EnableAnubis;
+import org.apache.fineract.cn.api.util.AnnotatedErrorDecoder;
+import org.apache.fineract.cn.api.util.EmptyBodyInterceptor;
+import org.apache.fineract.cn.api.util.TenantedTargetInterceptor;
+import org.apache.fineract.cn.api.util.TokenedTargetInterceptor;
+import org.apache.fineract.cn.identity.api.v1.client.IdentityManager;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springframework.beans.factory.annotation.Qualifier;
@@ -36,8 +37,6 @@
 import org.springframework.context.annotation.Bean;
 import org.springframework.context.annotation.Configuration;
 
-import javax.annotation.Nonnull;
-
 /**
  * @author Myrle Krantz
  */
diff --git 
a/library/src/main/java/io/mifos/permittedfeignclient/config/PermittedFeignClientImportSelector.java
 
b/library/src/main/java/org/apache/fineract/cn/permittedfeignclient/config/PermittedFeignClientImportSelector.java
similarity index 85%
rename from 
library/src/main/java/io/mifos/permittedfeignclient/config/PermittedFeignClientImportSelector.java
rename to 
library/src/main/java/org/apache/fineract/cn/permittedfeignclient/config/PermittedFeignClientImportSelector.java
index e1469bd..8478bf4 100644
--- 
a/library/src/main/java/io/mifos/permittedfeignclient/config/PermittedFeignClientImportSelector.java
+++ 
b/library/src/main/java/org/apache/fineract/cn/permittedfeignclient/config/PermittedFeignClientImportSelector.java
@@ -16,10 +16,10 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package io.mifos.permittedfeignclient.config;
+package org.apache.fineract.cn.permittedfeignclient.config;
 
-import 
io.mifos.permittedfeignclient.controller.ApplicationPermissionRequirementsRestController;
-import io.mifos.permittedfeignclient.service.ApplicationAccessTokenService;
+import 
org.apache.fineract.cn.permittedfeignclient.controller.ApplicationPermissionRequirementsRestController;
+import 
org.apache.fineract.cn.permittedfeignclient.service.ApplicationAccessTokenService;
 import org.springframework.context.annotation.ImportSelector;
 import org.springframework.core.type.AnnotationMetadata;
 
diff --git 
a/library/src/main/java/io/mifos/permittedfeignclient/controller/ApplicationPermissionRequirementsRestController.java
 
b/library/src/main/java/org/apache/fineract/cn/permittedfeignclient/controller/ApplicationPermissionRequirementsRestController.java
similarity index 82%
rename from 
library/src/main/java/io/mifos/permittedfeignclient/controller/ApplicationPermissionRequirementsRestController.java
rename to 
library/src/main/java/org/apache/fineract/cn/permittedfeignclient/controller/ApplicationPermissionRequirementsRestController.java
index a21f719..b4f221b 100644
--- 
a/library/src/main/java/io/mifos/permittedfeignclient/controller/ApplicationPermissionRequirementsRestController.java
+++ 
b/library/src/main/java/org/apache/fineract/cn/permittedfeignclient/controller/ApplicationPermissionRequirementsRestController.java
@@ -16,12 +16,14 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package io.mifos.permittedfeignclient.controller;
+package org.apache.fineract.cn.permittedfeignclient.controller;
 
-import io.mifos.anubis.annotation.AcceptedTokenType;
-import io.mifos.anubis.annotation.Permittable;
-import 
io.mifos.permittedfeignclient.service.ApplicationPermissionRequirementsService;
-import io.mifos.permittedfeignclient.api.v1.domain.ApplicationPermission;
+import 
org.apache.finearct.cn.permittedfeignclient.api.v1.domain.ApplicationPermission;
+import 
org.apache.fineract.cn.permittedfeignclient.service.ApplicationPermissionRequirementsService;
+import java.util.ArrayList;
+import java.util.List;
+import org.apache.fineract.cn.anubis.annotation.AcceptedTokenType;
+import org.apache.fineract.cn.anubis.annotation.Permittable;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.http.MediaType;
 import org.springframework.http.ResponseEntity;
@@ -30,8 +32,6 @@
 import org.springframework.web.bind.annotation.ResponseBody;
 import org.springframework.web.bind.annotation.RestController;
 
-import java.util.*;
-
 /**
  * @author Myrle Krantz
  */
diff --git 
a/library/src/main/java/io/mifos/permittedfeignclient/security/ApplicationTokenedTargetInterceptor.java
 
b/library/src/main/java/org/apache/fineract/cn/permittedfeignclient/security/ApplicationTokenedTargetInterceptor.java
similarity index 85%
rename from 
library/src/main/java/io/mifos/permittedfeignclient/security/ApplicationTokenedTargetInterceptor.java
rename to 
library/src/main/java/org/apache/fineract/cn/permittedfeignclient/security/ApplicationTokenedTargetInterceptor.java
index 7165b2d..ff43286 100644
--- 
a/library/src/main/java/io/mifos/permittedfeignclient/security/ApplicationTokenedTargetInterceptor.java
+++ 
b/library/src/main/java/org/apache/fineract/cn/permittedfeignclient/security/ApplicationTokenedTargetInterceptor.java
@@ -16,18 +16,17 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package io.mifos.permittedfeignclient.security;
+package org.apache.fineract.cn.permittedfeignclient.security;
 
 import feign.RequestInterceptor;
 import feign.RequestTemplate;
-import io.mifos.core.api.util.ApiConstants;
-import io.mifos.core.api.util.UserContextHolder;
-import io.mifos.core.lang.TenantContextHolder;
-import io.mifos.permittedfeignclient.annotation.EndpointSet;
-import io.mifos.permittedfeignclient.service.ApplicationAccessTokenService;
-import org.springframework.util.Assert;
-
+import org.apache.fineract.cn.permittedfeignclient.annotation.EndpointSet;
+import 
org.apache.fineract.cn.permittedfeignclient.service.ApplicationAccessTokenService;
 import javax.annotation.Nonnull;
+import org.apache.fineract.cn.api.util.ApiConstants;
+import org.apache.fineract.cn.api.util.UserContextHolder;
+import org.apache.fineract.cn.lang.TenantContextHolder;
+import org.springframework.util.Assert;
 
 /**
  * @author Myrle Krantz
diff --git 
a/library/src/main/java/io/mifos/permittedfeignclient/service/ApplicationAccessTokenService.java
 
b/library/src/main/java/org/apache/fineract/cn/permittedfeignclient/service/ApplicationAccessTokenService.java
similarity index 86%
rename from 
library/src/main/java/io/mifos/permittedfeignclient/service/ApplicationAccessTokenService.java
rename to 
library/src/main/java/org/apache/fineract/cn/permittedfeignclient/service/ApplicationAccessTokenService.java
index 2b1f2c0..bdc548b 100644
--- 
a/library/src/main/java/io/mifos/permittedfeignclient/service/ApplicationAccessTokenService.java
+++ 
b/library/src/main/java/org/apache/fineract/cn/permittedfeignclient/service/ApplicationAccessTokenService.java
@@ -16,33 +16,32 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package io.mifos.permittedfeignclient.service;
-
-import io.mifos.anubis.config.TenantSignatureRepository;
-import io.mifos.anubis.security.AmitAuthenticationException;
-import io.mifos.anubis.token.TenantRefreshTokenSerializer;
-import io.mifos.anubis.token.TokenSerializationResult;
-import io.mifos.core.api.context.AutoGuest;
-import io.mifos.core.api.util.NotFoundException;
-import io.mifos.core.lang.ApplicationName;
-import io.mifos.core.lang.AutoTenantContext;
-import io.mifos.core.lang.security.RsaKeyPairFactory;
-import io.mifos.identity.api.v1.client.IdentityManager;
-import io.mifos.identity.api.v1.domain.Authentication;
-import io.mifos.permittedfeignclient.LibraryConstants;
+package org.apache.fineract.cn.permittedfeignclient.service;
+
+import org.apache.fineract.cn.permittedfeignclient.LibraryConstants;
+import java.util.Map;
+import java.util.Optional;
+import java.util.concurrent.TimeUnit;
+import javax.annotation.Nonnull;
+import javax.annotation.Nullable;
 import net.jodah.expiringmap.ExpirationPolicy;
 import net.jodah.expiringmap.ExpiringMap;
+import org.apache.fineract.cn.anubis.config.TenantSignatureRepository;
+import org.apache.fineract.cn.anubis.security.AmitAuthenticationException;
+import org.apache.fineract.cn.anubis.token.TenantRefreshTokenSerializer;
+import org.apache.fineract.cn.anubis.token.TokenSerializationResult;
+import org.apache.fineract.cn.api.context.AutoGuest;
+import org.apache.fineract.cn.api.util.NotFoundException;
+import org.apache.fineract.cn.identity.api.v1.client.IdentityManager;
+import org.apache.fineract.cn.identity.api.v1.domain.Authentication;
+import org.apache.fineract.cn.lang.ApplicationName;
+import org.apache.fineract.cn.lang.AutoTenantContext;
+import org.apache.fineract.cn.lang.security.RsaKeyPairFactory;
 import org.slf4j.Logger;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.beans.factory.annotation.Qualifier;
 import org.springframework.stereotype.Component;
 
-import javax.annotation.Nonnull;
-import javax.annotation.Nullable;
-import java.util.Map;
-import java.util.Optional;
-import java.util.concurrent.TimeUnit;
-
 /**
  * @author Myrle Krantz
  */
diff --git 
a/library/src/main/java/io/mifos/permittedfeignclient/service/ApplicationPermissionRequirementsService.java
 
b/library/src/main/java/org/apache/fineract/cn/permittedfeignclient/service/ApplicationPermissionRequirementsService.java
similarity index 92%
rename from 
library/src/main/java/io/mifos/permittedfeignclient/service/ApplicationPermissionRequirementsService.java
rename to 
library/src/main/java/org/apache/fineract/cn/permittedfeignclient/service/ApplicationPermissionRequirementsService.java
index 278760b..1c88584 100644
--- 
a/library/src/main/java/io/mifos/permittedfeignclient/service/ApplicationPermissionRequirementsService.java
+++ 
b/library/src/main/java/org/apache/fineract/cn/permittedfeignclient/service/ApplicationPermissionRequirementsService.java
@@ -16,14 +16,14 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package io.mifos.permittedfeignclient.service;
+package org.apache.fineract.cn.permittedfeignclient.service;
 
-import io.mifos.anubis.annotation.Permittable;
-import io.mifos.anubis.annotation.Permittables;
-import io.mifos.anubis.api.v1.domain.AllowedOperation;
-import io.mifos.identity.api.v1.domain.Permission;
-import io.mifos.permittedfeignclient.annotation.EndpointSet;
-import io.mifos.permittedfeignclient.api.v1.domain.ApplicationPermission;
+import org.apache.fineract.cn.permittedfeignclient.annotation.EndpointSet;
+import 
org.apache.finearct.cn.permittedfeignclient.api.v1.domain.ApplicationPermission;
+import org.apache.fineract.cn.anubis.annotation.Permittable;
+import org.apache.fineract.cn.anubis.annotation.Permittables;
+import org.apache.fineract.cn.anubis.api.v1.domain.AllowedOperation;
+import org.apache.fineract.cn.identity.api.v1.domain.Permission;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Component;
 import org.springframework.web.bind.annotation.RequestMapping;
diff --git 
a/library/src/main/java/io/mifos/permittedfeignclient/service/TokenCacheKey.java
 
b/library/src/main/java/org/apache/fineract/cn/permittedfeignclient/service/TokenCacheKey.java
similarity index 97%
rename from 
library/src/main/java/io/mifos/permittedfeignclient/service/TokenCacheKey.java
rename to 
library/src/main/java/org/apache/fineract/cn/permittedfeignclient/service/TokenCacheKey.java
index b9919e8..107a15b 100644
--- 
a/library/src/main/java/io/mifos/permittedfeignclient/service/TokenCacheKey.java
+++ 
b/library/src/main/java/org/apache/fineract/cn/permittedfeignclient/service/TokenCacheKey.java
@@ -16,7 +16,7 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package io.mifos.permittedfeignclient.service;
+package org.apache.fineract.cn.permittedfeignclient.service;
 
 import javax.annotation.Nullable;
 import java.util.Objects;
diff --git 
a/library/src/test/java/io/mifos/permittedfeignclient/service/ApplicationAccessTokenServiceTest.java
 
b/library/src/test/java/org/apache/fineract/cn/permittedfeignclient/service/ApplicationAccessTokenServiceTest.java
similarity index 82%
rename from 
library/src/test/java/io/mifos/permittedfeignclient/service/ApplicationAccessTokenServiceTest.java
rename to 
library/src/test/java/org/apache/fineract/cn/permittedfeignclient/service/ApplicationAccessTokenServiceTest.java
index e898e16..550a659 100644
--- 
a/library/src/test/java/io/mifos/permittedfeignclient/service/ApplicationAccessTokenServiceTest.java
+++ 
b/library/src/test/java/org/apache/fineract/cn/permittedfeignclient/service/ApplicationAccessTokenServiceTest.java
@@ -16,17 +16,17 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package io.mifos.permittedfeignclient.service;
+package org.apache.fineract.cn.permittedfeignclient.service;
 
-import io.mifos.anubis.config.TenantSignatureRepository;
-import io.mifos.anubis.token.TenantRefreshTokenSerializer;
-import io.mifos.anubis.token.TokenSerializationResult;
-import io.mifos.core.lang.ApplicationName;
-import io.mifos.core.lang.AutoTenantContext;
-import io.mifos.core.lang.TenantContextHolder;
-import io.mifos.core.lang.security.RsaKeyPairFactory;
-import io.mifos.identity.api.v1.client.IdentityManager;
-import io.mifos.identity.api.v1.domain.Authentication;
+import org.apache.fineract.cn.anubis.config.TenantSignatureRepository;
+import org.apache.fineract.cn.anubis.token.TenantRefreshTokenSerializer;
+import org.apache.fineract.cn.anubis.token.TokenSerializationResult;
+import org.apache.fineract.cn.identity.api.v1.client.IdentityManager;
+import org.apache.fineract.cn.identity.api.v1.domain.Authentication;
+import org.apache.fineract.cn.lang.ApplicationName;
+import org.apache.fineract.cn.lang.AutoTenantContext;
+import org.apache.fineract.cn.lang.TenantContextHolder;
+import org.apache.fineract.cn.lang.security.RsaKeyPairFactory;
 import org.junit.Assert;
 import org.junit.Test;
 import org.mockito.Mockito;
@@ -71,7 +71,8 @@ public void testHappyCase() {
             loggerMock);
 
     try (final AutoTenantContext ignored1 = new 
AutoTenantContext(TENANT_NAME)) {
-      final String accessTokenWithoutCallEndpointSet = 
testSubject.getAccessToken(USER_NAME, 
TenantContextHolder.checkedGetIdentifier());
+      final String accessTokenWithoutCallEndpointSet = 
testSubject.getAccessToken(USER_NAME, TenantContextHolder
+          .checkedGetIdentifier());
       Assert.assertEquals(BEARER_TOKEN_MOCK, 
accessTokenWithoutCallEndpointSet);
 
       final String accessToken = testSubject.getAccessToken(USER_NAME, 
TenantContextHolder.checkedGetIdentifier(), "blah");
diff --git 
a/library/src/test/java/io/mifos/permittedfeignclient/service/ApplicationPermissionRequirementsServiceTest.java
 
b/library/src/test/java/org/apache/fineract/cn/permittedfeignclient/service/ApplicationPermissionRequirementsServiceTest.java
similarity index 90%
rename from 
library/src/test/java/io/mifos/permittedfeignclient/service/ApplicationPermissionRequirementsServiceTest.java
rename to 
library/src/test/java/org/apache/fineract/cn/permittedfeignclient/service/ApplicationPermissionRequirementsServiceTest.java
index 7942319..f7e6e1a 100644
--- 
a/library/src/test/java/io/mifos/permittedfeignclient/service/ApplicationPermissionRequirementsServiceTest.java
+++ 
b/library/src/test/java/org/apache/fineract/cn/permittedfeignclient/service/ApplicationPermissionRequirementsServiceTest.java
@@ -16,24 +16,23 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package io.mifos.permittedfeignclient.service;
+package org.apache.fineract.cn.permittedfeignclient.service;
 
-import io.mifos.anubis.annotation.Permittable;
-import io.mifos.anubis.api.v1.domain.AllowedOperation;
-import io.mifos.identity.api.v1.domain.Permission;
-import io.mifos.permittedfeignclient.annotation.EndpointSet;
-import io.mifos.permittedfeignclient.api.v1.domain.ApplicationPermission;
+import org.apache.fineract.cn.permittedfeignclient.annotation.EndpointSet;
+import 
org.apache.finearct.cn.permittedfeignclient.api.v1.domain.ApplicationPermission;
+import java.util.Collections;
+import java.util.Set;
+import java.util.stream.Collectors;
+import java.util.stream.Stream;
+import org.apache.fineract.cn.anubis.annotation.Permittable;
+import org.apache.fineract.cn.anubis.api.v1.domain.AllowedOperation;
+import org.apache.fineract.cn.identity.api.v1.domain.Permission;
 import org.junit.Assert;
 import org.junit.Test;
 import org.springframework.cloud.netflix.feign.FeignClient;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RequestMethod;
 
-import java.util.Collections;
-import java.util.Set;
-import java.util.stream.Collectors;
-import java.util.stream.Stream;
-
 /**
  * @author Myrle Krantz
  */


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to