@Override public String toString() { return "ResourceEventDescription(delta=" + delta + ", currentShadow=" + SchemaDebugUtil.prettyPrint(currentShadow) + ", oldShadow=" + SchemaDebugUtil.prettyPrint(oldShadow) + ", sourceChannel=" + sourceChannel + ")"; }
public static void debugDump(StringBuilder sb, ObjectReferenceType ref, int indent) { indentDebugDump(sb, indent); // TODO: Maybe more detailed dump later sb.append(prettyPrint(ref)); }
public static String shortDumpOrderConstraintsList(List<OrderConstraintsType> orderConstraints) { StringBuilder sb = new StringBuilder(); shortDumpOrderConstraintsList(sb, orderConstraints); return sb.toString(); }
public static String debugDumpXsdAnyProperties(Collection<?> xsdAnyCollection, int indent) { StringBuilder sb = new StringBuilder(); indentDebugDump(sb, indent); sb.append(getCollectionOpeningSymbol(xsdAnyCollection)); for (Object element : xsdAnyCollection) { sb.append("\n"); indentDebugDump(sb, indent+1); sb.append(prettyPrintElementAsProperty(element)); } sb.append("\n"); indentDebugDump(sb, indent); sb.append(getCollectionClosingSymbol(xsdAnyCollection)); return sb.toString(); }
public static String prettyPrint(Collection<?> collection) { if (collection == null) { return null; } StringBuilder sb = new StringBuilder(getCollectionOpeningSymbol(collection)); Iterator<?> iterator = collection.iterator(); while (iterator.hasNext()) { sb.append(prettyPrint(iterator.next())); if (iterator.hasNext()) { sb.append(","); } } sb.append(getCollectionClosingSymbol(collection)); return sb.toString(); }
LOGGER.debug("PROVISIONING ADD operation on resource {}\n ADD object:\n{}\n additional operations:\n{}", resource.asPrismObject(), shadowType.asPrismObject().debugDump(), SchemaDebugUtil.debugDump(additionalOperations,2)); SchemaDebugUtil.prettyPrint(resourceAttributesAfterAdd));
@Override public String debugDump(int indent) { StringBuilder sb = new StringBuilder(); SchemaDebugUtil.indentDebugDump(sb, indent); sb.append("Script execution "); sb.append(toStringInternal()); return sb.toString(); }
public static void debugDump(StringBuilder sb, Collection<ObjectReferenceType> refs, int indent) { Iterator<ObjectReferenceType> iterator = refs.iterator(); while (iterator.hasNext()) { ObjectReferenceType ref = iterator.next(); if (ref == null) { indentDebugDump(sb, indent + 1); sb.append("null"); } else { debugDump(sb, ref, indent + 1); } if (iterator.hasNext()) { sb.append("\n"); } } }
public static String debugDump(Collection<? extends DebugDumpable> dumpables, int indent) { StringBuilder sb = new StringBuilder(); indentDebugDump(sb, indent); sb.append(getCollectionOpeningSymbol(dumpables)); if (!dumpables.isEmpty()) { sb.append("\n"); for (DebugDumpable dd : dumpables) { if (dd == null) { indentDebugDump(sb, indent + 1); sb.append("null"); } else { sb.append(dd.debugDump(indent + 1)); } sb.append("\n"); } indentDebugDump(sb, indent); } sb.append(getCollectionClosingSymbol(dumpables)); return sb.toString(); }
public static String debugDump(Collection<? extends DebugDumpable> dumpables) { return debugDump(dumpables,0); }
@Override public String debugDump(int indent) { StringBuilder sb = new StringBuilder(); SchemaDebugUtil.indentDebugDump(sb, indent); sb.append("ResourceEventDescription("); sb.append(sourceChannel); sb.append(")\n"); SchemaDebugUtil.indentDebugDump(sb, indent+1); SchemaDebugUtil.indentDebugDump(sb, indent+1); SchemaDebugUtil.indentDebugDump(sb, indent+1);
public static void debugDumpWithLabel(StringBuilder sb, String label, Collection<ObjectReferenceType> refs, int indent) { DebugUtil.debugDumpLabel(sb, label, indent); if (refs == null) { sb.append(" null"); } else if (refs.isEmpty()) { sb.append(" "); sb.append(DebugUtil.getCollectionOpeningSymbol(refs)); sb.append(DebugUtil.getCollectionClosingSymbol(refs)); } else { sb.append(" (").append(refs.size()).append(")"); sb.append("\n"); debugDump(sb, refs, indent + 1); } }
@Override public String toString() { return "ResourceOperationDescription(objectDelta=" + objectDelta + ", currentShadow=" + SchemaDebugUtil.prettyPrint(currentShadow) + ", sourceChannel=" + sourceChannel + ", resource=" + resource + (asynchronous ? ", ASYNC" : "") + (attemptNumber != 0 ? ", attemptNumber="+attemptNumber : "") + ", result=" + result + ")"; }
public static <K, V> void debugDumpMapSingleLine(StringBuilder sb, Map<K, V> map, int indent) { Iterator<Entry<K, V>> i = map.entrySet().iterator(); while (i.hasNext()) { Entry<K,V> entry = i.next(); indentDebugDump(sb,indent); sb.append(prettyPrint(entry.getKey())); sb.append(" => "); V value = entry.getValue(); if (value == null) { sb.append("null"); } else { sb.append(value); } if (i.hasNext()) { sb.append("\n"); } } }
@Override public String debugDump(int indent) { StringBuilder sb = new StringBuilder(); SchemaDebugUtil.indentDebugDump(sb, indent); sb.append("ResourceObjectShadowChangeDescription("); sb.append(sourceChannel); sb.append(")\n"); SchemaDebugUtil.indentDebugDump(sb, indent+1); sb.append("resource:"); if (resource == null) { SchemaDebugUtil.indentDebugDump(sb, indent+1); SchemaDebugUtil.indentDebugDump(sb, indent+1); SchemaDebugUtil.indentDebugDump(sb, indent+1); SchemaDebugUtil.indentDebugDump(sb, indent+1); sb.append("unrelatedChange: ").append(unrelatedChange); SchemaDebugUtil.indentDebugDump(sb, indent+1); sb.append("simulate: ").append(simulate);
@Override public void shortDump(StringBuilder sb) { sb.append("odo="); if (odo == null) { sb.append("null"); } else { sb.append("("); sb.append(odo.getOldObject()).append(","); sb.append(odo.getObjectDelta()).append(","); sb.append(odo.getNewObject()); sb.append(")"); } sb.append(","); shortDumpElement(sb, "target", target); shortDumpElement(sb, "relation", relation); if (orderConstraints != null) { sb.append("orderConstraints="); SchemaDebugUtil.shortDumpOrderConstraintsList(sb, orderConstraints); sb.append(", "); } if (sb.length() > 1) { sb.setLength(sb.length() - 2); } }
@Override public String toString() { return "ResourceObjectShadowChangeDescription(objectDelta=" + objectDelta + ", currentShadow=" + SchemaDebugUtil.prettyPrint(currentShadow) + ", oldShadow=" + SchemaDebugUtil.prettyPrint(oldShadow) + ", sourceChannel=" + sourceChannel + ", resource=" + resource + (unrelatedChange ? " UNRELATED" : "") + (simulate ? " SIMULATE" : "") +")"; }
public static <K, V extends DebugDumpable> void debugDumpMapMultiLine(StringBuilder sb, Map<K, V> map, int indent) { Iterator<Entry<K, V>> i = map.entrySet().iterator(); while (i.hasNext()) { Entry<K,V> entry = i.next(); indentDebugDump(sb,indent); sb.append(prettyPrint(entry.getKey())); sb.append(" => "); V value = entry.getValue(); if (value == null) { sb.append("null"); } else { sb.append("\n"); sb.append(value.debugDump(indent+1)); } if (i.hasNext()) { sb.append("\n"); } } }
@Override public String debugDump(int indent) { StringBuilder sb = new StringBuilder(); SchemaDebugUtil.indentDebugDump(sb, indent); sb.append("ResourceOperationDescription("); sb.append(sourceChannel); sb.append(")\n"); SchemaDebugUtil.indentDebugDump(sb, indent+1); sb.append("resource:"); if (resource == null) { SchemaDebugUtil.indentDebugDump(sb, indent+1); sb.append("objectDelta:"); if (objectDelta == null) { SchemaDebugUtil.indentDebugDump(sb, indent+1); sb.append("currentShadow:"); if (currentShadow == null) { SchemaDebugUtil.indentDebugDump(sb, indent+1); sb.append("result:"); if (result == null) {