From 0669f3758a5be6a916beeaa112379c170067c8e7 Mon Sep 17 00:00:00 2001 From: j2blake Date: Wed, 20 Apr 2011 17:12:22 +0000 Subject: [PATCH] Add toString() methods for easier diagnosis. --- .../webapp/auth/identifier/HasAssociatedIndividual.java | 6 ++++++ .../mannlib/vitro/webapp/auth/identifier/HasRoleLevel.java | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/webapp/src/edu/cornell/mannlib/vitro/webapp/auth/identifier/HasAssociatedIndividual.java b/webapp/src/edu/cornell/mannlib/vitro/webapp/auth/identifier/HasAssociatedIndividual.java index 57fd06eec..b012d02f0 100644 --- a/webapp/src/edu/cornell/mannlib/vitro/webapp/auth/identifier/HasAssociatedIndividual.java +++ b/webapp/src/edu/cornell/mannlib/vitro/webapp/auth/identifier/HasAssociatedIndividual.java @@ -192,4 +192,10 @@ public class HasAssociatedIndividual implements Identifier { public boolean isBlacklisted() { return reasonForBlacklisting != NOT_BLACKLISTED; } + + @Override + public String toString() { + return "HasAssociatedIndividual['" + associatedIndividualUri + + "', blacklist='" + reasonForBlacklisting + "']"; + } } diff --git a/webapp/src/edu/cornell/mannlib/vitro/webapp/auth/identifier/HasRoleLevel.java b/webapp/src/edu/cornell/mannlib/vitro/webapp/auth/identifier/HasRoleLevel.java index 2b0d2019b..29d3759b5 100644 --- a/webapp/src/edu/cornell/mannlib/vitro/webapp/auth/identifier/HasRoleLevel.java +++ b/webapp/src/edu/cornell/mannlib/vitro/webapp/auth/identifier/HasRoleLevel.java @@ -17,4 +17,9 @@ public class HasRoleLevel implements Identifier { public RoleLevel getRoleLevel() { return roleLevel; } + + @Override + public String toString() { + return "HasRoleLevel[" + roleLevel + "]"; + } }