Interface GoogleDriveService
-
public interface GoogleDriveServiceInterface for communicating with the GoogleDrive API.
-
-
Field Summary
Fields Modifier and Type Field Description static StringENDPOINT_AUTHstatic StringENDPOINT_CERTSstatic StringENDPOINT_TOKENstatic List<String>fileFieldsToRequeststatic StringGOOGLEDRIVE_APP_NAMEstatic StringGOOGLEDRIVE_CLIENT_IDstatic StringGOOGLEDRIVE_CLIENT_SECRETstatic StringGOOGLEDRIVE_ENABLEDstatic StringGOOGLEDRIVE_PREFIXstatic StringGOOGLEDRIVE_REDIRECT_URI
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcleanGoogleDriveCacheForUser(String userId)InputStreamdownloadDriveFile(String userId, String itemId)StringformAuthenticationUrl()List<GoogleDriveItem>getDriveChildrenItems(String userId, String itemId, int depth)GoogleDriveItemgetDriveItem(String userId, String itemId)List<GoogleDriveItem>getDriveRootItems(String userId)GoogleDriveUsergetGoogleDriveUser(String userId)booleanrevokeGoogleDriveConfiguration(String userId)booleantoken(String userId, String code)
-
-
-
Field Detail
-
GOOGLEDRIVE_PREFIX
static final String GOOGLEDRIVE_PREFIX
- See Also:
- Constant Field Values
-
GOOGLEDRIVE_ENABLED
static final String GOOGLEDRIVE_ENABLED
- See Also:
- Constant Field Values
-
GOOGLEDRIVE_CLIENT_ID
static final String GOOGLEDRIVE_CLIENT_ID
- See Also:
- Constant Field Values
-
GOOGLEDRIVE_CLIENT_SECRET
static final String GOOGLEDRIVE_CLIENT_SECRET
- See Also:
- Constant Field Values
-
GOOGLEDRIVE_REDIRECT_URI
static final String GOOGLEDRIVE_REDIRECT_URI
- See Also:
- Constant Field Values
-
GOOGLEDRIVE_APP_NAME
static final String GOOGLEDRIVE_APP_NAME
- See Also:
- Constant Field Values
-
ENDPOINT_AUTH
static final String ENDPOINT_AUTH
- See Also:
- Constant Field Values
-
ENDPOINT_CERTS
static final String ENDPOINT_CERTS
- See Also:
- Constant Field Values
-
ENDPOINT_TOKEN
static final String ENDPOINT_TOKEN
- See Also:
- Constant Field Values
-
-
Method Detail
-
formAuthenticationUrl
String formAuthenticationUrl()
-
getDriveRootItems
List<GoogleDriveItem> getDriveRootItems(String userId)
-
getDriveChildrenItems
List<GoogleDriveItem> getDriveChildrenItems(String userId, String itemId, int depth)
-
getGoogleDriveUser
GoogleDriveUser getGoogleDriveUser(String userId)
-
revokeGoogleDriveConfiguration
boolean revokeGoogleDriveConfiguration(String userId)
-
cleanGoogleDriveCacheForUser
void cleanGoogleDriveCacheForUser(String userId)
-
getDriveItem
GoogleDriveItem getDriveItem(String userId, String itemId)
-
downloadDriveFile
InputStream downloadDriveFile(String userId, String itemId)
-
-