public String toString() { String str = Long.toString(time); str += "\n" + cfActionType.toString(); if (cfContent != null) { str += "\n" + cfContent.toString(); } str += "\n" + cfUsers.toString(); str += "\n" + cfObjects.toString(); return str; }
public void replaceUserIds(Map<String, String> old2newId) { List<CfUser> users = getCfUsers(); for (CfUser user : users) { String newName = old2newId.get(user.getid()); if (newName != null) { cfContent.replaceStringInDescription(user.getid(), newName); user.setid(newName); } else { System.err.println("No new name for " + user.getid()); } } }