@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; }
private Date getDateCreated() { return new Date(versionAttributeView.readAttributes().creationTime().toMillis()); }
private Date getLastModified() { return new Date(versionAttributeView.readAttributes().lastModifiedTime().toMillis()); }
private Date extractLastModifiedDate( final VersionAttributeView versionAttributeView ) { return new Date( versionAttributeView.readAttributes().lastModifiedTime().toMillis() ); }
private Date extractCreatedDate( final VersionAttributeView versionAttributeView ) { return new Date( versionAttributeView.readAttributes().creationTime().toMillis() ); }
private Date getLastModified() { return new Date(versionAttributeView.readAttributes().lastModifiedTime().toMillis()); }
private Date getDateCreated() { return new Date(versionAttributeView.readAttributes().creationTime().toMillis()); }
@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)); } }
@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)); }
@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)); } }
private long getLastModified() { final Path lastModifiedPath = ioService.get(systemRepository.getUri()).resolve(ConfigurationServiceImpl.LAST_MODIFIED_MARKER_FILE); return ioService.getLastModifiedTime(lastModifiedPath).toMillis(); } }
private long getLastModified() { final Path lastModifiedPath = ioService.get(systemRepository.getUri()).resolve(ConfigurationServiceImpl.LAST_MODIFIED_MARKER_FILE); return ioService.getLastModifiedTime(lastModifiedPath).toMillis(); } }
protected long getLastModified() { final Path lastModifiedPath = ioService.get(systemRepository.getUri()).resolve(LAST_MODIFIED_MARKER_FILE); return ioService.getLastModifiedTime(lastModifiedPath).toMillis(); }
protected long getLastModified() { final Path lastModifiedPath = ioService.get(systemRepository.getUri()).resolve(LAST_MODIFIED_MARKER_FILE); return ioService.getLastModifiedTime(lastModifiedPath).toMillis(); }
String.valueOf(((FileTime) property.getValue()).toMillis()), new HashSet<>(Arrays.asList(Long.class)), property.isSortable(),
((FileTime) value).toMillis());
((FileTime) value).toMillis());
String.valueOf(((FileTime) property.getValue()).toMillis()), new HashSet<>(Arrays.asList(Long.class)), property.isSortable(),
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,
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,