continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From car...@apache.org
Subject svn commit: r441872 - in /maven/continuum/branches/continuum-acegi/continuum-core/src: main/java/org/apache/maven/continuum/initialization/DefaultContinuumInitializer.java test/java/org/apache/maven/continuum/security/DefaultContinuumSecurityTest.java
Date Sat, 09 Sep 2006 23:00:05 GMT
Author: carlos
Date: Sat Sep  9 16:00:04 2006
New Revision: 441872

URL: http://svn.apache.org/viewvc?view=rev&rev=441872
Log:
Remove project Roles and fix logging

Modified:
    maven/continuum/branches/continuum-acegi/continuum-core/src/main/java/org/apache/maven/continuum/initialization/DefaultContinuumInitializer.java
    maven/continuum/branches/continuum-acegi/continuum-core/src/test/java/org/apache/maven/continuum/security/DefaultContinuumSecurityTest.java

Modified: maven/continuum/branches/continuum-acegi/continuum-core/src/main/java/org/apache/maven/continuum/initialization/DefaultContinuumInitializer.java
URL: http://svn.apache.org/viewvc/maven/continuum/branches/continuum-acegi/continuum-core/src/main/java/org/apache/maven/continuum/initialization/DefaultContinuumInitializer.java?view=diff&rev=441872&r1=441871&r2=441872
==============================================================================
--- maven/continuum/branches/continuum-acegi/continuum-core/src/main/java/org/apache/maven/continuum/initialization/DefaultContinuumInitializer.java
(original)
+++ maven/continuum/branches/continuum-acegi/continuum-core/src/main/java/org/apache/maven/continuum/initialization/DefaultContinuumInitializer.java
Sat Sep  9 16:00:04 2006
@@ -87,7 +87,7 @@
         
         if ( getLogger().isDebugEnabled() )
         {
-            getLogger().info( "Dumping JPOX/JDO Schema Details ..." );
+            getLogger().debug( "Dumping JPOX/JDO Schema Details ..." );
             try
             {
                 SchemaTool.outputDBInfo( null, true );
@@ -95,7 +95,7 @@
             }
             catch ( Exception e )
             {
-                e.printStackTrace( System.err );
+                getLogger().debug( "Error while dumping the database schema", e );
             }
         }
 
@@ -144,6 +144,8 @@
             {
             	createDefaultUsers();
             }
+
+            getLogger().info( "... Continuum initialized" );
         }
         catch ( ContinuumStoreException e )
         {
@@ -181,16 +183,6 @@
         throws ContinuumStoreException
     {
         createPermission( "addProject", "Add Projects" );
-
-        createPermission( "editProject", "Edit Projects" );
-
-        createPermission( "deleteProject", "Delete Projects" );
-
-        createPermission( "buildProject", "Build Projects" );
-
-        createPermission( "showProject", "Show Projects" );
-
-        createPermission( "addBuildDefinitionToProject", "Add Build Definitions" );
 
         createPermission( "editBuildDefinition", "Edit Build Definitions" );
 

Modified: maven/continuum/branches/continuum-acegi/continuum-core/src/test/java/org/apache/maven/continuum/security/DefaultContinuumSecurityTest.java
URL: http://svn.apache.org/viewvc/maven/continuum/branches/continuum-acegi/continuum-core/src/test/java/org/apache/maven/continuum/security/DefaultContinuumSecurityTest.java?view=diff&rev=441872&r1=441871&r2=441872
==============================================================================
--- maven/continuum/branches/continuum-acegi/continuum-core/src/test/java/org/apache/maven/continuum/security/DefaultContinuumSecurityTest.java
(original)
+++ maven/continuum/branches/continuum-acegi/continuum-core/src/test/java/org/apache/maven/continuum/security/DefaultContinuumSecurityTest.java
Sat Sep  9 16:00:04 2006
@@ -46,8 +46,6 @@
 
         assertEquals( "guest", guest.getUsername() );
 
-        assertTrue( secu.isAuthorized( guest, "showProject") );
-
         assertFalse( secu.isAuthorized( guest, "addProject") );
 
         assertFalse( secu.isAuthorized( guest, "manageUsers") );



Mime
View raw message