Migrate aaa-shiro to utilize archetype setup 77/50077/7
authorRyan Goulding <ryandgoulding@gmail.com>
Thu, 5 Jan 2017 20:52:47 +0000 (15:52 -0500)
committerRyan Goulding <ryandgoulding@gmail.com>
Tue, 17 Jan 2017 19:22:02 +0000 (14:22 -0500)
commit5edf53be8279f00af0c42be3aa9f30e9b37357ee
treeca22ce65c1f437bd44597394ad4ba53b96fd06da
parent508c959789122d4f386185094c88c747f4f76abf
Migrate aaa-shiro to utilize archetype setup

This change addresses the fact that the archetype was not used to
create the aaa-shiro module.  This is due to the fact that it was
much heavier weight than what was needed at the time.  However,
utilization of the archetype does allow for many advantages including:

1) Explicit separation of api and impl into two separate locations.
   Since prior to this change mostly Apache Shiro abstractions were used
   instead of homegrown ones, this wasn't particularly useful.  However,
   with aaa-shiro growing, this is becoming increasingly necessary.

2) Dependence on config-parent for bundles.  This gets us a lot for
   free, including genericizising on best practices.

3) The possibility to create aaa-shiro features/karaf/IT/commands more
   easily.  For now, this patch comments out the features & karaf
   section as they are pretty much duplicates of the existing top-level
   odl-aaa-shiro feature which is already defined.  In the future, it
   would be nice to enumerate some of the archetype-oriented features:
   - ui
   - rest
   - api

This change is mostly cleaning up and preparing for expansion of the
aaa-shiro bundle.  Existing functionality was stuck in the aaa-shiro module,
but the package names were not updated to utilize impl.  Likewise, the module
is called "aaa-shiro" and not "aaa-shiro-impl" since other projects already depend
on the former name.  The package names were not updated to utilize impl
as the names are used in configuration of the module itself, and
changing them would cause forwards/backwards compatibility issues.  In the future,
we may want to move them but provide existing classes that extend the impl ones.

Change-Id: I16f1efed8b83e764362ae6d19b0a69d1b1c6cbec
Signed-off-by: Ryan Goulding <ryandgoulding@gmail.com>
44 files changed:
aaa-shiro/api/pom.xml [new file with mode: 0644]
aaa-shiro/api/src/main/yang/aaa-shiro.yang [new file with mode: 0644]
aaa-shiro/deploy-site.xml [new file with mode: 0644]
aaa-shiro/impl/pom.xml [new file with mode: 0644]
aaa-shiro/impl/src/main/java/org/opendaylight/aaa/impl/AAAShiroProvider.java [new file with mode: 0644]
aaa-shiro/impl/src/main/java/org/opendaylight/aaa/impl/shiro/Activator.java [moved from aaa-shiro/src/main/java/org/opendaylight/aaa/shiro/Activator.java with 100% similarity]
aaa-shiro/impl/src/main/java/org/opendaylight/aaa/impl/shiro/ServiceProxy.java [moved from aaa-shiro/src/main/java/org/opendaylight/aaa/shiro/ServiceProxy.java with 100% similarity]
aaa-shiro/impl/src/main/java/org/opendaylight/aaa/impl/shiro/accounting/Accounter.java [moved from aaa-shiro/src/main/java/org/opendaylight/aaa/shiro/accounting/Accounter.java with 100% similarity]
aaa-shiro/impl/src/main/java/org/opendaylight/aaa/impl/shiro/filters/AAAFilter.java [moved from aaa-shiro/src/main/java/org/opendaylight/aaa/shiro/filters/AAAFilter.java with 100% similarity]
aaa-shiro/impl/src/main/java/org/opendaylight/aaa/impl/shiro/filters/AAAShiroFilter.java [moved from aaa-shiro/src/main/java/org/opendaylight/aaa/shiro/filters/AAAShiroFilter.java with 100% similarity]
aaa-shiro/impl/src/main/java/org/opendaylight/aaa/impl/shiro/filters/AuthenticationListener.java [moved from aaa-shiro/src/main/java/org/opendaylight/aaa/shiro/filters/AuthenticationListener.java with 100% similarity]
aaa-shiro/impl/src/main/java/org/opendaylight/aaa/impl/shiro/filters/AuthenticationTokenUtils.java [moved from aaa-shiro/src/main/java/org/opendaylight/aaa/shiro/filters/AuthenticationTokenUtils.java with 100% similarity]
aaa-shiro/impl/src/main/java/org/opendaylight/aaa/impl/shiro/filters/MoonOAuthFilter.java [moved from aaa-shiro/src/main/java/org/opendaylight/aaa/shiro/filters/MoonOAuthFilter.java with 100% similarity]
aaa-shiro/impl/src/main/java/org/opendaylight/aaa/impl/shiro/filters/ODLHttpAuthenticationFilter.java [moved from aaa-shiro/src/main/java/org/opendaylight/aaa/shiro/filters/ODLHttpAuthenticationFilter.java with 100% similarity]
aaa-shiro/impl/src/main/java/org/opendaylight/aaa/impl/shiro/moon/MoonPrincipal.java [moved from aaa-shiro/src/main/java/org/opendaylight/aaa/shiro/moon/MoonPrincipal.java with 100% similarity]
aaa-shiro/impl/src/main/java/org/opendaylight/aaa/impl/shiro/moon/MoonTokenEndpoint.java [moved from aaa-shiro/src/main/java/org/opendaylight/aaa/shiro/moon/MoonTokenEndpoint.java with 100% similarity]
aaa-shiro/impl/src/main/java/org/opendaylight/aaa/impl/shiro/realm/MoonRealm.java [moved from aaa-shiro/src/main/java/org/opendaylight/aaa/shiro/realm/MoonRealm.java with 100% similarity]
aaa-shiro/impl/src/main/java/org/opendaylight/aaa/impl/shiro/realm/ODLActiveDirectoryRealm.java [moved from aaa-shiro/src/main/java/org/opendaylight/aaa/shiro/realm/ODLActiveDirectoryRealm.java with 100% similarity]
aaa-shiro/impl/src/main/java/org/opendaylight/aaa/impl/shiro/realm/ODLJdbcRealm.java [moved from aaa-shiro/src/main/java/org/opendaylight/aaa/shiro/realm/ODLJdbcRealm.java with 100% similarity]
aaa-shiro/impl/src/main/java/org/opendaylight/aaa/impl/shiro/realm/ODLJndiLdapRealm.java [moved from aaa-shiro/src/main/java/org/opendaylight/aaa/shiro/realm/ODLJndiLdapRealm.java with 100% similarity]
aaa-shiro/impl/src/main/java/org/opendaylight/aaa/impl/shiro/realm/ODLJndiLdapRealmAuthNOnly.java [moved from aaa-shiro/src/main/java/org/opendaylight/aaa/shiro/realm/ODLJndiLdapRealmAuthNOnly.java with 100% similarity]
aaa-shiro/impl/src/main/java/org/opendaylight/aaa/impl/shiro/realm/RadiusRealm.java [moved from aaa-shiro/src/main/java/org/opendaylight/aaa/shiro/realm/RadiusRealm.java with 100% similarity]
aaa-shiro/impl/src/main/java/org/opendaylight/aaa/impl/shiro/realm/TACACSRealm.java [moved from aaa-shiro/src/main/java/org/opendaylight/aaa/shiro/realm/TACACSRealm.java with 100% similarity]
aaa-shiro/impl/src/main/java/org/opendaylight/aaa/impl/shiro/realm/TokenAuthRealm.java [moved from aaa-shiro/src/main/java/org/opendaylight/aaa/shiro/realm/TokenAuthRealm.java with 100% similarity]
aaa-shiro/impl/src/main/java/org/opendaylight/aaa/impl/shiro/realm/mapping/api/GroupsToRolesMappingStrategy.java [moved from aaa-shiro/src/main/java/org/opendaylight/aaa/shiro/realm/mapping/api/GroupsToRolesMappingStrategy.java with 100% similarity]
aaa-shiro/impl/src/main/java/org/opendaylight/aaa/impl/shiro/realm/mapping/impl/BestAttemptGroupToRolesMappingStrategy.java [moved from aaa-shiro/src/main/java/org/opendaylight/aaa/shiro/realm/mapping/impl/BestAttemptGroupToRolesMappingStrategy.java with 100% similarity]
aaa-shiro/impl/src/main/java/org/opendaylight/aaa/impl/shiro/web/env/KarafIniWebEnvironment.java [moved from aaa-shiro/src/main/java/org/opendaylight/aaa/shiro/web/env/KarafIniWebEnvironment.java with 100% similarity]
aaa-shiro/impl/src/main/resources/WEB-INF/web.xml [moved from aaa-shiro/src/main/resources/WEB-INF/web.xml with 100% similarity]
aaa-shiro/impl/src/main/resources/org/opendaylight/blueprint/impl-blueprint.xml [new file with mode: 0644]
aaa-shiro/impl/src/main/resources/shiro.ini [moved from aaa-shiro/src/main/resources/shiro.ini with 100% similarity]
aaa-shiro/impl/src/test/java/org/opendaylight/aaa/shiro/ServiceProxyTest.java [moved from aaa-shiro/src/test/java/org/opendaylight/aaa/shiro/ServiceProxyTest.java with 100% similarity]
aaa-shiro/impl/src/test/java/org/opendaylight/aaa/shiro/TestAppender.java [moved from aaa-shiro/src/test/java/org/opendaylight/aaa/shiro/TestAppender.java with 100% similarity]
aaa-shiro/impl/src/test/java/org/opendaylight/aaa/shiro/filters/AuthenticationListenerTest.java [moved from aaa-shiro/src/test/java/org/opendaylight/aaa/shiro/filters/AuthenticationListenerTest.java with 100% similarity]
aaa-shiro/impl/src/test/java/org/opendaylight/aaa/shiro/filters/AuthenticationTokenUtilsTest.java [moved from aaa-shiro/src/test/java/org/opendaylight/aaa/shiro/filters/AuthenticationTokenUtilsTest.java with 100% similarity]
aaa-shiro/impl/src/test/java/org/opendaylight/aaa/shiro/realm/ODLJndiLdapRealmTest.java [moved from aaa-shiro/src/test/java/org/opendaylight/aaa/shiro/realm/ODLJndiLdapRealmTest.java with 100% similarity]
aaa-shiro/impl/src/test/java/org/opendaylight/aaa/shiro/realm/TokenAuthRealmTest.java [moved from aaa-shiro/src/test/java/org/opendaylight/aaa/shiro/realm/TokenAuthRealmTest.java with 100% similarity]
aaa-shiro/impl/src/test/java/org/opendaylight/aaa/shiro/realm/mapping/impl/BestAttemptGroupToRolesMappingStrategyTest.java [moved from aaa-shiro/src/test/java/org/opendaylight/aaa/shiro/realm/mapping/impl/BestAttemptGroupToRolesMappingStrategyTest.java with 100% similarity]
aaa-shiro/impl/src/test/java/org/opendaylight/aaa/shiro/web/env/KarafIniWebEnvironmentTest.java [moved from aaa-shiro/src/test/java/org/opendaylight/aaa/shiro/web/env/KarafIniWebEnvironmentTest.java with 100% similarity]
aaa-shiro/impl/src/test/resources/logback-test.xml [moved from aaa-shiro/src/test/resources/logback-test.xml with 100% similarity]
aaa-shiro/pom.xml
aaa-shiro/src/main/resources/stylesheet.css [new file with mode: 0644]
aaa-shiro/src/site/site.xml [new file with mode: 0644]
artifacts/pom.xml
pom.xml