From a45cb572c4af17cc8cea1b646580179ef96142e7 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Thu, 22 Nov 2012 21:56:00 +0000 Subject: [PATCH] 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 --- .../authorization/AuthorizationDataSource.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/redback-authorization/redback-authorization-api/src/main/java/org/apache/archiva/redback/authorization/AuthorizationDataSource.java b/redback-authorization/redback-authorization-api/src/main/java/org/apache/archiva/redback/authorization/AuthorizationDataSource.java index 48da9d10..3f7b5bcc 100644 --- a/redback-authorization/redback-authorization-api/src/main/java/org/apache/archiva/redback/authorization/AuthorizationDataSource.java +++ b/redback-authorization/redback-authorization-api/src/main/java/org/apache/archiva/redback/authorization/AuthorizationDataSource.java @@ -28,20 +28,20 @@ public class AuthorizationDataSource { 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.user = user; 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.user = user; @@ -69,22 +69,22 @@ public class AuthorizationDataSource this.user = user; } - public Object getPermission() + public String getPermission() { return permission; } - public void setPermission( Object permission ) + public void setPermission( String permission ) { this.permission = permission; } - public Object getResource() + public String getResource() { return resource; } - public void setResource( Object resource ) + public void setResource( String resource ) { this.resource = resource; }