Skip to content

Commit

Permalink
core: add new RESOURCES constant, #TASK-6442
Browse files Browse the repository at this point in the history
  • Loading branch information
pfurio committed Oct 28, 2024
1 parent 4a76f4b commit ba9d0bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -286,9 +286,9 @@ Study insert(ClientSession clientSession, Project project, Study study)
"study root folder", FileInternal.init(), false, 0, project.getCurrentRelease()),
new File("JOBS", File.Type.DIRECTORY, File.Format.UNKNOWN, File.Bioformat.UNKNOWN, "JOBS/",
ioManager.getJobsUri(), "Default jobs folder", FileInternal.init(), false, 0, project.getCurrentRelease()),
new File("RESOURCES", File.Type.DIRECTORY, File.Format.UNKNOWN, File.Bioformat.UNKNOWN, "RESOURCES/",
Paths.get(study.getUri()).resolve("RESOURCES").toUri(), "Default resources folder", FileInternal.init(), true, 0,
project.getCurrentRelease())
new File(ParamConstants.RESOURCES_FOLDER, File.Type.DIRECTORY, File.Format.UNKNOWN, File.Bioformat.UNKNOWN,
ParamConstants.RESOURCES_FOLDER + "/", Paths.get(study.getUri()).resolve(ParamConstants.RESOURCES_FOLDER).toUri(),
"Default resources folder", FileInternal.init(), true, 0, project.getCurrentRelease())
);

// Create default folders
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public class ParamConstants {
public static final String PERMISSION_LIST = "permissions";
private static final String REGEX_SUPPORT = ". Also admits basic regular expressions using the operator '~', "
+ "i.e. '~{perl-regex}' e.g. '~value' for case sensitive, '~/value/i' for case insensitive search.";
public static final String RESOURCES_FOLDER = "RESOURCES";
@Deprecated // Use INTERNAL_VARIANT_INDEX_STATUS_PARAM
public static final String INTERNAL_INDEX_STATUS_PARAM = "internalIndexStatus";
public static final String INTERNAL_VARIANT_INDEX_STATUS_PARAM = "internalVariantIndexStatus";
Expand Down

0 comments on commit ba9d0bc

Please sign in to comment.