public static String getMavenReadOnlyUsername() { return getConfigProperty(ArtificerConstants.ARTIFICER_CONFIG_MAVEN_READONLY_USERNAME, "mavenuser"); }
public static boolean isSnapshotAllowed() { if (isSnapshot()) { // Mainly for development purposes, always allow snapshot deployments if Artificer is itself a snapshot. return true; } else { return getConfigProperty(ArtificerConstants.ARTIFICER_SNAPSHOT_ALLOWED, false); } }
public static FileManager getInstance() { if (instance == null) { String storage = ArtificerConfig.getConfigProperty(ArtificerConstants.ARTIFICER_FILE_STORAGE, "blob"); switch (storage) { case "filesystem": instance = new FilesystemFileManager( ArtificerConfig.getConfigProperty(ArtificerConstants.ARTIFICER_FILE_STORAGE_FILESYSTEM_PATH, "")); break; default: instance = new BlobFileManager(); } } return instance; }