use of org.apache.jackrabbit.oak.json.JsonSerializer in project jackrabbit-oak by apache.
the class DocumentNodeState method asString.
private String asString(PropertyState prop) {
if (prop == null) {
return null;
} else if (prop instanceof DocumentPropertyState) {
return ((DocumentPropertyState) prop).getValue();
}
JsopBuilder builder = new JsopBuilder();
new JsonSerializer(builder, store.getBlobSerializer()).serialize(prop);
return builder.toString();
}
use of org.apache.jackrabbit.oak.json.JsonSerializer in project jackrabbit-oak by apache.
the class CommitDiff method setProperty.
private void setProperty(PropertyState property) {
builder.resetWriter();
JsonSerializer serializer = new JsonSerializer(builder, blobs);
serializer.serialize(property);
commit.updateProperty(bundlingHandler.getRootBundlePath(), bundlingHandler.getPropertyPath(property.getName()), serializer.toString());
if ((property.getType() == Type.BINARY) || (property.getType() == Type.BINARIES)) {
this.commit.markNodeHavingBinary(bundlingHandler.getRootBundlePath());
}
}
Aggregations