Class SetFilePermissionRequest

java.lang.Object
com.atlassian.bitbucket.util.SetFilePermissionRequest

public class SetFilePermissionRequest extends Object
Request to set permissions on a Path.
Since:
4.10
  • Method Details

    • getGroupPermissions

      @Nonnull public Set<FilePermission> getGroupPermissions()
      Retrieves the permissions granted to members of the owning group.

      Note: Group permissions are not applied on Windows. Unlike POSIX-compliant OS's, where files and directories are associated with both a user and a group, and where the permission model explicitly provides for setting a group permission agnostic of the group's name, the ACL model used by Windows requires knowing the name of the group you want to provision.

      Returns:
      the group file permissions to set.
    • getOwnerPermissions

      @Nonnull public Set<FilePermission> getOwnerPermissions()
      Retrieves the permissions granted to the file owner.

      Note: For convenience owner permissions on Windows are also applied to the Administrator group.

      Returns:
      the owner file permissions to set.
    • getPath

      @Nonnull public Path getPath()
      Returns:
      the Path to set permissions for
      Since:
      5.11
    • getWorldPermissions

      @Nonnull public Set<FilePermission> getWorldPermissions()