Class PathRemoveAccessControlEntry
java.lang.Object
com.azure.storage.file.datalake.models.PathRemoveAccessControlEntry
Represents an access control in a file access control list for removal.
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes an empty instance ofPathRemoveAccessControlEntry
. -
Method Summary
Modifier and TypeMethodDescriptionSpecifies which role this entry targets.Specifies the entity for which this entry applies.boolean
Indicates whether this is the default entry for the ACL.static PathRemoveAccessControlEntry
Parses the provided string into aPathAccessControlEntry
.static List<PathRemoveAccessControlEntry>
Deserializes an ACL to the format "user::rwx,user:john.doe@contoso:rwx,group::r--,other::---,mask=rwx"static String
Converts the Access Control List to aString
.setAccessControlType
(AccessControlType accessControlType) Specifies which role this entry targets.setDefaultScope
(boolean defaultScope) Sets whether this is the default entry for the ACL.setEntityId
(String entityId) Specifies the entity for which this entry applies.toString()
-
Constructor Details
-
PathRemoveAccessControlEntry
public PathRemoveAccessControlEntry()Initializes an empty instance ofPathRemoveAccessControlEntry
.
-
-
Method Details
-
isDefaultScope
public boolean isDefaultScope()Indicates whether this is the default entry for the ACL.- Returns:
- Whether this is the default entry for the ACL.
-
setDefaultScope
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.
-
getAccessControlType
Specifies which role this entry targets.- Returns:
- Which role this entry targets.
-
setAccessControlType
Specifies which role this entry targets.- Parameters:
accessControlType
- Which role this entry targets.- Returns:
- The updated object.
-
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.
-
setEntityId
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
-
parse
Parses the provided string into aPathAccessControlEntry
. Must be of the format "[scope:][type]:[id]".- Parameters:
str
- The string representation of the ACL.- Returns:
- The deserialized list.
- Throws:
IllegalArgumentException
- if the String provided does not match the format.
-
serializeList
Converts the Access Control List to aString
. 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
-
parseList
Deserializes an ACL to the format "user::rwx,user:john.doe@contoso:rwx,group::r--,other::---,mask=rwx"- Parameters:
str
- TheString
representation of the ACL.- Returns:
- The ACL deserialized into a
java.util.List
-