]>
git.argeo.org Git - gpl/argeo-slc.git/blob - runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/execution/ExecutionResources.java
1 package org
.argeo
.slc
.core
.execution
;
5 import org
.springframework
.core
.io
.Resource
;
7 public interface ExecutionResources
{
8 /** The base directory where this execution can write */
9 public File
getWritableBaseDir();
11 /** Allocates a local file in the writable area and return it as a resource. */
12 public Resource
getWritableResource(String relativePath
);
15 * Allocates a local file in the writable area and return it as a fully
18 public String
getWritableOsPath(String relativePath
);
21 * Allocates a local file in the writable area and return it as a
24 public File
getWritableOsFile(String relativePath
);
27 * Returns the resource as a file path. If the resource is not writable it
28 * is copied as a file in the writable area and the path to this local file
31 public String
getAsOsPath(Resource resource
, Boolean overwrite
);