Examples of FileDetails


Examples of framework.beans.report.FileDetails

   * @throws java.io.IOException - ошибка чтения файла
   * @throws net.sf.jasperreports.engine.JRException - ошибка компиляции файла отчета
   */
 
  public FileLocal(File fileName) throws FileNotFoundException, IOException, JRException{
    super(new FileDetails());
    setFile(fileName);
  }
View Full Code Here

Examples of framework.beans.report.FileDetails

        return getDetails().fileData;
      }
    }
   
    if (getDetails().id != 0){
      FileDetails      tmpfile = report.getFileData(getDetails().id);
     
      if (tmpfile.fileSourceData != null) {
        return tmpfile.fileSourceData;
      }
      return tmpfile.fileData;
View Full Code Here

Examples of framework.beans.report.FileDetails

    if (getDetails().fileData != null) {
      return getDetails().fileData;
    }
   
    if (getDetails().id != 0){
      FileDetails      tmpfile = report.getFileData(getDetails().id);
      return tmpfile.fileData;
    }
    return null;
  }
View Full Code Here

Examples of org.springframework.roo.file.monitor.event.FileDetails

     */
    @Override
    protected PhysicalPath getApplicablePhysicalPath(final String identifier) {
        Validate.notNull(identifier, "Identifier required");
        for (final PhysicalPath pi : rootModulePaths.values()) {
            final FileDetails possibleParent = new FileDetails(
                    pi.getLocation(), null);
            if (possibleParent.isParentOf(identifier)) {
                return pi;
            }
        }
        return null;
    }
View Full Code Here

Examples of org.springframework.roo.file.monitor.event.FileDetails

                iter.remove(); // We've processed it
                // Skip this file if it doesn't exist
                final File thisFile = new File(filePath);
                if (thisFile.exists()) {
                    // Record the notification
                    createEvents.add(new FileEvent(new FileDetails(thisFile,
                            thisFile.lastModified()), FileOperation.CREATED,
                            null));
                    // Update the prior execution map so it isn't notified again
                    // next round
                    priorFiles.put(thisFile, thisFile.lastModified());
View Full Code Here

Examples of org.springframework.roo.file.monitor.event.FileDetails

                // Skip this file if it suddenly exists again (it shouldn't be
                // in the notify deleted in this case!)
                final File thisFile = new File(filePath);
                if (!thisFile.exists()) {
                    // Record the notification
                    deleteEvents.add(new FileEvent(new FileDetails(thisFile,
                            null), FileOperation.DELETED, null));
                    // Update the prior execution map so it isn't notified again
                    // next round
                    priorFiles.remove(thisFile);
                }
View Full Code Here

Examples of org.springframework.roo.file.monitor.event.FileDetails

                iter.remove(); // We've processed it
                // Skip this file if it doesn't exist
                final File thisFile = new File(filePath);
                if (thisFile.exists()) {
                    // Record the notification
                    updateEvents.add(new FileEvent(new FileDetails(thisFile,
                            thisFile.lastModified()), FileOperation.UPDATED,
                            null));
                    // Update the prior execution map so it isn't notified again
                    // next round
                    priorFiles.put(thisFile, thisFile.lastModified());
View Full Code Here

Examples of org.springframework.roo.file.monitor.event.FileDetails

            for (final MonitoringRequest request : requests) {
                if (priorExecution.containsKey(request)) {
                    final Map<File, Long> priorFiles = priorExecution
                            .get(request);
                    for (final Entry<File, Long> entry : priorFiles.entrySet()) {
                        monitored.add(new FileDetails(entry.getKey(), entry
                                .getValue()));
                    }
                }
            }
View Full Code Here

Examples of org.springframework.roo.file.monitor.event.FileDetails

            return;
        }
        for (final File f : listFiles) {
            try {
                if (FileUtils.matchesAntPath(antPath, f.getCanonicalPath())) {
                    result.add(new FileDetails(f, f.lastModified()));
                }
            }
            catch (final IOException ignored) {
            }
View Full Code Here

Examples of org.springframework.roo.file.monitor.event.FileDetails

                final Map<File, Long> priorFiles = priorExecution.get(request);
                for (final Entry<File, Long> entry : priorFiles.entrySet()) {
                    final File thisFile = entry.getKey();
                    final Long lastModified = entry.getValue();
                    eventsToPublish.add(new FileEvent(new FileDetails(thisFile,
                            lastModified), FileOperation.MONITORING_FINISH,
                            null));
                }
                publish(eventsToPublish);
            }
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.