Package sonia.scm.security
Class AuthorizationChangedEvent
java.lang.Object
sonia.scm.security.AuthorizationChangedEvent
This type of event is fired whenever an authorization relevant data changes. This event
is especially useful for cache invalidation.
- Since:
- 1.52
-
Method Summary
Modifier and TypeMethodDescriptionstatic AuthorizationChangedEvent
Creates a new event which affects every user.static AuthorizationChangedEvent
createForUser
(String nameOfAffectedUser) Create a new event which affect a single user.Returns the name of the user which is affected by this event.boolean
Returnstrue
if every user is affected by this data change.
-
Method Details
-
isEveryUserAffected
public boolean isEveryUserAffected()Returnstrue
if every user is affected by this data change. -
getNameOfAffectedUser
Returns the name of the user which is affected by this event. -
createForEveryUser
Creates a new event which affects every user. -
createForUser
Create a new event which affect a single user.
-