Package org.atomojo.app.db.DB

Examples of org.atomojo.app.db.DB.MediaEntryListener


      } catch (SQLException ex) {
         throw new AppException(Status.SERVER_ERROR_INTERNAL,"Cannot get feed path.",ex);
      }
      final String fpath = path;
      try {
         entry.delete(new MediaEntryListener() {
            public void onDelete(EntryMedia resource) {
               try {
                  storage.deleteMedia(fpath,feed.getUUID(),resource.getName());
               } catch (IOException ex) {
                  log.log(Level.SEVERE,"Cannot delete media: "+resource.getName(),ex);
View Full Code Here


            }
         } else {
            delete = true;
         }
         if (delete) {
            entry.delete(new MediaEntryListener() {
               public void onDelete(EntryMedia resource) {
                  File media = new File(dir,resource.getName());
                  if (media.exists()) {
                     media.delete();
                  }
View Full Code Here

                                 if (media!=null) {
                                    // We have a conflicting media entry.  We'll delete
                                    // the local one to use the pulled one
                                    Entry otherEntry = media.getEntry();
                                    final String fpath = feed.getPath();
                                    otherEntry.delete(new MediaEntryListener() {
                                       public void onDelete(EntryMedia resource) {
                                          try {
                                             storage.deleteMedia(fpath,feed.getUUID(),resource.getName());
                                          } catch (IOException ex) {
                                             log.log(Level.SEVERE,"Cannot delete media "+resource.getName(),ex);
View Full Code Here

   public Representation delete()
   {
      try {
         final String fpath = feed.getPath();
         Entry entry = media.getEntry();
         entry.delete(new MediaEntryListener() {
            public void onDelete(EntryMedia resource) {
               try {
                  storage.deleteMedia(fpath,feed.getUUID(),resource.getName());
               } catch (IOException ex) {
                  getContext().getLogger().log(Level.SEVERE,"Cannot delete media: "+ex.getMessage(),ex);
View Full Code Here

TOP

Related Classes of org.atomojo.app.db.DB.MediaEntryListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.