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

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

Best Java code snippets using org.uberfire.java.nio.file.attribute.FileTime (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: org.kie.workbench.screens/kie-wb-common-library-backend

final FileTime createdFileTime = (FileTime) getAttribute(LibraryService.CREATED_TIME,
                            attributes).get();
final Date lastModifiedTime = new Date(lastModifiedFileTime.toMillis());
final Date createdTime = new Date(createdFileTime.toMillis());
info = new AssetInfo(asset,
          lastModifiedTime,
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,
org.uberfire.java.nio.file.attributeFileTime

Most used methods

  • toMillis

Popular in Java

  • Finding current android device location
  • requestLocationUpdates (LocationManager)
  • setContentView (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • JPanel (javax.swing)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • 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