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
This commit is contained in:
Olivier Lamy 2013-01-05 15:07:38 +00:00
parent 55dddc8bc0
commit 860be7f218
2 changed files with 14 additions and 1 deletions

View File

@ -88,4 +88,17 @@ public class AuthorizationDataSource
{ {
this.resource = resource; 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();
}
} }

View File

@ -40,6 +40,6 @@ public class LdapAuthorizer
public AuthorizationResult isAuthorized( AuthorizationDataSource source ) public AuthorizationResult isAuthorized( AuthorizationDataSource source )
throws AuthorizationException throws AuthorizationException
{ {
return null; //To change body of implemented methods use File | Settings | File Templates. return null;
} }
} }