archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1412690 - in /archiva/trunk/archiva-modules/archiva-web: archiva-web-common/src/test/java/org/apache/archiva/web/rss/SecuritySystemStub.java archiva-webdav/src/test/java/org/apache/archiva/webdav/BypassSecuritySystem.java
Date Thu, 22 Nov 2012 21:57:43 GMT
Author: olamy
Date: Thu Nov 22 21:57:42 2012
New Revision: 1412690

URL: http://svn.apache.org/viewvc?rev=1412690&view=rev
Log:
remove some others Object parameters type

Modified:
    archiva/trunk/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/web/rss/SecuritySystemStub.java
    archiva/trunk/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/BypassSecuritySystem.java

Modified: archiva/trunk/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/web/rss/SecuritySystemStub.java
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/web/rss/SecuritySystemStub.java?rev=1412690&r1=1412689&r2=1412690&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/web/rss/SecuritySystemStub.java
(original)
+++ archiva/trunk/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/web/rss/SecuritySystemStub.java
Thu Nov 22 21:57:42 2012
@@ -88,13 +88,13 @@ public class SecuritySystemStub
         return session;
     }
 
-    public AuthorizationResult authorize( SecuritySession arg0, Object arg1 )
+    public AuthorizationResult authorize( SecuritySession arg0, String arg1 )
         throws AuthorizationException
     {
         return null;
     }
 
-    public AuthorizationResult authorize( SecuritySession arg0, Object arg1, Object arg2
)
+    public AuthorizationResult authorize( SecuritySession arg0, String arg1, String arg2
)
         throws AuthorizationException
     {
         AuthorizationResult result = new AuthorizationResult( true, arg1, null );
@@ -560,13 +560,13 @@ public class SecuritySystemStub
         return false;
     }
 
-    public boolean isAuthorized( SecuritySession arg0, Object arg1 )
+    public boolean isAuthorized( SecuritySession arg0, String arg1 )
         throws AuthorizationException
     {
         return false;
     }
 
-    public boolean isAuthorized( SecuritySession arg0, Object arg1, Object arg2 )
+    public boolean isAuthorized( SecuritySession arg0, String arg1, String arg2 )
         throws AuthorizationException
     {
         if ( repoIds.contains( arg2 ) )

Modified: archiva/trunk/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/BypassSecuritySystem.java
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/BypassSecuritySystem.java?rev=1412690&r1=1412689&r2=1412690&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/BypassSecuritySystem.java
(original)
+++ archiva/trunk/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/BypassSecuritySystem.java
Thu Nov 22 21:57:42 2012
@@ -67,13 +67,13 @@ public class BypassSecuritySystem
         return new DefaultSecuritySession( result );
     }
 
-    public AuthorizationResult authorize( SecuritySession session, Object permission )
+    public AuthorizationResult authorize( SecuritySession session, String permission )
         throws AuthorizationException
     {
         return new AuthorizationResult( true, session.getUser(), null );
     }
 
-    public AuthorizationResult authorize( SecuritySession session, Object permission, Object
resource )
+    public AuthorizationResult authorize( SecuritySession session, String permission, String
resource )
         throws AuthorizationException
     {
         return new AuthorizationResult( true, session.getUser(), null );
@@ -116,14 +116,14 @@ public class BypassSecuritySystem
         return true;
     }
 
-    public boolean isAuthorized( SecuritySession session, Object permission )
+    public boolean isAuthorized( SecuritySession session, String permission )
         throws AuthorizationException
     {
         // Always true
         return true;
     }
 
-    public boolean isAuthorized( SecuritySession session, Object permission, Object resource
)
+    public boolean isAuthorized( SecuritySession session, String permission, String resource
)
         throws AuthorizationException
     {
         // Always true



Mime
View raw message