]> source.dussan.org Git - archiva.git/commitdiff
package change for redback-users-jdo generated classes
authorOlivier Lamy <olamy@apache.org>
Mon, 9 Apr 2012 20:17:11 +0000 (20:17 +0000)
committerOlivier Lamy <olamy@apache.org>
Mon, 9 Apr 2012 20:17:11 +0000 (20:17 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1311412 13f79535-47bb-0310-9956-ffa450edef68

redback-data-management/src/main/java/org/apache/archiva/redback/management/JdoDataManagementTool.java
redback-users/redback-users-providers/redback-users-jdo/pom.xml
redback-users/redback-users-providers/redback-users-jdo/src/main/java/org/apache/archiva/redback/users/jdo/JdoUserManager.java
redback-users/redback-users-providers/redback-users-jdo/src/main/mdo/user.mdo
redback-users/redback-users-providers/redback-users-jdo/src/test/java/org/apache/archiva/redback/users/jdo/JdoUserManagerTest.java

index 82c7a2bb30c7837959e314c23ea6f6bcabea6af1..59e9edea6ba28a28c2844a7de4344481b2a95af9 100644 (file)
@@ -52,9 +52,9 @@ import org.apache.archiva.redback.rbac.RBACManager;
 import org.apache.archiva.redback.rbac.Resource;
 import org.apache.archiva.redback.rbac.UserAssignment;
 import org.apache.archiva.redback.users.User;
-import org.codehaus.plexus.redback.users.jdo.UserDatabase;
-import org.codehaus.plexus.redback.users.jdo.io.stax.UsersManagementStaxReader;
-import org.codehaus.plexus.redback.users.jdo.io.stax.UsersManagementStaxWriter;
+import org.apache.archiva.redback.users.jdo.UserDatabase;
+import org.apache.archiva.redback.users.jdo.io.stax.UsersManagementStaxReader;
+import org.apache.archiva.redback.users.jdo.io.stax.UsersManagementStaxWriter;
 import org.codehaus.plexus.util.IOUtil;
 import org.springframework.stereotype.Service;
 
index 8dc4f990d9e3c91d735092349692fd3c00396884..e53118f65e6cc3751aaf187f72840ba92372f090 100644 (file)
               <goal>jpox-jdo-mapping</goal>
             </goals>
             <configuration>
-              <outputDirectory>${basedir}/target/classes/org/codehaus/plexus/redback/users/jdo</outputDirectory>
+              <outputDirectory>${basedir}/target/classes/org/apache/archiva/redback/users/jdo</outputDirectory>
             </configuration>
           </execution>
         </executions>
index 9d0125f1a97ae476f6c585af745888c6712958bf..8de8bce7aa1a4ac20f6da9684dd347eb45bc2d5b 100644 (file)
@@ -21,17 +21,15 @@ package org.apache.archiva.redback.users.jdo;
 
 import org.apache.archiva.redback.policy.UserSecurityPolicy;
 import org.apache.archiva.redback.users.AbstractUserManager;
+import org.apache.archiva.redback.users.PermanentUserException;
 import org.apache.archiva.redback.users.User;
 import org.apache.archiva.redback.users.UserManagerException;
 import org.apache.archiva.redback.users.UserNotFoundException;
+import org.apache.archiva.redback.users.UserQuery;
 import org.codehaus.plexus.jdo.JdoFactory;
 import org.codehaus.plexus.jdo.PlexusJdoUtils;
 import org.codehaus.plexus.jdo.PlexusObjectNotFoundException;
 import org.codehaus.plexus.jdo.PlexusStoreException;
-import org.apache.archiva.redback.users.PermanentUserException;
-import org.apache.archiva.redback.users.UserQuery;
-import org.codehaus.plexus.redback.users.jdo.JdoUser;
-import org.codehaus.plexus.redback.users.jdo.UsersManagementModelloMetadata;
 import org.codehaus.plexus.util.StringUtils;
 import org.jpox.JDOClassLoaderResolver;
 import org.springframework.stereotype.Service;
@@ -44,7 +42,6 @@ import javax.jdo.PersistenceManager;
 import javax.jdo.PersistenceManagerFactory;
 import javax.jdo.Query;
 import javax.jdo.Transaction;
-
 import java.util.Date;
 import java.util.List;
 
@@ -54,11 +51,12 @@ import java.util.List;
  * @author <a href="mailto:joakim@erdfelt.com">Joakim Erdfelt</a>
  * @version $Id$
  */
-@Service("userManager#jdo")
+@Service( "userManager#jdo" )
 public class JdoUserManager
     extends AbstractUserManager
 {
-    @Inject @Named(value="jdoFactory#users")
+    @Inject
+    @Named( value = "jdoFactory#users" )
     private JdoFactory jdoFactory;
 
     @Inject
@@ -107,7 +105,7 @@ public class JdoUserManager
         return getAllObjectsDetached( ordering );
     }
 
-    @SuppressWarnings("unchecked")
+    @SuppressWarnings( "unchecked" )
     private List<User> getAllObjectsDetached( String ordering )
     {
         return PlexusJdoUtils.getAllObjectsDetached( getPersistenceManager(), JdoUser.class, ordering, (String) null );
@@ -128,7 +126,7 @@ public class JdoUserManager
         return findUsers( "email", emailKey, orderAscending );
     }
 
-    @SuppressWarnings("unchecked")
+    @SuppressWarnings( "unchecked" )
     public List<User> findUsersByQuery( UserQuery userQuery )
     {
         JdoUserQuery uq = (JdoUserQuery) userQuery;
@@ -172,7 +170,7 @@ public class JdoUserManager
         }
     }
 
-    @SuppressWarnings("unchecked")
+    @SuppressWarnings( "unchecked" )
     private List<User> findUsers( String searchField, String searchKey, boolean ascendingUsername )
     {
         PersistenceManager pm = getPersistenceManager();
@@ -216,7 +214,7 @@ public class JdoUserManager
         if ( !( user instanceof JdoUser ) )
         {
             throw new UserManagerException( "Unable to Add User. User object " + user.getClass().getName() +
-                " is not an instance of " + JdoUser.class.getName() );
+                                                " is not an instance of " + JdoUser.class.getName() );
         }
 
         if ( StringUtils.isEmpty( user.getUsername() ) )
@@ -292,7 +290,7 @@ public class JdoUserManager
         if ( !( user instanceof JdoUser ) )
         {
             throw new UserManagerException( "Unable to Add User. User object " + user.getClass().getName() +
-                " is not an instance of " + JdoUser.class.getName() );
+                                                " is not an instance of " + JdoUser.class.getName() );
         }
 
         if ( StringUtils.isEmpty( user.getUsername() ) )
@@ -369,7 +367,7 @@ public class JdoUserManager
         if ( !( user instanceof JdoUser ) )
         {
             throw new UserManagerException( "Unable to Update User. User object " + user.getClass().getName() +
-                " is not an instance of " + JdoUser.class.getName() );
+                                                " is not an instance of " + JdoUser.class.getName() );
         }
 
         // If password is supplied, assume changing of password.
@@ -427,7 +425,7 @@ public class JdoUserManager
         catch ( PlexusStoreException e )
         {
             throw new UserManagerException( "Unable to get object '" + JdoUser.class.getName() + "', id '" + id +
-                "', fetch-group '" + fetchGroup + "' from jdo store." );
+                                                "', fetch-group '" + fetchGroup + "' from jdo store." );
         }
     }
 
index d1a97bff27454992b8babf0491353520e00b2028..a0c90ca1b8c310f50c0e8df2121286275a56b688 100644 (file)
   <id>redback-users-jdo</id>
   <name>UsersManagement</name>
   <version>1.0.1</version>
-  <description>Plexus Redback Users object model.</description>
+  <description>Archiva Redback Users object model.</description>
   <defaults>
     <default>
       <key>package</key>
-      <value>org.codehaus.plexus.redback.users.jdo</value>
+      <value>org.apache.archiva.redback.users.jdo</value>
     </default>
   </defaults>
 
index c57b82f792a665d6249b62d7ba133d2a295e4c4a..e0ab05a5f9a70a6e8f132f5a27101f343e751508 100644 (file)
@@ -90,7 +90,7 @@ public class JdoUserManagerTest
         StoreManagerDebug.setup( (AbstractPersistenceManagerFactory) pmf );
 
         SchemaTool.createSchemaTables(
-            new URL[]{ getClass().getResource( "/org/codehaus/plexus/redback/users/jdo/package.jdo" ) }, new URL[]{ },
+            new URL[]{ getClass().getResource( "/org/apache/archiva/redback/users/jdo/package.jdo" ) }, new URL[]{ },
             null, false, null ); //$NON-NLS-1$
 
         PersistenceManager pm = pmf.getPersistenceManager();