aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-web
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2012-11-22 21:57:42 +0000
committerOlivier Lamy <olamy@apache.org>2012-11-22 21:57:42 +0000
commit7d747e1b9f262bc05454e56f51ca0d83d35aa4c3 (patch)
tree645566bbb90880cb62fa89e33cefe6fa2c8d4c6e /archiva-modules/archiva-web
parenta8544147e109cc3c25754fdb51c86a7165a2f0a1 (diff)
downloadarchiva-7d747e1b9f262bc05454e56f51ca0d83d35aa4c3.tar.gz
archiva-7d747e1b9f262bc05454e56f51ca0d83d35aa4c3.zip
remove some others Object parameters type
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1412690 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-web')
-rw-r--r--archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/web/rss/SecuritySystemStub.java8
-rw-r--r--archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/BypassSecuritySystem.java8
2 files changed, 8 insertions, 8 deletions
diff --git a/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/web/rss/SecuritySystemStub.java b/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/web/rss/SecuritySystemStub.java
index f49979acb..a55fb8e77 100644
--- a/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/web/rss/SecuritySystemStub.java
+++ b/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/web/rss/SecuritySystemStub.java
@@ -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 ) )
diff --git a/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/BypassSecuritySystem.java b/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/BypassSecuritySystem.java
index 38c3f743b..dc45bf603 100644
--- a/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/BypassSecuritySystem.java
+++ b/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/BypassSecuritySystem.java
@@ -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