Class PathRemoveAccessControlEntry
- java.lang.Object
-
- com.azure.storage.file.datalake.models.PathRemoveAccessControlEntry
-
public class PathRemoveAccessControlEntry extends Object
Represents an access control in a file access control list for removal.
-
-
Constructor Summary
Constructors Constructor Description PathRemoveAccessControlEntry()
Initializes an empty instance ofPathRemoveAccessControlEntry
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 aPathAccessControlEntry
.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 aString
.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()
-
-
-
Method Detail
-
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
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.
-
getAccessControlType
public AccessControlType getAccessControlType()
Specifies which role this entry targets.- Returns:
- Which role this entry targets.
-
setAccessControlType
public PathRemoveAccessControlEntry setAccessControlType(AccessControlType accessControlType)
Specifies which role this entry targets.- Parameters:
accessControlType
- Which role this entry targets.- Returns:
- The updated object.
-
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.
-
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.
-
parse
public static PathRemoveAccessControlEntry parse(String str)
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
public static String serializeList(List<PathRemoveAccessControlEntry> acl)
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
public static List<PathRemoveAccessControlEntry> parseList(String str)
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
-
-