]> git.argeo.org Git - lgpl/argeo-commons.git/blob - CmsPaths.java
ebdb92593e9046627b39ae882ed444c55cff8a53
[lgpl/argeo-commons.git] / CmsPaths.java
1 package org.argeo.cms.internal.kernel;
2
3 import java.nio.file.Path;
4
5 /** Centralises access to the default node deployment directories. */
6 public class CmsPaths {
7 public static Path getRepoDirPath(String cn) {
8 return KernelUtils.getOsgiInstancePath(KernelConstants.DIR_REPOS + '/' + cn);
9 }
10
11 public static Path getRepoIndexesBase() {
12 return KernelUtils.getOsgiInstancePath(KernelConstants.DIR_INDEXES);
13 }
14
15 /** Singleton. */
16 private CmsPaths() {
17 }
18 }