Class GlobalPermissionModificationRequestedEvent
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
- All Implemented Interfaces:
- CancelableEvent,- PermissionModificationRequestedEvent,- CancelState,- Serializable
@TransactionAware(IMMEDIATE)
public class GlobalPermissionModificationRequestedEvent
extends AbstractGlobalPermissionModificationEvent
implements PermissionModificationRequestedEvent
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.
 
 This event is internally audited with CoverageLevel.BASE level.
- See Also:
- 
Field SummaryFields inherited from class java.util.EventObjectsource
- 
Constructor SummaryConstructorsConstructorDescriptionGlobalPermissionModificationRequestedEvent(Object source, Permission oldValue, Permission newValue, String affectedGroup, ApplicationUser affectedUser, CancelState cancelState) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidcancel(KeyedMessage message) Cancels the operation, providing a message explaining why.booleanRetrieves a flag indicating whether the operation has been canceled.Methods inherited from class com.atlassian.bitbucket.event.permission.AbstractGlobalPermissionModificationEventgetNewValue, getOldValueMethods inherited from class com.atlassian.bitbucket.event.permission.PermissionEventgetAffectedGroup, getAffectedUser, getPermissionMethods inherited from class com.atlassian.bitbucket.event.ApplicationEventgetDate, getUserMethods inherited from class java.util.EventObjectgetSource, toStringMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.atlassian.bitbucket.event.permission.PermissionModificationRequestedEventgetNewValue, getOldValue
- 
Constructor Details- 
GlobalPermissionModificationRequestedEventpublic GlobalPermissionModificationRequestedEvent(@Nonnull Object source, @Nonnull Permission oldValue, @Nonnull Permission newValue, @Nullable String affectedGroup, @Nullable ApplicationUser affectedUser, @Nonnull CancelState cancelState) 
 
- 
- 
Method Details- 
cancelDescription copied from interface:CancelStateCancels 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. - Specified by:
- cancelin interface- CancelState
- Parameters:
- message- a descriptive message explaining why the operation has been canceled
 
- 
isCanceledpublic boolean isCanceled()Description copied from interface:CancelStateRetrieves 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.- Specified by:
- isCanceledin interface- CancelState
- Returns:
- trueif the operation has been- canceled; otherwise,- false
 
 
-