import javax.jcr.Property;
import javax.jcr.Repository;
import javax.jcr.RepositoryException;
import javax.jcr.Property;
import javax.jcr.Repository;
import javax.jcr.RepositoryException;
session.exportSystemView("/", contentHandler, true, false);
if (log.isDebugEnabled())
log.debug("Workspace " + workspaceName + ": metadata exported to " + relativePath);
session.exportSystemView("/", contentHandler, true, false);
if (log.isDebugEnabled())
log.debug("Workspace " + workspaceName + ": metadata exported to " + relativePath);
String fileRelativePath = WORKSPACES_BASE + workspaceName + contentNode.getParent().getPath();
try (InputStream in = binary.getStream(); OutputStream out = openOutputStream(fileRelativePath)) {
IOUtils.copy(in, out);
String fileRelativePath = WORKSPACES_BASE + workspaceName + contentNode.getParent().getPath();
try (InputStream in = binary.getStream(); OutputStream out = openOutputStream(fileRelativePath)) {
IOUtils.copy(in, out);
- if (log.isDebugEnabled())
- log.debug("Workspace " + workspaceName + ": file content exported to " + fileRelativePath);
+ if (log.isTraceEnabled())
+ log.trace("Workspace " + workspaceName + ": file content exported to " + fileRelativePath);