Class DriveFile
- java.lang.Object
-
- org.springframework.social.google.api.ApiEntity
-
- org.springframework.social.google.api.drive.DriveFile
-
public class DriveFile extends ApiEntity
Model class representing a file in Google Drive- Author:
- Gabriel Axel
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDriveFile.Builder
-
Constructor Summary
Constructors Constructor Description DriveFile()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DriveFile.Builderbuilder()StringgetAlternateLink()DategetCreatedDate()StringgetDescription()StringgetDownloadUrl()StringgetEmbedLink()Map<String,String>getExportLinks()longgetFileSize()StringgetIconLink()StringgetLastModifyingUserName()DategetLastViewedByMeDate()StringgetMd5Checksum()StringgetMimeType()DategetModifiedDate()List<String>getOwnerNames()List<DriveFileParent>getParents()longgetQuotaBytesUsed()StringgetSelfLink()StringgetThumbnailLink()StringgetTitle()UserPermissiongetUserPermission()booleanisAppDataContents()booleanisEditable()booleanisFolder()booleanisHidden()booleanisRestricted()booleanisShortcut()booleanisStarred()booleanisTrashed()booleanisViewed()booleanisWritersCanShare()
-
-
-
Field Detail
-
FOLDER
public static final String FOLDER
- See Also:
- Constant Field Values
-
SHORTCUT
public static final String SHORTCUT
- See Also:
- Constant Field Values
-
-
Method Detail
-
builder
public static DriveFile.Builder builder()
-
isFolder
public boolean isFolder()
-
isShortcut
public boolean isShortcut()
-
getTitle
public String getTitle()
-
getDescription
public String getDescription()
-
getSelfLink
public String getSelfLink()
-
getAlternateLink
public String getAlternateLink()
-
getIconLink
public String getIconLink()
-
getEmbedLink
public String getEmbedLink()
-
getThumbnailLink
public String getThumbnailLink()
-
getMimeType
public String getMimeType()
-
getDownloadUrl
public String getDownloadUrl()
- Returns:
- Short lived download link that requires authentication
-
getCreatedDate
public Date getCreatedDate()
-
getModifiedDate
public Date getModifiedDate()
-
getLastViewedByMeDate
public Date getLastViewedByMeDate()
-
getParents
public List<DriveFileParent> getParents()
-
getUserPermission
public UserPermission getUserPermission()
-
getMd5Checksum
public String getMd5Checksum()
-
getFileSize
public long getFileSize()
-
getQuotaBytesUsed
public long getQuotaBytesUsed()
-
getLastModifyingUserName
public String getLastModifyingUserName()
-
isEditable
public boolean isEditable()
-
isWritersCanShare
public boolean isWritersCanShare()
-
isAppDataContents
public boolean isAppDataContents()
-
isStarred
public boolean isStarred()
-
isHidden
public boolean isHidden()
-
isTrashed
public boolean isTrashed()
-
isRestricted
public boolean isRestricted()
-
isViewed
public boolean isViewed()
-
-