# HG changeset patch # User Robert Casties # Date 1528441766 -7200 # Node ID d1c2cf083c8d220e7c38a8bdec3eb3e5c7cda3dc # Parent fa7b1058b776860ec793fffacb46ea1e5498576c additional toString methods. diff -r fa7b1058b776 -r d1c2cf083c8d src/main/java/org/mpi/openmind/repository/bo/Entity.java --- a/src/main/java/org/mpi/openmind/repository/bo/Entity.java Tue May 29 21:20:49 2018 +0200 +++ b/src/main/java/org/mpi/openmind/repository/bo/Entity.java Fri Jun 08 09:09:26 2018 +0200 @@ -1051,7 +1051,7 @@ String idString = (this.getId() == null) ? "" : "id=" + getId() + ", "; return "Entity[" + rowIdString + idString + "oc=" + this.getObjectClass() + ", ov=" + this.getOwnValue() + ", user=" + getUser() + ", sysStatus=" + this.getSystemStatus() + - ", type=" + this.getType() + " att.size=" + this.attributes.size() + "]"; + ", type=" + this.getType() + " att.size=" + this.attributes.size() + " public=" + this.getIsPublic() + "]"; } /** @@ -1084,8 +1084,17 @@ return "!!!ENCODING-ERROR!!!"; } - public String getShortString(){ - return "[" + this.getId() + "] " + this.getOwnValue(); + public String getShortString() { + return "[" + this.getObjectClass() + " " + this.getId() + "] " + this.getOwnValue(); + } + + public static String getShortStringList(List entities) { + StringBuffer s = new StringBuffer(); + for (Entity ent : entities) { + s.append((s.length() > 0) ? ", " : ""); + s.append(ent.getShortString()); + } + return s.toString(); } /* (non-Javadoc)