PathRemoveAccessControlEntry Class

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

public class PathRemoveAccessControlEntry

Represents an access control in a file access control list for removal.

Constructor Summary

Constructor Description
PathRemoveAccessControlEntry()

Initializes an empty instance of PathRemoveAccessControlEntry.

Method Summary

Modifier and Type Method and Description
AccessControlType getAccessControlType()

Specifies which role this entry targets.

String getEntityId()

Specifies the entity for which this entry applies.

boolean isDefaultScope()

Indicates whether this is the default entry for the ACL.

static PathRemoveAccessControlEntry parse(String str)

Parses the provided string into a PathAccessControlEntry.

static List<PathRemoveAccessControlEntry> parseList(String str)

Deserializes an ACL to the format "user::rwx,user:john.doe@contoso:rwx,group::r--,other::---,mask=rwx"

static String serializeList(List<PathRemoveAccessControlEntry> acl)

Converts the Access Control List to a String.

PathRemoveAccessControlEntry setAccessControlType(AccessControlType accessControlType)

Specifies which role this entry targets.

PathRemoveAccessControlEntry setDefaultScope(boolean defaultScope)

Sets whether this is the default entry for the ACL.

PathRemoveAccessControlEntry setEntityId(String entityId)

Specifies the entity for which this entry applies.

String toString()

Methods inherited from java.lang.Object

Constructor Details

PathRemoveAccessControlEntry

public PathRemoveAccessControlEntry()

Initializes an empty instance of PathRemoveAccessControlEntry.

Method Details

getAccessControlType

public AccessControlType getAccessControlType()

Specifies which role this entry targets.

Returns:

Which role this entry targets.

getEntityId

public String getEntityId()

Specifies the entity for which this entry applies. Must be omitted for types mask or other. It must also be omitted when the user or group is the owner.

Returns:

The entity for which this entry applies.

isDefaultScope

public boolean isDefaultScope()

Indicates whether this is the default entry for the ACL.

Returns:

Whether this is the default entry for the ACL.

parse

public static PathRemoveAccessControlEntry parse(String str)

Parses the provided string into a PathAccessControlEntry. Must be of the format "[scope:][type]:[id]".

Parameters:

str - The string representation of the ACL.

Returns:

The deserialized list.

parseList

public static List parseList(String str)

Deserializes an ACL to the format "user::rwx,user:john.doe@contoso:rwx,group::r--,other::---,mask=rwx"

Parameters:

str - The String representation of the ACL.

Returns:

The ACL deserialized into a java.util.List

serializeList

public static String serializeList(List acl)

Converts the Access Control List to a String. The format is specified in the description of this type.

Parameters:

acl - The Access Control List to serialize.

Returns:

A String representing the serialized Access Control List

setAccessControlType

public PathRemoveAccessControlEntry setAccessControlType(AccessControlType accessControlType)

Specifies which role this entry targets.

Parameters:

accessControlType - Which role this entry targets.

Returns:

The updated object.

setDefaultScope

public PathRemoveAccessControlEntry setDefaultScope(boolean defaultScope)

Sets whether this is the default entry for the ACL.

Parameters:

defaultScope - Whether this is the default entry for the ACL.

Returns:

The updated object.

setEntityId

public PathRemoveAccessControlEntry setEntityId(String entityId)

Specifies the entity for which this entry applies. Must be omitted for types mask or other. It must also be omitted when the user or group is the owner.

Parameters:

entityId - The entity for which this entry applies.

Returns:

The updated object.

toString

public String toString()

Overrides:

PathRemoveAccessControlEntry.toString()

Applies to