PathRemoveAccessControlEntry Class
- java.
lang. Object - com.
azure. storage. file. datalake. models. PathRemoveAccessControlEntry
- com.
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 |
Method Summary
Modifier and Type | Method and Description |
---|---|
Access |
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
Path |
parse(String str)
Parses the provided string into a |
static
List<Path |
parseList(String str)
Deserializes an ACL to the format "user::rwx,user:john. |
static String |
serializeList(List<PathRemoveAccessControlEntry> acl)
Converts the Access Control List to a |
Path |
setAccessControlType(AccessControlType accessControlType)
Specifies which role this entry targets. |
Path |
setDefaultScope(boolean defaultScope)
Sets whether this is the default entry for the ACL. |
Path |
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:
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:
isDefaultScope
public boolean isDefaultScope()
Indicates whether this is the default entry for the ACL.
Returns:
parse
public static PathRemoveAccessControlEntry parse(String str)
Parses the provided string into a PathAccessControlEntry
. Must be of the format "[scope:][type]:[id]".
Parameters:
Returns:
parseList
public static List
Deserializes an ACL to the format "user::rwx,user:john.doe@contoso:rwx,group::r--,other::---,mask=rwx"
Parameters:
String
representation of the ACL.
Returns:
java.util.List
serializeList
public static String serializeList(List
Converts the Access Control List to a String
. The format is specified in the description of this type.
Parameters:
Returns:
String
representing the serialized Access Control ListsetAccessControlType
public PathRemoveAccessControlEntry setAccessControlType(AccessControlType accessControlType)
Specifies which role this entry targets.
Parameters:
Returns:
setDefaultScope
public PathRemoveAccessControlEntry setDefaultScope(boolean defaultScope)
Sets whether this is the default entry for the ACL.
Parameters:
Returns:
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:
Returns:
toString
public String toString()
Overrides:
PathRemoveAccessControlEntry.toString()Applies to
Azure SDK for Java