use real type rather than Object

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

View File

@ -28,20 +28,20 @@ public class AuthorizationDataSource
{ {
private String principal; private String principal;
User user; private User user;
Object permission; private String permission;
Object resource; private String resource;
public AuthorizationDataSource( String principal, User user, Object permission ) public AuthorizationDataSource( String principal, User user, String permission )
{ {
this.principal = principal; this.principal = principal;
this.user = user; this.user = user;
this.permission = permission; this.permission = permission;
} }
public AuthorizationDataSource( String principal, User user, Object permission, Object resource ) public AuthorizationDataSource( String principal, User user, String permission, String resource )
{ {
this.principal = principal; this.principal = principal;
this.user = user; this.user = user;
@ -69,22 +69,22 @@ public class AuthorizationDataSource
this.user = user; this.user = user;
} }
public Object getPermission() public String getPermission()
{ {
return permission; return permission;
} }
public void setPermission( Object permission ) public void setPermission( String permission )
{ {
this.permission = permission; this.permission = permission;
} }
public Object getResource() public String getResource()
{ {
return resource; return resource;
} }
public void setResource( Object resource ) public void setResource( String resource )
{ {
this.resource = resource; this.resource = resource;
} }