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 TypeMethodDescriptionbooleanReturnstrueif distinguished user name is a special user DN.booleanReturns true if the user is superuserbooleanReturnstrueif distinguished user name is a super administrator DN.booleanReturnstrueif 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
Returnstrueif distinguished user name is a super administrator DN.- Parameters:
dn- Distinguished name of user.- Returns:
trueif user is super administrator.
-
isSuperUserUniversalId
Returnstrueif and only if the user name belongs to a super user- Parameters:
dn- DN of the user- Returns:
trueif the user is an admin user.
-
isSpecialUserDn
Returnstrueif distinguished user name is a special user DN.- Parameters:
dn- Distinguished name of user.- Returns:
trueif user is a special user.
-