Class Overview
An Administrator will be locked out of issues and projects if they do not have access to an application.
We will warn the administrators of such a configuration with a UI flag. This class provides come common utility
methods to help with the implementation of this flag.
Summary
Constants |
String |
FLAG |
The flag ID displayed in the UI. |
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Constants
public
static
final
String
FLAG
The flag ID displayed in the UI.
Constant Value:
"admin.lockout"
Public Constructors
Public Methods
public
boolean
isAdminWithoutIssuePermission
(ApplicationUser user)
Return true
if the passed user is an admin that does not have access to projects and issues.
Returns
true
if the passed user is an admin who does not have access to any projects or issues.
@EventListener
public
void
removeDismissalOnLogin
(LoginEvent loginEvent)
At each login we check if the user is an admin. If they have access to an application we clear the dismissal
flag so that the flag will display again if that admin loses application access. We don't want the dismissal
to be permanent.
Parameters
loginEvent
| the user that just logged in.
|