From: Olivier Lamy Date: Sat, 5 Jan 2013 15:07:38 +0000 (+0000) Subject: better toString for debuging purpose X-Git-Tag: redback-2.1~146 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=860be7f218357feb7a3cf2f3d995d269a3845449;p=archiva.git better toString for debuging purpose git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1429304 13f79535-47bb-0310-9956-ffa450edef68 --- 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 3f7b5bccf..392527a14 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 @@ -88,4 +88,17 @@ public class AuthorizationDataSource { this.resource = resource; } + + @Override + public String toString() + { + final StringBuilder sb = new StringBuilder(); + sb.append( "AuthorizationDataSource" ); + sb.append( "{principal='" ).append( principal ).append( '\'' ); + sb.append( ", user=" ).append( user ); + sb.append( ", permission='" ).append( permission ).append( '\'' ); + sb.append( ", resource='" ).append( resource ).append( '\'' ); + sb.append( '}' ); + return sb.toString(); + } } diff --git a/redback-authorization/redback-authorization-providers/redback-authorization-ldap/src/main/java/org/apache/archiva/redback/authorization/ldap/LdapAuthorizer.java b/redback-authorization/redback-authorization-providers/redback-authorization-ldap/src/main/java/org/apache/archiva/redback/authorization/ldap/LdapAuthorizer.java index edf09a7b0..969a8a0a7 100644 --- a/redback-authorization/redback-authorization-providers/redback-authorization-ldap/src/main/java/org/apache/archiva/redback/authorization/ldap/LdapAuthorizer.java +++ b/redback-authorization/redback-authorization-providers/redback-authorization-ldap/src/main/java/org/apache/archiva/redback/authorization/ldap/LdapAuthorizer.java @@ -40,6 +40,6 @@ public class LdapAuthorizer public AuthorizationResult isAuthorized( AuthorizationDataSource source ) throws AuthorizationException { - return null; //To change body of implemented methods use File | Settings | File Templates. + return null; } }