Interface SpecialUserService
public interface SpecialUserService
Collection of methods for identifying whether a given
String
corresponds to the UniversalId
or
Dn
of the super or special users.
This is currently a means of pulling together disparate implementations from across AM, and may evolve more in the
future.
By default, the super user is amAdmin, and the special users are dsameuser and amService-UrlAccessAgent.-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returnstrue
if distinguished user name is a special user DN.boolean
Returns true if the user is superuserboolean
Returnstrue
if distinguished user name is a super administrator DN.boolean
Returnstrue
if and only if the user name belongs to a super user
-
Method Details
-
isSuperOrDsameUserUniversalIdOrDn
Returns true if the user is superuser- Parameters:
uuid
- the uuid of the login user
-
isSuperUserOrSpecialUserDn
Returnstrue
if distinguished user name is a super administrator DN.- Parameters:
dn
- Distinguished name of user.- Returns:
true
if user is super administrator.
-
isSuperUserUniversalId
Returnstrue
if and only if the user name belongs to a super user- Parameters:
dn
- DN of the user- Returns:
true
if the user is an admin user.
-
isSpecialUserDn
Returnstrue
if distinguished user name is a special user DN.- Parameters:
dn
- Distinguished name of user.- Returns:
true
if user is a special user.
-