All Commons modules building (Eclipse included)
[lgpl/argeo-commons.git] / org.argeo.security.ui.admin / src / org / argeo / security / ui / admin / editors / ArgeoUserEditor.java
index 990c4ac82f1bd26d5d0e36d8e1e7ec5091d62920..86ae86ae94a7ea5539299a84da7d1ca24dfd04ef 100644 (file)
@@ -15,6 +15,8 @@
  */
 package org.argeo.security.ui.admin.editors;
 
+import java.util.ArrayList;
+
 import javax.jcr.Node;
 import javax.jcr.Repository;
 import javax.jcr.RepositoryException;
@@ -33,7 +35,7 @@ import org.eclipse.ui.IEditorSite;
 import org.eclipse.ui.IWorkbench;
 import org.eclipse.ui.PartInitException;
 import org.eclipse.ui.forms.editor.FormEditor;
-import org.springframework.security.GrantedAuthority;
+import org.springframework.security.core.GrantedAuthority;
 
 /** Editor for an Argeo user. */
 public class ArgeoUserEditor extends FormEditor {
@@ -64,10 +66,9 @@ public class ArgeoUserEditor extends FormEditor {
                                                + username, e);
                        }
                } else {
-                       GrantedAuthority[] authorities = {};
                        try {
                                userDetails = new JcrUserDetails(session, username, null,
-                                               authorities);
+                                               new ArrayList<GrantedAuthority>());
                        } catch (RepositoryException e) {
                                throw new ArgeoException("Cannot retrieve disabled JCR profile");
                        }