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:
parent
55dddc8bc0
commit
860be7f218
|
@ -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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue