Class ShareFile
- java.lang.Object
-
- com.microsoft.azure.toolkit.lib.common.model.AbstractAzResource<ShareFile,IShareFile,com.azure.storage.file.share.models.ShareFileItem>
-
- com.microsoft.azure.toolkit.lib.storage.share.ShareFile
-
- All Implemented Interfaces:
com.microsoft.azure.toolkit.lib.common.model.AzResource,com.microsoft.azure.toolkit.lib.common.model.AzResourceBase,com.microsoft.azure.toolkit.lib.common.model.Deletable,com.microsoft.azure.toolkit.lib.common.model.Refreshable,StorageFile,IShareFile
- Direct Known Subclasses:
ShareFileDraft
public class ShareFile extends com.microsoft.azure.toolkit.lib.common.model.AbstractAzResource<ShareFile,IShareFile,com.azure.storage.file.share.models.ShareFileItem> implements com.microsoft.azure.toolkit.lib.common.model.Deletable, IShareFile
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.microsoft.azure.toolkit.lib.common.model.AzResource
com.microsoft.azure.toolkit.lib.common.model.AzResource.Draft<T extends com.microsoft.azure.toolkit.lib.common.model.AzResource,R extends Object>, com.microsoft.azure.toolkit.lib.common.model.AzResource.None, com.microsoft.azure.toolkit.lib.common.model.AzResource.Status
-
Nested classes/interfaces inherited from interface com.microsoft.azure.toolkit.lib.common.model.AzResourceBase
com.microsoft.azure.toolkit.lib.common.model.AzResourceBase.FormalStatus
-
Nested classes/interfaces inherited from interface com.microsoft.azure.toolkit.lib.storage.model.StorageFile
StorageFile.Draft<T extends StorageFile,R>
-
-
Field Summary
Fields Modifier and Type Field Description private ShareFileModulesubFileModule
-
Constructor Summary
Constructors Modifier Constructor Description ShareFile(ShareFile origin)copy constructorprotectedShareFile(String name, ShareFileModule module)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddownload(OutputStream output)voiddownload(Path dest)ObjectgetClient()java.time.OffsetDateTimegetCreationTime()java.time.OffsetDateTimegetLastModified()StringgetPath()SharegetShare()longgetSize()List<com.microsoft.azure.toolkit.lib.common.model.AbstractAzResourceModule<?,?,?>>getSubModules()StringgetUrl()booleanisDirectory()StringloadStatus(com.azure.storage.file.share.models.ShareFileItem remote)-
Methods inherited from class com.microsoft.azure.toolkit.lib.common.model.AbstractAzResource
canEqual, delete, deleteFromCache, doModify, doModify, equals, exists, getId, getModule, getName, getParent, getRemote, getResourceGroup, getResourceGroupName, getStatus, getSubModule, hashCode, invalidateCache, isDraft, isDraftForCreating, isDraftForUpdating, loadRemote, refresh, refreshRemoteFromAzure, reloadStatus, remoteOptional, setRemote, setStatus, toString, update, updateAdditionalProperties
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.microsoft.azure.toolkit.lib.common.model.AzResource
delete, exists, getFullResourceType, getId, getModule, getName, getPortalUrl, getResourceGroupName, getResourceTypeName, getStatus, getSubscription, getSubscriptionId, id, name, refresh
-
Methods inherited from interface com.microsoft.azure.toolkit.lib.common.model.AzResourceBase
getFormalStatus
-
Methods inherited from interface com.microsoft.azure.toolkit.lib.storage.share.IShareFile
getSasUrl
-
Methods inherited from interface com.microsoft.azure.toolkit.lib.storage.model.StorageFile
getFile, getSubFileModule
-
-
-
-
Field Detail
-
subFileModule
private final ShareFileModule subFileModule
-
-
Method Detail
-
getSubModules
@Nonnull public List<com.microsoft.azure.toolkit.lib.common.model.AbstractAzResourceModule<?,?,?>> getSubModules()
- Specified by:
getSubModulesin classcom.microsoft.azure.toolkit.lib.common.model.AbstractAzResource<ShareFile,IShareFile,com.azure.storage.file.share.models.ShareFileItem>
-
loadStatus
@Nonnull public String loadStatus(@Nonnull com.azure.storage.file.share.models.ShareFileItem remote)
- Specified by:
loadStatusin classcom.microsoft.azure.toolkit.lib.common.model.AbstractAzResource<ShareFile,IShareFile,com.azure.storage.file.share.models.ShareFileItem>
-
getSize
public long getSize()
- Specified by:
getSizein interfaceStorageFile
-
getLastModified
@Nullable public java.time.OffsetDateTime getLastModified()
- Specified by:
getLastModifiedin interfaceStorageFile
-
getCreationTime
@Nullable public java.time.OffsetDateTime getCreationTime()
- Specified by:
getCreationTimein interfaceStorageFile
-
download
public void download(OutputStream output)
- Specified by:
downloadin interfaceStorageFile
-
download
public void download(Path dest)
- Specified by:
downloadin interfaceStorageFile
-
getClient
@Nullable public Object getClient()
- Specified by:
getClientin interfaceStorageFile
-
getShare
public Share getShare()
- Specified by:
getSharein interfaceIShareFile
-
isDirectory
public boolean isDirectory()
- Specified by:
isDirectoryin interfaceStorageFile
-
getPath
public String getPath()
- Specified by:
getPathin interfaceStorageFile
-
getUrl
public String getUrl()
- Specified by:
getUrlin interfaceStorageFile
-
-