Package de.innovationgate.webgate.api

Examples of de.innovationgate.webgate.api.WGDesignChangeEvent


              
               // Clear the cache of the slave db
               if (_slaveDB != null && _slaveDB.isConnected()) {
                   MasterSessionTask task = new MasterSessionTask(_slaveDB) {
                       protected void exec(WGDatabase db) throws Throwable {
                           fireUpdateChangeEvent(new WGDesignChangeEvent(DBDesignProvider.this, db, new ArrayList()));
                           db.refresh();
                       }
                   };
                   task.run();
               }
View Full Code Here


              List updateLogs = db.getUpdatedDocumentsSince(_designDBLastChanged);
              updateLogs = filterLogs(updateLogs);
              if (updateLogs.size() == 0) {
                  return;
              }
              WGDesignChangeEvent designEvent = new WGDesignChangeEvent(this, _slaveDB, updateLogs);
              fireUpdateChangeEvent(designEvent);
              _designDBLastChanged = currentLastChanged;
          }
        }
        catch (WGAPIException e) {
View Full Code Here

     * @see de.innovationgate.webgate.api.WGDesignChangeListener#designChanged(de.innovationgate.webgate.api.WGDesignChangeEvent)
     */
    public void designChanged(WGDesignChangeEvent event) {

        _failedLookups.clear();
        WGDesignChangeEvent designEvent = new WGDesignChangeEvent(this, _slaveDB, filterLogs(event.getUpdateLogs()));
        fireUpdateChangeEvent(designEvent);
       
    }
View Full Code Here

   
    private void fireDesignChangeEvent(VirtualDocument doc, int type) throws WGAPIException {
       
        List updateLogs = new ArrayList();
        updateLogs.add(new WGUpdateLog(type, new Date(), getName(), WGDocument.buildDocumentKey(doc, _db).toString()));
        WGDesignChangeEvent event = new WGDesignChangeEvent(this, _db, updateLogs);
        
        Iterator listeners = _designChangeListeners.iterator();
        while (listeners.hasNext()) {
            ((WGDesignChangeListener) listeners.next()).designChanged(event);
        }
View Full Code Here

TOP

Related Classes of de.innovationgate.webgate.api.WGDesignChangeEvent

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.