String dirPath = Utils.getUploadDirPath(Utils.getHeapRootUploadDir(), getUserdir());
return new File(dirPath, getFileName());
}
public Integer getUserMemory(EntityManager em) {
Memory memory = new Memory();
Preferences pref = DbPreferences.root(this, memory, em);
try {
Map<Long, Integer> result = memory.read(pref);
if (!result.isEmpty()){
Long value = result.keySet().iterator().next();
value = value / 1024 / 1024;
return value.intValue();
}