java.lang.Object | ||||||
↳ | java.util.EventObject | |||||
↳ | com.atlassian.bitbucket.event.ApplicationEvent | |||||
↳ | com.atlassian.bitbucket.event.permission.PermissionEvent | |||||
↳ | com.atlassian.bitbucket.event.permission.GlobalPermissionEvent | |||||
↳ | com.atlassian.bitbucket.event.permission.AbstractGlobalPermissionModificationEvent | |||||
↳ | com.atlassian.bitbucket.event.permission.GlobalPermissionModificationRequestedEvent |
This event is raised before a user or group's global permission is modified. This event is synchronous, allowing listeners to perform operations in the same database transaction where the permission is modified.
This event is cancelable
. A listener may prevent the permission
from being modified by canceling
this event.
Throwing an exception will not prevent the permission from being modified;
the exception will be logged and ignored.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.util.EventObject
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Cancels the operation, providing a message explaining why.
| |||||||||||
Retrieves a flag indicating whether the operation has been canceled.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.atlassian.bitbucket.event.permission.AbstractGlobalPermissionModificationEvent
| |||||||||||
From class
com.atlassian.bitbucket.event.permission.PermissionEvent
| |||||||||||
From class
com.atlassian.bitbucket.event.ApplicationEvent
| |||||||||||
From class
java.util.EventObject
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.bitbucket.event.permission.PermissionModificationRequestedEvent
| |||||||||||
From interface
com.atlassian.bitbucket.util.CancelState
|
Cancels the operation, providing a message explaining why.
The cancellation message is required, and should be as descriptive and clear as possible to allow end users to correct, if possible, the issue that triggered cancellation.
message | a descriptive message explaining why the operation has been canceled |
---|
Retrieves a flag indicating whether the operation has been canceled.
In situations where multiple observers have the option to cancel an operation, for example when multiple
listeners receive the same CancelableEvent
, this flag
can be useful for determining that another observer has already canceled the operation.
true
if the operation has been canceled
; otherwise, false