@Deprecated public interface

GrantedPermission

com.atlassian.stash.user.GrantedPermission

This interface is deprecated.
since 2.4. Removal scheduled for 3.0. This interface is not exposed by any services and is not used.

Class Overview

Represents a permission that is granted to either a user, a group, or anonymous users (granted to everyone).

Summary

Public Methods
@Nullable @OptionalString String getGroup()
@Nonnull Permission getPermission()
@Nullable Project getProject()
@Nullable StashUser getUser()
boolean isAllowAnon()

Public Methods

@Nullable @OptionalString public String getGroup ()

Returns
  • the group the permission was granted to. Can be null.

@Nonnull public Permission getPermission ()

Returns
  • the permission that was granted

@Nullable public Project getProject ()

Returns
  • the project the permission was granted on. Will be null for global permissions.

@Nullable public StashUser getUser ()

Returns
  • the user the permission was granted to. Can be null.

public boolean isAllowAnon ()

Returns
  • whether the permission is granted to anonymous users.