remove some others Object parameters type

git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1412688 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-11-22 21:56:16 +00:00
parent a45cb572c4
commit 1747f702c9
2 changed files with 8 additions and 8 deletions

View File

@ -145,13 +145,13 @@ public class DefaultSecuritySystem
// Authorization: delegate to the authorizer // Authorization: delegate to the authorizer
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
public AuthorizationResult authorize( SecuritySession session, Object permission ) public AuthorizationResult authorize( SecuritySession session, String permission )
throws AuthorizationException throws AuthorizationException
{ {
return authorize( session, permission, null ); return authorize( session, permission, null );
} }
public AuthorizationResult authorize( SecuritySession session, Object permission, Object resource ) public AuthorizationResult authorize( SecuritySession session, String permission, String resource )
throws AuthorizationException throws AuthorizationException
{ {
AuthorizationDataSource source = null; AuthorizationDataSource source = null;
@ -173,13 +173,13 @@ public class DefaultSecuritySystem
return authorizer.isAuthorized( source ); return authorizer.isAuthorized( source );
} }
public boolean isAuthorized( SecuritySession session, Object permission ) public boolean isAuthorized( SecuritySession session, String permission )
throws AuthorizationException throws AuthorizationException
{ {
return isAuthorized( session, permission, null ); return isAuthorized( session, permission, null );
} }
public boolean isAuthorized( SecuritySession session, Object permission, Object resource ) public boolean isAuthorized( SecuritySession session, String permission, String resource )
throws AuthorizationException throws AuthorizationException
{ {
return authorize( session, permission, resource ).isAuthorized(); return authorize( session, permission, resource ).isAuthorized();

View File

@ -53,10 +53,10 @@ public interface SecuritySystem
// Authorization // Authorization
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
AuthorizationResult authorize( SecuritySession session, Object permission ) AuthorizationResult authorize( SecuritySession session, String permission )
throws AuthorizationException; throws AuthorizationException;
boolean isAuthorized( SecuritySession session, Object permission ) boolean isAuthorized( SecuritySession session, String permission )
throws AuthorizationException; throws AuthorizationException;
/** /**
@ -67,10 +67,10 @@ public interface SecuritySystem
* @return * @return
* @throws AuthorizationException * @throws AuthorizationException
*/ */
AuthorizationResult authorize( SecuritySession session, Object permission, Object resource ) AuthorizationResult authorize( SecuritySession session, String permission, String resource )
throws AuthorizationException; throws AuthorizationException;
boolean isAuthorized( SecuritySession session, Object permission, Object resource ) boolean isAuthorized( SecuritySession session, String permission, String resource )
throws AuthorizationException; throws AuthorizationException;
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------