Beispiel #1
0
 @Override
 public boolean delete() {
   try {
     QueryHandler.instanceOf().clone(Context.getFiles()).removeFile(filename);
   } catch (Exception ex) {
     Log.Debug(ex);
   }
   return super.delete();
 }
Beispiel #2
0
 /**
  * Fetches the physical file from db
  *
  * @return
  */
 public synchronized File getFile() {
   if (file == null) {
     try {
       file =
           QueryHandler.instanceOf()
               .clone(Context.getFiles())
               .retrieveFile(filename, new File(FileDirectoryHandler.getTempDir() + getCname()));
     } catch (Exception e) {
       Log.Debug(e);
     }
   }
   return file;
 }
Beispiel #3
0
 public FileToItem() {
   setContext(Context.getFilesToItems());
 }