All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.onetwo.common.file.StoreFilePathStrategy Maven / Gradle / Ivy

There is a newer version: 4.7.2
Show newest version
package org.onetwo.common.file;

import org.onetwo.common.utils.StringUtils;


public interface StoreFilePathStrategy {

	static public String getModuleDir(String storeBaseDir, String appContextDir, StoringFileContext ctx){
		String baseDir = FileUtils.convertDir(storeBaseDir) + FileUtils.convertDir(appContextDir);
		if(StringUtils.isNotBlank(ctx.getModule())){
			baseDir += FileUtils.convertDir(ctx.getModule());
		}
		return baseDir;
	}
	
	String getStoreFilePath(String storeBaseDir, String appContextDir, StoringFileContext context);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy