protected FileMetadataExt getObjectFileProperties(Connection connection, IProgressMonitor monitor,
CustomObjectNameResolver objectNameResolver) throws ForceConnectionException, ForceRemoteException,
InterruptedException, FactoryException {
List<FileProperties> list = new ArrayList<FileProperties>();
FileMetadataExt fileMetadataExtArray =
listMetadata(connection, getComponentFactory().getComponentByComponentType(Constants.CUSTOM_OBJECT),
monitor);
if (fileMetadataExtArray != null && Utils.isNotEmpty(fileMetadataExtArray.getFileProperties())) {
for (FileProperties prop : fileMetadataExtArray.getFileProperties()) {
if (objectNameResolver.check(new Path(prop.getFullName()).lastSegment(), Constants.CUSTOM_OBJECT)) {
list.add(prop);
}
}
}
return new FileMetadataExt(list.toArray(new FileProperties[list.size()]));
}