@Deprecated
public class DLOpenerGoogleDriveFileReference
extends java.lang.Object
FileEntry
and a
Google Drive file. The methods in DLOpenerGoogleDriveManager
return
instances of this class, which you should never create directly.Constructor and Description |
---|
DLOpenerGoogleDriveFileReference(long fileEntryId,
java.util.function.Supplier<java.lang.String> titleSupplier,
java.util.function.Supplier<java.io.File> fileSupplier,
long backgroundTaskId)
Deprecated.
Creates a new
DLOpenerGoogleDriveFileReference . |
Modifier and Type | Method and Description |
---|---|
long |
getBackgroundTaskId()
Deprecated.
Returns the primary key of the background task that uploads the original
file contents to Google Drive.
|
java.io.File |
getContentFile()
Deprecated.
Returns a file with this Google Drive file reference's content.
|
long |
getFileEntryId()
Deprecated.
Returns the primary key of the file entry linked to this reference.
|
java.lang.String |
getTitle()
Deprecated.
Returns this Google Drive file reference's title.
|
public DLOpenerGoogleDriveFileReference(long fileEntryId, java.util.function.Supplier<java.lang.String> titleSupplier, java.util.function.Supplier<java.io.File> fileSupplier, long backgroundTaskId)
DLOpenerGoogleDriveFileReference
.fileEntryId
- the primary key of the file entrytitleSupplier
- the supplier that provides the document's title when
invokedfileSupplier
- the supplier that provides the document's contents
when invokedbackgroundTaskId
- the primary key of the background process that
uploads the original file contents to Google Drive. If 0
,
no upload task is in progress.public long getBackgroundTaskId()
0
, no
upload task is in progress.public java.io.File getContentFile()
public long getFileEntryId()
public java.lang.String getTitle()