Examples of FixAudit


Examples of com.dotmarketing.beans.FixAudit

              FixAssetsProcessStatus.addAError();
              counter++;
            }
            FixAssetsProcessStatus.addActual();
        }
        FixAudit Audit= new FixAudit();
        Audit.setTableName("contentlet");
        Audit.setDatetime(new Date());
        Audit.setRecordsAltered(total);
        Audit.setAction("Check the tree entries that doesn't have a child o parent in the inode table and deleted them");
        HibernateUtil.save(Audit);       
        HibernateUtil.commitTransaction();
        returnValue.add(FixAssetsProcessStatus.getFixAssetsMap());
        FixAssetsProcessStatus.stopProgress();
        Logger.debug(CMSMaintenanceFactory.class, "Ending fixAssetsInconsistencies");
View Full Code Here

Examples of com.dotmarketing.beans.FixAudit

        } else if (DbConnectionFactory.isMsSql()) {
          dc.setSQL(addFileAssetMimeTypeNotNullMSSQL);
          dc.loadResult();
        }
      }
        FixAudit Audit = new FixAudit();
      Audit.setTableName("file_asset");
      Audit.setDatetime(new Date());
      Audit.setRecordsAltered(total);
      Audit.setAction("task 40: Fixed CheckFileAssetsMimeType");
      HibernateUtil.save(Audit);
      HibernateUtil.commitTransaction();
      MaintenanceUtil.flushCache();

      returnValue.add(FixAssetsProcessStatus.getFixAssetsMap());
View Full Code Here

Examples of com.dotmarketing.beans.FixAudit

               }
             }
           }
          }
          getModifiedData();
          FixAudit Audit = new FixAudit();
        Audit.setTableName("identifier");
        Audit.setDatetime(new Date());
        Audit.setRecordsAltered(total);
        Audit.setAction("task 21: Fixed CheckOrphanedAssets");
        HibernateUtil.save(Audit);
        HibernateUtil.commitTransaction();
        MaintenanceUtil.flushCache();

        returnValue.add(FixAssetsProcessStatus.getFixAssetsMap());
View Full Code Here

Examples of com.dotmarketing.beans.FixAudit

           
            Logger.debug(this, "Delete completed");
          }
        }
         }
            FixAudit Audit = new FixAudit();
        Audit.setTableName("identifier");
        Audit.setDatetime(new Date());
        Audit.setRecordsAltered(total);
        Audit.setAction("task 30: Fixed DeleteOrphanedAssets");
        HibernateUtil.save(Audit);
        HibernateUtil.commitTransaction();
        MaintenanceUtil.flushCache();

        returnValue.add(FixAssetsProcessStatus.getFixAssetsMap());
View Full Code Here

Examples of com.dotmarketing.beans.FixAudit

          Logger.error(this, "Unable to clean orphaned identifiers",e);
          HibernateUtil.rollbackTransaction();
          modifiedData.clear();
          }
        }
        FixAudit Audit = new FixAudit();
        Audit.setTableName("identifier");
        Audit.setDatetime(new Date());
        Audit.setRecordsAltered(total);
        Audit.setAction("task 20: Fixed DeleteOrphanedIdentifiers");
        HibernateUtil.save(Audit);
        HibernateUtil.commitTransaction();
        MaintenanceUtil.flushCache();

        returnValue.add(FixAssetsProcessStatus.getFixAssetsMap());
View Full Code Here

Examples of com.dotmarketing.beans.FixAudit

            FixAssetsProcessStatus.addAError();
            counter++;
          }
       
        FixAssetsProcessStatus.addActual();
        FixAudit Audit= new FixAudit();
        Audit.setTableName("contentlet");
        Audit.setDatetime(new Date());
        Audit.setRecordsAltered(total);
        Audit.setAction("Delete contentlets that points to inexistent inodes");
        HibernateUtil.save(Audit);       
        HibernateUtil.commitTransaction();
        returnValue.add( FixAssetsProcessStatus.getFixAssetsMap());
        FixAssetsProcessStatus.stopProgress();
        Logger.debug(CMSMaintenanceFactory.class,
View Full Code Here

Examples of com.dotmarketing.beans.FixAudit

          }

          FixAssetsProcessStatus.addActual();
        }
        getModifiedData();
        FixAudit Audit= new FixAudit();
        Audit.setTableName("file_asset");
        Audit.setDatetime(new Date());
        Audit.setRecordsAltered(total);
        Audit.setAction("Check the working and live versions of file assets for inconsistencies and fix them");
        HibernateUtil.save(Audit);
        HibernateUtil.commitTransaction();       
        returnValue.add(FixAssetsProcessStatus.getFixAssetsMap());
        FixAssetsProcessStatus.stopProgress();
        Logger.debug(CMSMaintenanceFactory.class,
View Full Code Here

Examples of com.dotmarketing.beans.FixAudit

        }

        FixAssetsProcessStatus.setTotal(counter);

        //getModifiedData();
        FixAudit Audit = new FixAudit();
        Audit.setTableName("inode");
        Audit.setDatetime(new Date());
        Audit.setRecordsAltered(counter);
        Audit.setAction("task 50: Fixed FixInodesWithoutContentlets");
        HibernateUtil.save(Audit);
        HibernateUtil.commitTransaction();
        MaintenanceUtil.flushCache();

        returnValue.add(FixAssetsProcessStatus.getFixAssetsMap());
View Full Code Here

Examples of com.dotmarketing.beans.FixAudit

          }

          FixAssetsProcessStatus.addActual();
        }
        getModifiedData();
        FixAudit Audit= new FixAudit();
        Audit.setTableName("htmlpage");
        Audit.setDatetime(new Date());
        Audit.setRecordsAltered(total);
        Audit.setAction("Check the working and live versions of html pages for inconsistencies and fix them");
        HibernateUtil.save(Audit);       
        HibernateUtil.commitTransaction();
        returnValue.add( FixAssetsProcessStatus.getFixAssetsMap());
        FixAssetsProcessStatus.stopProgress();
        Logger.debug(CMSMaintenanceFactory.class,
View Full Code Here

Examples of com.dotmarketing.beans.FixAudit

          }

          FixAssetsProcessStatus.addActual();
        }
        getModifiedData();
        FixAudit Audit= new FixAudit();
        Audit.setTableName("containers");
        Audit.setDatetime(new Date());
        Audit.setRecordsAltered(total);
        Audit.setAction("Check the working and live versions of containers for inconsistencies and fix them");
        HibernateUtil.save(Audit);
        HibernateUtil.commitTransaction();       
        returnValue.add(FixAssetsProcessStatus.getFixAssetsMap());
        FixAssetsProcessStatus.stopProgress();
        Logger.debug(CMSMaintenanceFactory.class,
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.