Tabnine Logo
FileTime.toMillis
Code IndexAdd Tabnine to your IDE (free)

How to use
toMillis
method
in
org.uberfire.java.nio.file.attribute.FileTime

Best Java code snippets using org.uberfire.java.nio.file.attribute.FileTime.toMillis (Showing top 20 results out of 315)

origin: kiegroup/appformer

@Override
public Map<String, Object> readAttributes(final Path path) throws UnsupportedOperationException, IllegalArgumentException, IOException {
  final Map<String, Object> attributes = new HashMap<String, Object>(ioService.readAttributes(Paths.convert(path)));
  final Object _lastModifiedTime = attributes.get("lastModifiedTime");
  if (_lastModifiedTime != null) {
    attributes.put("lastModifiedTime",
            new Date(((FileTime) _lastModifiedTime).toMillis()));
  }
  final Object _lastAccessTime = attributes.get("lastAccessTime");
  if (_lastAccessTime != null) {
    attributes.put("lastAccessTime",
            new Date(((FileTime) _lastAccessTime).toMillis()));
  }
  final Object _creationTime = attributes.get("creationTime");
  if (_creationTime != null) {
    attributes.put("creationTime",
            new Date(((FileTime) _creationTime).toMillis()));
  }
  return attributes;
}
origin: org.guvnor/guvnor-services-backend

private Date getDateCreated() {
  return new Date(versionAttributeView.readAttributes().creationTime().toMillis());
}
origin: org.guvnor/guvnor-services-backend

private Date getLastModified() {
  return new Date(versionAttributeView.readAttributes().lastModifiedTime().toMillis());
}
origin: org.kie.workbench.screens/kie-wb-common-search-screen-backend

private Date extractLastModifiedDate( final VersionAttributeView versionAttributeView ) {
  return new Date( versionAttributeView.readAttributes().lastModifiedTime().toMillis() );
}
origin: org.kie.workbench.screens/kie-wb-common-search-screen-backend

private Date extractCreatedDate( final VersionAttributeView versionAttributeView ) {
  return new Date( versionAttributeView.readAttributes().creationTime().toMillis() );
}
origin: kiegroup/appformer

private Date getLastModified() {
  return new Date(versionAttributeView.readAttributes().lastModifiedTime().toMillis());
}
origin: kiegroup/appformer

private Date getDateCreated() {
  return new Date(versionAttributeView.readAttributes().creationTime().toMillis());
}
origin: org.uberfire/uberfire-nio2-model

  @Override
  public int compareTo(final FileTime o) {
    checkNotNull("o",
           o);
    final long thisVal = this.toMillis();
    final long anotherVal = o.toMillis();
    return (thisVal < anotherVal ? -1 : (thisVal == anotherVal ? 0 : 1));
  }
}
origin: org.uberfire/vfs-model

@Override
public int compareTo(final FileTime o) {
  checkNotNull("o", o);
  long thisVal = this.toMillis();
  long anotherVal = o.toMillis();
  return (thisVal < anotherVal ? -1 : (thisVal == anotherVal ? 0 : 1));
}
origin: kiegroup/appformer

  @Override
  public int compareTo(final FileTime o) {
    checkNotNull("o",
           o);
    final long thisVal = this.toMillis();
    final long anotherVal = o.toMillis();
    return (thisVal < anotherVal ? -1 : (thisVal == anotherVal ? 0 : 1));
  }
}
origin: org.guvnor/guvnor-structure-backend

  private long getLastModified() {
    final Path lastModifiedPath = ioService.get(systemRepository.getUri()).resolve(ConfigurationServiceImpl.LAST_MODIFIED_MARKER_FILE);

    return ioService.getLastModifiedTime(lastModifiedPath).toMillis();
  }
}
origin: kiegroup/appformer

  private long getLastModified() {
    final Path lastModifiedPath = ioService.get(systemRepository.getUri()).resolve(ConfigurationServiceImpl.LAST_MODIFIED_MARKER_FILE);

    return ioService.getLastModifiedTime(lastModifiedPath).toMillis();
  }
}
origin: org.guvnor/guvnor-structure-backend

protected long getLastModified() {
  final Path lastModifiedPath = ioService.get(systemRepository.getUri()).resolve(LAST_MODIFIED_MARKER_FILE);
  return ioService.getLastModifiedTime(lastModifiedPath).toMillis();
}
origin: kiegroup/appformer

protected long getLastModified() {
  final Path lastModifiedPath = ioService.get(systemRepository.getUri()).resolve(LAST_MODIFIED_MARKER_FILE);
  return ioService.getLastModifiedTime(lastModifiedPath).toMillis();
}
origin: org.uberfire/uberfire-metadata-backend-elasticsearch

String.valueOf(((FileTime) property.getValue()).toMillis()),
new HashSet<>(Arrays.asList(Long.class)),
property.isSortable(),
origin: org.uberfire/uberfire-metadata-backend-infinispan

((FileTime) value).toMillis());
origin: kiegroup/appformer

((FileTime) value).toMillis());
origin: kiegroup/appformer

String.valueOf(((FileTime) property.getValue()).toMillis()),
new HashSet<>(Arrays.asList(Long.class)),
property.isSortable(),
origin: kiegroup/appformer

final String comment = versionAttributeView.readAttributes().history().records().get(index).comment();
final String time = p.format(new Date(Files.getLastModifiedTime(activePath).toMillis()));
result.add(new DataContent(Files.isDirectory(activePath),
              comment,
origin: org.guvnor/guvnor-structure-backend

final String comment = versionAttributeView.readAttributes().history().records().get(index).comment();
final String time = p.format(new Date(Files.getLastModifiedTime(activePath).toMillis()));
result.add(new DataContent(Files.isDirectory(activePath),
              comment,
org.uberfire.java.nio.file.attributeFileTimetoMillis

Popular methods of FileTime

    Popular in Java

    • Finding current android device location
    • scheduleAtFixedRate (ScheduledExecutorService)
    • putExtra (Intent)
    • getSupportFragmentManager (FragmentActivity)
    • FlowLayout (java.awt)
      A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
    • ConnectException (java.net)
      A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
    • TreeSet (java.util)
      TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
    • ExecutorService (java.util.concurrent)
      An Executor that provides methods to manage termination and methods that can produce a Future for tr
    • JOptionPane (javax.swing)
    • SAXParseException (org.xml.sax)
      Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
    • Top Sublime Text plugins
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Tabnine for your IDE now