@Deprecated public interface

DeprecatedPermissionAdminService

com.atlassian.stash.user.DeprecatedPermissionAdminService
Known Indirect Subclasses

This interface is deprecated.
in 2.4. Scheduled for removal in 4.0 at which point this interface will be removed and PermissionAdminService will no longer extend this interface. For the 3.0 release any deprecated methods scheduled for deletion in 3.0 will be removed.

Summary

Public Methods
@Deprecated Page<PermittedGroup> getGroupsWithGlobalPermission(PageRequest pageRequest)
This method is deprecated. in 2.4. Scheduled for removal in 3.0. This is due to the deprecation of getFilter(). Use findGroupsWithGlobalPermission(String, PageRequest) instead
@Deprecated Page<PermittedGroup> getGroupsWithProjectPermission(Project project, PageRequest pageRequest)
This method is deprecated. in 2.4. Scheduled for removal in 3.0. This is due to the deprecation of getFilter(). Use findGroupsWithProjectPermission(Project, String, PageRequest) instead
@Deprecated Page<String> getGroupsWithoutGlobalPermission(PageRequest pageRequest)
This method is deprecated. in 2.4. Scheduled for removal in 3.0. This is due to the deprecation of getFilter(). Use findGroupsWithoutGlobalPermission(String, PageRequest) instead
@Deprecated Page<String> getGroupsWithoutProjectPermission(Project project, PageRequest pageRequest)
This method is deprecated. in 2.4. Scheduled for removal in 3.0. This is due to the deprecation of getFilter(). Use findGroupsWithoutProjectPermission(Project, String, PageRequest) instead
@Deprecated Page<PermittedUser> getUsersWithGlobalPermission(PageRequest pageRequest)
This method is deprecated. in 2.4. Scheduled for removal in 3.0. This is due to the deprecation of getFilter(). Use findUsersWithGlobalPermission(String, PageRequest) instead
@Deprecated Page<PermittedUser> getUsersWithProjectPermission(Project project, PageRequest pageRequest)
This method is deprecated. in 2.4. Scheduled for removal in 3.0. This is due to the deprecation of getFilter(). Use findUsersWithProjectPermission(Project, String, PageRequest) instead
@Deprecated Page<? extends StashUser> getUsersWithoutGlobalPermission(PageRequest pageRequest)
This method is deprecated. in 2.4. Scheduled for removal in 3.0. This is due to the deprecation of getFilter(). Use findUsersWithoutGlobalPermission(String, PageRequest) instead
@Deprecated Page<? extends StashUser> getUsersWithoutProjectPermission(Project project, PageRequest pageRequest)
This method is deprecated. in 2.4. Scheduled for removal in 3.0. This is due to the deprecation of getFilter(). Use findUsersWithoutProjectPermission(Project, String, PageRequest) instead
@Deprecated boolean hasAllGlobalPermission(Permission permission)
This method is deprecated. since 2.4. This feature only exists at a project level. This method will be removed in 3.0
@Deprecated void revokeAllProjectPermissions(Project project)
This method is deprecated. as of 2.4 for removal in 3.0. This method was only required for revoking permissions on projects about to be deleted. This is no longer required as the database will cascade the delete.
@Deprecated void setGlobalPermission(Permission permission, StashUser user)
This method is deprecated. as of 2.4 for removal in 3.0. Use setPermission(SetPermissionRequest) to grant a permission to a user
@Deprecated void setGlobalPermission(Permission permission, String group)
This method is deprecated. as of 2.4 for removal in 3.0. Use setPermission(SetPermissionRequest) to grant a permission to a group
@Deprecated void setProjectPermission(Project project, Permission permission, StashUser user)
This method is deprecated. as of 2.4 for removal in 3.0. Use setPermission(SetPermissionRequest) to grant a permission to a user
@Deprecated void setProjectPermission(Project project, Permission permission, String group)
This method is deprecated. as of 2.4 for removal in 3.0. Use setPermission(SetPermissionRequest) to grant a permission to a group
@Deprecated void setRepositoryPermission(Repository repository, Permission permission, StashUser user)
This method is deprecated. as of 2.4 for removal in 3.0. Use setPermission(SetPermissionRequest) to grant a permission to a user
@Deprecated void setRepositoryPermission(Repository repository, Permission permission, String group)
This method is deprecated. as of 2.4 for removal in 3.0. Use setPermission(SetPermissionRequest) to grant a permission to a group

Public Methods

@Deprecated public Page<PermittedGroup> getGroupsWithGlobalPermission (PageRequest pageRequest)

This method is deprecated.
in 2.4. Scheduled for removal in 3.0. This is due to the deprecation of getFilter(). Use findGroupsWithGlobalPermission(String, PageRequest) instead

Retrieves a page of groups and their highest global permission. Groups which do not have any global permissions explicitly assigned to them will not be returned. If the page request has a non-null non-empty filter then the groups returned must include this text.

Parameters
pageRequest bounds the page of groups to be returned
Returns
  • a page containing zero or more groups which have been explicitly granted a global permission, and their highest granted permission

@Deprecated public Page<PermittedGroup> getGroupsWithProjectPermission (Project project, PageRequest pageRequest)

This method is deprecated.
in 2.4. Scheduled for removal in 3.0. This is due to the deprecation of getFilter(). Use findGroupsWithProjectPermission(Project, String, PageRequest) instead

Retrieves a page of groups and their highest granted permission for the specified project. Groups which do not have any permissions explicitly assigned to them for the specified project will not be returned. If the page request has a non-null non-empty filter then the groups returned must include this text.

Parameters
project the project for which permissions should be considered
pageRequest bounds the page of groups to be returned
Returns
  • a page containing zero or more groups which have been explicitly granted a permission for the specified project, and their highest granted permission

@Deprecated public Page<String> getGroupsWithoutGlobalPermission (PageRequest pageRequest)

This method is deprecated.
in 2.4. Scheduled for removal in 3.0. This is due to the deprecation of getFilter(). Use findGroupsWithoutGlobalPermission(String, PageRequest) instead

Retrieves a page of groups who have not been explicitedly granted any global permission If the page request has a non-null non-empty filter then the groups returned must include this text.

Parameters
pageRequest bounds the page of groups to be returned
Returns
  • a page of groupnames.

@Deprecated public Page<String> getGroupsWithoutProjectPermission (Project project, PageRequest pageRequest)

This method is deprecated.
in 2.4. Scheduled for removal in 3.0. This is due to the deprecation of getFilter(). Use findGroupsWithoutProjectPermission(Project, String, PageRequest) instead

Retrieves a page of groups who have not been explicitedly granted any project permission If the page request has a non-null non-empty filter then the groups returned must include this text.

Parameters
project the project for which the permissions are required.
pageRequest bounds the page of groups to be returned
Returns
  • a page of groupnames.

@Deprecated public Page<PermittedUser> getUsersWithGlobalPermission (PageRequest pageRequest)

This method is deprecated.
in 2.4. Scheduled for removal in 3.0. This is due to the deprecation of getFilter(). Use findUsersWithGlobalPermission(String, PageRequest) instead

Retrieves a page of users and their highest global permission. Users which do not have any global permissions explicitly assigned to them will not be returned. If the page request has a non-null non-empty filter then the usernames returned must include this text.

Parameters
pageRequest bounds the page of users to be returned
Returns
  • a page containing zero or more users who have been explicitly granted a global permission, and their highest granted permission

@Deprecated public Page<PermittedUser> getUsersWithProjectPermission (Project project, PageRequest pageRequest)

This method is deprecated.
in 2.4. Scheduled for removal in 3.0. This is due to the deprecation of getFilter(). Use findUsersWithProjectPermission(Project, String, PageRequest) instead

Retrieves a page of users and their highest granted permission for the specified project. Users which do not have any permissions explicitly assigned to them for the specified project will not be returned. If the page request has a non-null non-empty filter then the usernames returned must include this text.

Parameters
project the project for which permissions should be considered
pageRequest bounds the page of users to be returned
Returns
  • a page containing zero or more users who have been explicitly granted a permission for the specified project, and their highest granted permission

@Deprecated public Page<? extends StashUser> getUsersWithoutGlobalPermission (PageRequest pageRequest)

This method is deprecated.
in 2.4. Scheduled for removal in 3.0. This is due to the deprecation of getFilter(). Use findUsersWithoutGlobalPermission(String, PageRequest) instead

Retrieves a page of users who have not been explicitedly granted any global permission If the page request has a non-null non-empty filter then the usernames returned must include this text.

Parameters
pageRequest bounds the page of users to be returned
Returns
  • a page of StashUser instances.

@Deprecated public Page<? extends StashUser> getUsersWithoutProjectPermission (Project project, PageRequest pageRequest)

This method is deprecated.
in 2.4. Scheduled for removal in 3.0. This is due to the deprecation of getFilter(). Use findUsersWithoutProjectPermission(Project, String, PageRequest) instead

Retrieves a page of users who have not been explicitedly granted any project permission If the page request has a non-null non-empty filter then the usernames returned must include this text.

Parameters
project the project for which the permissions are required.
pageRequest bounds the page of users to be returned
Returns
  • a page of StashUser instances.

@Deprecated public boolean hasAllGlobalPermission (Permission permission)

This method is deprecated.
since 2.4. This feature only exists at a project level. This method will be removed in 3.0

Check if the given global permission has been granted to every logged in user.

Parameters
permission the permission to be checked.
Returns
  • true if the given global permission is granted to all users.

@Deprecated public void revokeAllProjectPermissions (Project project)

This method is deprecated.
as of 2.4 for removal in 3.0. This method was only required for revoking permissions on projects about to be deleted. This is no longer required as the database will cascade the delete.

Revoke all permissions associated with a project. Only global permissions will apply

Parameters
project the project on which permission is to be revokedK

@Deprecated public void setGlobalPermission (Permission permission, StashUser user)

This method is deprecated.
as of 2.4 for removal in 3.0. Use setPermission(SetPermissionRequest) to grant a permission to a user

Revokes all current global permissions and grants the specified global permission to the user

Parameters
permission the global permission to set
user user to set permission for

@Deprecated public void setGlobalPermission (Permission permission, String group)

This method is deprecated.
as of 2.4 for removal in 3.0. Use setPermission(SetPermissionRequest) to grant a permission to a group

Revokes all current global permissions and grants the specified global permission to the group

Parameters
permission the global permission to be set
group name of the group

@Deprecated public void setProjectPermission (Project project, Permission permission, StashUser user)

This method is deprecated.
as of 2.4 for removal in 3.0. Use setPermission(SetPermissionRequest) to grant a permission to a user

Revokes all current project permissions and grants the specified project permission to the user

Parameters
project the project on which permissions are to be revoked
permission the global permission to set
user user to set permission for

@Deprecated public void setProjectPermission (Project project, Permission permission, String group)

This method is deprecated.
as of 2.4 for removal in 3.0. Use setPermission(SetPermissionRequest) to grant a permission to a group

Revokes all current project permissions and grants the specified project permission to the group

Parameters
project the project on which permissions are to be revoked
permission the project permission to be set
group name of the group

@Deprecated public void setRepositoryPermission (Repository repository, Permission permission, StashUser user)

This method is deprecated.
as of 2.4 for removal in 3.0. Use setPermission(SetPermissionRequest) to grant a permission to a user

Revokes all current repository permissions and grants the specified repository permission to the user

Parameters
repository the repository on which permissions are to be revoked
permission the global permission to set
user user to set permission for

@Deprecated public void setRepositoryPermission (Repository repository, Permission permission, String group)

This method is deprecated.
as of 2.4 for removal in 3.0. Use setPermission(SetPermissionRequest) to grant a permission to a group

Revokes all current repository permissions and grants the specified repository permission to the group

Parameters
repository the repository on which permissions are to be revoked
permission the repository permission to be set
group name of the group