public class GDriveFileSystemConfigBuilder
extends org.apache.commons.vfs2.FileSystemConfigBuilder
| Modifier and Type | Field and Description |
|---|---|
static String |
ACCESS_TOKEN
Variable name.
|
static String |
DISPLAY_NAME
Variable name.
|
static String |
USE_TRASH
Variable name.
|
| Constructor and Description |
|---|
GDriveFileSystemConfigBuilder()
Constructor method.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAccessToken(org.apache.commons.vfs2.FileSystemOptions options)
Getter for Google Drive access token.
|
String |
getAccountDisplayName(org.apache.commons.vfs2.FileSystemOptions options)
Getter for Google Drive account display name.
|
static GDriveFileSystemConfigBuilder |
getSharedInstance()
Provides the shared instance of the factory implementation.
|
Boolean |
getUseTrash(org.apache.commons.vfs2.FileSystemOptions options)
Getter for delete mode: put into trash (may be restored) or delete permanantly.
|
void |
setAccessToken(org.apache.commons.vfs2.FileSystemOptions options,
String token)
Setter for Google Drive access token.
|
void |
setAccountDisplayName(org.apache.commons.vfs2.FileSystemOptions options,
String name)
Setter for Google Drive account display name.
|
void |
setUseTrash(org.apache.commons.vfs2.FileSystemOptions options,
Boolean trash)
Setter for delete mode: put into trash (may be restored) or delete permanantly.
|
public static final String DISPLAY_NAME
public static final String ACCESS_TOKEN
public static final String USE_TRASH
public GDriveFileSystemConfigBuilder()
public static GDriveFileSystemConfigBuilder getSharedInstance()
public void setAccountDisplayName(org.apache.commons.vfs2.FileSystemOptions options,
String name)
options - The optionsname - The display namepublic String getAccountDisplayName(org.apache.commons.vfs2.FileSystemOptions options)
options - The optionsnullpublic void setAccessToken(org.apache.commons.vfs2.FileSystemOptions options,
String token)
options - The optionstoken - The access tokenpublic String getAccessToken(org.apache.commons.vfs2.FileSystemOptions options)
options - The optionsnullpublic void setUseTrash(org.apache.commons.vfs2.FileSystemOptions options,
Boolean trash)
options - The optionstrash - Move to trash?public Boolean getUseTrash(org.apache.commons.vfs2.FileSystemOptions options)
options - The optionsnull.
Copyright © 2005-2024 Leisenfels GmbH. All rights reserved.