@Test public void testIsListingResetNecessary() throws Exception { assertEquals(true, processor.isListingResetNecessary(ListFile.DIRECTORY)); assertEquals(true, processor.isListingResetNecessary(ListFile.RECURSE)); assertEquals(true, processor.isListingResetNecessary(ListFile.FILE_FILTER)); assertEquals(true, processor.isListingResetNecessary(ListFile.PATH_FILTER)); assertEquals(true, processor.isListingResetNecessary(ListFile.MIN_AGE)); assertEquals(true, processor.isListingResetNecessary(ListFile.MAX_AGE)); assertEquals(true, processor.isListingResetNecessary(ListFile.MIN_SIZE)); assertEquals(true, processor.isListingResetNecessary(ListFile.MAX_SIZE)); assertEquals(true, processor.isListingResetNecessary(ListFile.IGNORE_HIDDEN_FILES)); assertEquals(false, processor.isListingResetNecessary(new PropertyDescriptor.Builder().name("x").build())); }
@Override protected boolean isListingResetNecessary(final PropertyDescriptor property) { return DIRECTORY.equals(property) || RECURSE.equals(property) || FILE_FILTER.equals(property) || PATH_FILTER.equals(property) || MIN_AGE.equals(property) || MAX_AGE.equals(property) || MIN_SIZE.equals(property) || MAX_SIZE.equals(property) || IGNORE_HIDDEN_FILES.equals(property); }
ListFile extends AbstractListProcessor<FileInfo> { @Override protected boolean isListingResetNecessary(final PropertyDescriptor property) { return DIRECTORY.equals(property) || RECURSE.equals(property) || FILE_FILTER.equals(property) || PATH_FILTER.equals(property) || MIN_AGE.equals(property) || MAX_AGE.equals(property) || MIN_SIZE.equals(property) || MAX_SIZE.equals(property) || IGNORE_HIDDEN_FILES.equals(property); } }
ListFile extends AbstractListProcessor<FileInfo> { @Override protected boolean isListingResetNecessary(final PropertyDescriptor property) { return DIRECTORY.equals(property) || RECURSE.equals(property) || FILE_FILTER.equals(property) || PATH_FILTER.equals(property) || MIN_AGE.equals(property) || MAX_AGE.equals(property) || MIN_SIZE.equals(property) || MAX_SIZE.equals(property) || IGNORE_HIDDEN_FILES.equals(property); }  }
ListFile extends AbstractListProcessor<FileInfo> { @Override protected boolean isListingResetNecessary(final PropertyDescriptor property) { return DIRECTORY.equals(property) || RECURSE.equals(property) || FILE_FILTER.equals(property) || PATH_FILTER.equals(property) || MIN_AGE.equals(property) || MAX_AGE.equals(property) || MIN_SIZE.equals(property) || MAX_SIZE.equals(property) || IGNORE_HIDDEN_FILES.equals(property); }  @Override Set<Relationship> getRelationships(); @OnScheduled void onScheduled(final ProcessContext context); }
ListFile extends AbstractListProcessor<FileInfo> { @Override protected boolean isListingResetNecessary(final PropertyDescriptor property) { return DIRECTORY.equals(property) || RECURSE.equals(property) || FILE_FILTER.equals(property) || PATH_FILTER.equals(property) || MIN_AGE.equals(property) || MAX_AGE.equals(property) || MIN_SIZE.equals(property) || MAX_SIZE.equals(property) || IGNORE_HIDDEN_FILES.equals(property); }  @Override Set<Relationship> getRelationships(); @OnScheduled void onScheduled(final ProcessContext context); static final PropertyDescriptor DIRECTORY; static final PropertyDescriptor RECURSE; static final PropertyDescriptor DIRECTORY_LOCATION; static final PropertyDescriptor FILE_FILTER; static final PropertyDescriptor PATH_FILTER; static final PropertyDescriptor MIN_AGE; static final PropertyDescriptor MAX_AGE; static final PropertyDescriptor MIN_SIZE; static final PropertyDescriptor MAX_SIZE; static final PropertyDescriptor IGNORE_HIDDEN_FILES; static final String FILE_CREATION_TIME_ATTRIBUTE; static final String FILE_LAST_MODIFY_TIME_ATTRIBUTE; static final String FILE_LAST_ACCESS_TIME_ATTRIBUTE; static final String FILE_SIZE_ATTRIBUTE; static final String FILE_OWNER_ATTRIBUTE; static final String FILE_GROUP_ATTRIBUTE; static final String FILE_PERMISSIONS_ATTRIBUTE; static final String FILE_MODIFY_DATE_ATTR_FORMAT; }