import javax.jcr.NodeIterator;
import javax.jcr.RepositoryException;
+import org.argeo.jcr.ArgeoJcrUtils;
import org.argeo.jcr.JcrUtils;
import org.argeo.slc.SlcException;
import org.argeo.slc.core.execution.PrimitiveAccessor;
}
/** Create a new execution result path based on the current time */
- public static String createResultPath(String uuid) {
+ public static String createResultPath(String username, String uuid) {
Calendar now = new GregorianCalendar();
- return SlcJcrConstants.RESULTS_BASE_PATH + '/'
- + JcrUtils.dateAsPath(now, true) + uuid;
+ return ArgeoJcrUtils.getUserHomePath(username) + '/' + SlcNames.SLC_RESULTS
+ + '/' + JcrUtils.dateAsPath(now, true) + uuid;
}
/**