Package com.ikanow.infinit.e.data_model.control

Examples of com.ikanow.infinit.e.data_model.control.DocumentQueueControlPojo.toApi()


         
          // Update share info:
          toModify.setLastDocIdInserted(maxDocId);
         
          // We've modified the share so update it:
          savedQueryShare.setShare(toModify.toApi());
          savedQueryShare.setModified(new Date());
          DbManager.getSocial().getShare().save(savedQueryShare.toDb());
         
        }//(end found some docs)
       
View Full Code Here


                DbManager.getCustom().getSavedQueryCache().insert(savedQueryShare.toDb());
                CommandResult cr = DbManager.getCustom().getSavedQueryCache().getDB().getLastError();
               
                if (null == cr.get("err")) { // if we've actually done something, update the main share table also
                  savedQuery.getQueryInfo().setLastRun(now);
                  savedQueryShare.setShare(savedQuery.toApi());
                  // (this will overwrite the existing version)
                  DbManager.getSocial().getShare().save(savedQueryShare.toDb());               
                }//TESTED (by hand with prints)
               
              }//TESTED (test3-5)
View Full Code Here

      share.set_id(fixedShareId_1);
    }
    share.setType(DocumentQueueControlPojo.SavedQueryQueue);
    share.setTitle("test" + testNum);
    share.setDescription("test1" + testNum);
    share.setShare(query.toApi());   
    addSocial(share);
   
    DbManager.getSocial().getShare().save(share.toDb());
  }
  private static void addSocial(SharePojo share) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.