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 Details

    • PathRemoveAccessControlEntry

      public PathRemoveAccessControlEntry()
      Initializes an empty instance of PathRemoveAccessControlEntry.
  • 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

      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.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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.
      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 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
    • 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 - The String representation of the ACL.
      Returns:
      The ACL deserialized into a java.util.List