Interface SpecialUserService
-
public interface SpecialUserService
Collection of methods for identifying whether a givenString
corresponds to theUniversalId
orDn
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isSpecialUserDn(String dn)
Returnstrue
if distinguished user name is a special user DN.boolean
isSuperOrDsameUserUniversalIdOrDn(String uuid)
Returns true if the user is superuserboolean
isSuperUserOrSpecialUserDn(String dn)
Returnstrue
if distinguished user name is a super administrator DN.boolean
isSuperUserUniversalId(String dn)
Returnstrue
if and only if the user name belongs to a super user
-
-
-
Method Detail
-
isSuperOrDsameUserUniversalIdOrDn
boolean isSuperOrDsameUserUniversalIdOrDn(String uuid)
Returns true if the user is superuser- Parameters:
uuid
- the uuid of the login user
-
isSuperUserOrSpecialUserDn
boolean isSuperUserOrSpecialUserDn(String dn)
Returnstrue
if distinguished user name is a super administrator DN.- Parameters:
dn
- Distinguished name of user.- Returns:
true
if user is super administrator.
-
isSuperUserUniversalId
boolean isSuperUserUniversalId(String dn)
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
boolean isSpecialUserDn(String dn)
Returnstrue
if distinguished user name is a special user DN.- Parameters:
dn
- Distinguished name of user.- Returns:
true
if user is a special user.
-
-