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:
parent
a45cb572c4
commit
1747f702c9
|
@ -145,13 +145,13 @@ public class DefaultSecuritySystem
|
|||
// Authorization: delegate to the authorizer
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
public AuthorizationResult authorize( SecuritySession session, Object permission )
|
||||
public AuthorizationResult authorize( SecuritySession session, String permission )
|
||||
throws AuthorizationException
|
||||
{
|
||||
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
|
||||
{
|
||||
AuthorizationDataSource source = null;
|
||||
|
@ -173,13 +173,13 @@ public class DefaultSecuritySystem
|
|||
return authorizer.isAuthorized( source );
|
||||
}
|
||||
|
||||
public boolean isAuthorized( SecuritySession session, Object permission )
|
||||
public boolean isAuthorized( SecuritySession session, String permission )
|
||||
throws AuthorizationException
|
||||
{
|
||||
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
|
||||
{
|
||||
return authorize( session, permission, resource ).isAuthorized();
|
||||
|
|
|
@ -53,10 +53,10 @@ public interface SecuritySystem
|
|||
// Authorization
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
AuthorizationResult authorize( SecuritySession session, Object permission )
|
||||
AuthorizationResult authorize( SecuritySession session, String permission )
|
||||
throws AuthorizationException;
|
||||
|
||||
boolean isAuthorized( SecuritySession session, Object permission )
|
||||
boolean isAuthorized( SecuritySession session, String permission )
|
||||
throws AuthorizationException;
|
||||
|
||||
/**
|
||||
|
@ -67,10 +67,10 @@ public interface SecuritySystem
|
|||
* @return
|
||||
* @throws AuthorizationException
|
||||
*/
|
||||
AuthorizationResult authorize( SecuritySession session, Object permission, Object resource )
|
||||
AuthorizationResult authorize( SecuritySession session, String permission, String resource )
|
||||
throws AuthorizationException;
|
||||
|
||||
boolean isAuthorized( SecuritySession session, Object permission, Object resource )
|
||||
boolean isAuthorized( SecuritySession session, String permission, String resource )
|
||||
throws AuthorizationException;
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue