(no commit message)
[utils] / security / src / main / java / org / wamblee / usermgt / hibernate / UserAdministrationComponent.java
similarity index 82%
rename from security/src/main/java/org/wamblee/usermgt/UserAdministrationComponent.java
rename to security/src/main/java/org/wamblee/usermgt/hibernate/UserAdministrationComponent.java
index e073442a7c2626d3800d54fccd4d8cbd43ba7416..57301e73377d547a0ad1ab927ca46ee3f2ad3bf4 100644 (file)
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.wamblee.usermgt;
+package org.wamblee.usermgt.hibernate;
 
 import java.io.IOException;
 
@@ -28,7 +28,8 @@ import org.wamblee.system.core.DefaultProvidedInterface;
 import org.wamblee.system.core.DefaultRequiredInterface;
 import org.wamblee.system.core.ProvidedInterface;
 import org.wamblee.system.core.Scope;
-import org.wamblee.usermgt.hibernate.UsermgtHibernateMappingFiles;
+import org.wamblee.usermgt.UserAdministration;
+import org.wamblee.usermgt.UserGroupRepositoryComponent;
 
 public class UserAdministrationComponent extends DefaultContainer {
 
@@ -41,26 +42,19 @@ public class UserAdministrationComponent extends DefaultContainer {
     private ProvidedInterface USER_MGT = new DefaultProvidedInterface(
             "usermgt", UserAdministration.class);
 
-    private Component<?> _hibernate;
-    private Component<?> _repository;
-    private Component<?> _usermgt;
-
-    private boolean _exposeInternals;
-
     public UserAdministrationComponent(String aName, boolean aExposeInternals)
             throws IOException {
         super(aName);
-        _exposeInternals = aExposeInternals;
-
+        
         addComponent("mappingFiles", new UsermgtHibernateMappingFiles());
 
-        _hibernate = new HibernateComponent("hibernate");
+        Component<?> _hibernate = new HibernateComponent("hibernate");
         addComponent(_hibernate);
 
-        _repository = new UserGroupRepositoryComponent("usersgroups");
+        Component<?> _repository = new UserGroupRepositoryComponent("usersgroups");
         addComponent(_repository);
 
-        _usermgt = new UserAdministrationLightComponent("usermgtlight");
+        Component<?> _usermgt = new UserAdministrationLightComponent("usermgtlight");
         addComponent(_usermgt);
 
         addRequiredInterface(new DefaultRequiredInterface("datasource",