| com.atlassian.stash.user.DeprecatedSecurityService |
Known Indirect Subclasses
|
This interface is deprecated.
in 2.12 and scheduled for removal in 4.0. This interface will be removed and SecurityService will
no longer extend this interface.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
This method is deprecated.
since 2.12, scheduled for removal in 4.0. Use
anonymously(String) instead.
| |||||||||||
This method is deprecated.
since 2.12, scheduled for removal in 4.0. Use
impersonating(StashUser, String) instead.
| |||||||||||
This method is deprecated.
since 2.12, scheduled for removal in 4.0. Use
withPermission(Permission, String) instead.
| |||||||||||
This method is deprecated.
since 2.12, scheduled for removal in 4.0. Use
withPermissions(java.util.Set, String) instead.
| |||||||||||
This method is deprecated.
since 2.12, scheduled for removal in 4.0. Use
anonymously(String) instead.
Execute an Operation anonymously (not as any user)
| reason | reason for running as a different user. Helpful for logging/debugging |
|---|---|
| operation | the Operation to perform. |
| when thrown by Operation.perform() | |
| Throwable |
This method is deprecated.
since 2.12, scheduled for removal in 4.0. Use
impersonating(StashUser, String) instead.
Execute an Operation as a particular user.
| reason | reason for running as a different user. Helpful for logging/debugging |
|---|---|
| userName | a String naming the user to impersonate. |
| operation | the Operation to perform. |
| when thrown by Operation.perform() | |
| PreAuthenticationFailedException | when authenticating as userName failed |
| Throwable |
This method is deprecated.
since 2.12, scheduled for removal in 4.0. Use
withPermission(Permission, String) instead.
Executes an Operation as the current user, but with elevated permission.
Note: nested invocations results in all elevated permissions taking effect rather than replacing the previous elevated permissions| reason | the reason for the elevation of permissions. Helpful for logging/debugging |
|---|---|
| permission | the permission to temporarily grant to the current user. |
| operation | the operation to perform |
| when thrown by Operation.perform() | |
| Throwable |
This method is deprecated.
since 2.12, scheduled for removal in 4.0. Use
withPermissions(java.util.Set, String) instead.
Executes an Operation as the current user, but with elevated permission.
Note: nested invocations results in all elevated permissions taking effect rather than replacing the previous elevated permissions| reason | the reason for the elevation of permissions. Helpful for logging/debugging |
|---|---|
| permissions | the permissions to temporarily grant to the current user. |
| operation | the operation to perform |
| when thrown by Operation.perform() | |
| Throwable |