Sdílet prostřednictvím


PathItem Class

  • java.lang.Object
    • com.azure.storage.file.datalake.models.PathItem

public class PathItem

PathItem contains basic information about a path item that is returned by the service after certain operations.

Constructor Summary

Constructor Description
PathItem(String eTag, OffsetDateTime lastModified, long contentLength, String group, boolean isDirectory, String name, String owner, String permissions)

Constructs a PathItem

PathItem(String eTag, OffsetDateTime lastModified, long contentLength, String group, boolean isDirectory, String name, String owner, String permissions, OffsetDateTime creationTime, OffsetDateTime expiryTime)

Constructs a PathItem

Method Summary

Modifier and Type Method and Description
long getContentLength()

Get the contentLength property: The contentLength property.

OffsetDateTime getCreationTime()

Get the creation time property.

String getETag()

Get the eTag property: The eTag property.

String getEncryptionContext()

Get the encryptionContext property: Encryption context for this path.

String getEncryptionScope()

Get the encryptionScope property: The name of the encryption scope under which the blob is encrypted.

OffsetDateTime getExpiryTime()

Get the expiry time property.

String getGroup()

Get the group property: The group property.

OffsetDateTime getLastModified()

Get the lastModified property: The lastModified property.

String getName()

Get the name property: The name property.

String getOwner()

Get the owner property: The owner property.

String getPermissions()

Get the permissions property: The permissions property.

boolean isDirectory()

Get the isDirectory property: The isDirectory property.

Methods inherited from java.lang.Object

Constructor Details

PathItem

public PathItem(String eTag, OffsetDateTime lastModified, long contentLength, String group, boolean isDirectory, String name, String owner, String permissions)

Constructs a PathItem

Parameters:

eTag - ETag of the path.
lastModified - Datetime when the path was last modified.
contentLength - The content length of the path.
group - The group the path belongs to.
isDirectory - Whether or not the path is a directory.
name - The name of the path.
owner - The owner the path belongs to.
permissions - The permissions set on the path.

PathItem

public PathItem(String eTag, OffsetDateTime lastModified, long contentLength, String group, boolean isDirectory, String name, String owner, String permissions, OffsetDateTime creationTime, OffsetDateTime expiryTime)

Constructs a PathItem

Parameters:

eTag - ETag of the path.
lastModified - Datetime when the path was last modified.
contentLength - The content length of the path.
group - The group the path belongs to.
isDirectory - Whether or not the path is a directory.
name - The name of the path.
owner - The owner the path belongs to.
permissions - The permissions set on the path.
creationTime - The creation time of the path item.
expiryTime - The expiry time of the path item.

Method Details

getContentLength

public long getContentLength()

Get the contentLength property: The contentLength property.

Returns:

the contentLength value.

getCreationTime

public OffsetDateTime getCreationTime()

Get the creation time property.

Returns:

the creation time value.

getETag

public String getETag()

Get the eTag property: The eTag property.

Returns:

the eTag value.

getEncryptionContext

public String getEncryptionContext()

Get the encryptionContext property: Encryption context for this path. Only applicable for files.

Returns:

the encryptionContext value.

getEncryptionScope

public String getEncryptionScope()

Get the encryptionScope property: The name of the encryption scope under which the blob is encrypted.

Returns:

the encryptionScope value.

getExpiryTime

public OffsetDateTime getExpiryTime()

Get the expiry time property.

Returns:

the expiry time value.

getGroup

public String getGroup()

Get the group property: The group property.

Returns:

the group value.

getLastModified

public OffsetDateTime getLastModified()

Get the lastModified property: The lastModified property.

Returns:

the lastModified value.

getName

public String getName()

Get the name property: The name property.

Returns:

the name value.

getOwner

public String getOwner()

Get the owner property: The owner property.

Returns:

the owner value.

getPermissions

public String getPermissions()

Get the permissions property: The permissions property.

Returns:

the permissions value.

isDirectory

public boolean isDirectory()

Get the isDirectory property: The isDirectory property.

Returns:

the isDirectory value.

Applies to