fileTreeDto.setChildren( fileList );
return fileTreeDto;
}
public static RepositoryFileDto convertFromRepositoryFile( RepositoryFile file ) {
RepositoryFileDto repositoryFile = new RepositoryFileDto();
repositoryFile.setCreatedDate( file.getCreatedDate() );
repositoryFile.setDeletedDate( file.getDeletedDate() );
repositoryFile.setDescription( file.getDescription() );
repositoryFile.setFolder( file.isFolder() );
repositoryFile.setHidden( file.isHidden() );
repositoryFile.setId( file.getId() );
repositoryFile.setLastModifiedDate( file.getLastModifiedDate() );
repositoryFile.setLocale( file.getLocale() );
repositoryFile.setLockDate( file.getLockDate() );
repositoryFile.setLocked( file.isLocked() );
repositoryFile.setLockMessage( file.getLockMessage() );
repositoryFile.setLockOwner( file.getLockOwner() );
repositoryFile.setName( file.getName() );
repositoryFile.setOriginalParentFolderPath( file.getOriginalParentFolderPath() );
repositoryFile.setOriginalParentFolderPath( file.getOriginalParentFolderPath() );
repositoryFile.setOwner( file.getOwner() );
repositoryFile.setPath( file.getPath() );
repositoryFile.setTitle( file.getTitle() );
repositoryFile.setVersionId( file.getVersionId() );
return repositoryFile;
}