public class

SetFilePermissionRequest

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

Class Overview

Request to set permissions on a File or Path.

Summary

Nested Classes
class SetFilePermissionRequest.Builder  
Public Methods
@Deprecated @Nonnull File getFile()
This method is deprecated. in 5.11 for removal in 6.0. Use getPath() instead.
@Nonnull Set<FilePermission> getGroupPermissions()
Retrieves the permissions granted to members of the owning group.
@Nonnull Set<FilePermission> getOwnerPermissions()
Retrieves the permissions granted to the file owner.
@Nonnull Path getPath()
@Nonnull Set<FilePermission> getWorldPermissions()
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

@Deprecated @Nonnull public File getFile ()

This method is deprecated.
in 5.11 for removal in 6.0. Use getPath() instead.

Returns
  • the File to set permissions for

@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.

@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.

@Nonnull public Path getPath ()

Returns
  • the Path to set permissions for

@Nonnull public Set<FilePermission> getWorldPermissions ()