Apply formatting
[proteocache.git] / datadb / compbio / cassandra / CassandraUserManager.java
index e2158f7..f810107 100644 (file)
@@ -37,7 +37,7 @@ public class CassandraUserManager implements UserManager {
                        if (0 < users.all().size()) {
                                throw new DataIntegrityViolationException("A user with email " + user.getEmail() + " exists");
                        }
-                       
+
                } catch (QueryExecutionException e) {
                        String mess = "CassandraUserManagerImpl.addUser: query execution exception...";
                        System.out.println(mess);
@@ -62,7 +62,8 @@ public class CassandraUserManager implements UserManager {
                                        String test = list.get(0).getString("Value");
                                        id = Long.parseLong(test, 10);
                                } else {
-                                       // if the MaxUserId parameter does not exist it is inserted with id = 1
+                                       // if the MaxUserId parameter does not exist it is inserted
+                                       // with id = 1
                                        id = 0;
                                }
                                id++;
@@ -84,9 +85,8 @@ public class CassandraUserManager implements UserManager {
                }
 
                String incom = "INSERT INTO Users (name, id, email, password, organisation, position, signedtolist, registrationdate) VALUES ('"
-                               + user.getFullName() + "'," + id + ",'" + user.getEmail() + "','" + user.getPassword() + "','"
-                               + user.getOrganisation() + "','" + user.getPosition() + "'," + user.isUpdateByEmail() + ","
-                               + user.getRegistrationDate().getTime() + ");";
+                               + user.getFullName() + "'," + id + ",'" + user.getEmail() + "','" + user.getPassword() + "','" + user.getOrganisation()
+                               + "','" + user.getPosition() + "'," + user.isUpdateByEmail() + "," + user.getRegistrationDate().getTime() + ");";
                try {
                        session.execute(incom);
                } catch (QueryExecutionException e) {