Class EntraIdCredential.EntraIdUser
java.lang.Object
org.codelibs.fess.app.web.base.login.EntraIdCredential.EntraIdUser
- All Implemented Interfaces:
Serializable,FessUser
- Enclosing class:
EntraIdCredential
Entra ID user implementation providing user information and permissions.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEntraIdUser(com.microsoft.aad.msal4j.IAuthenticationResult authResult) Constructs an Entra ID user with the authentication result. -
Method Summary
Modifier and TypeMethodDescriptioncom.microsoft.aad.msal4j.IAuthenticationResultGets the Entra ID authentication result.String[]Gets the user's assigned group names.getName()Gets the user's display name.String[]Gets the user's permissions.String[]Gets the user's assigned role names.booleanrefresh()Refreshes the user's information from the underlying data source.voidResets permissions to force recalculation on next getPermissions() call.voidSets the user's group memberships.voidSets the user's role assignments.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.codelibs.fess.entity.FessUser
isEditable
-
Field Details
-
groups
User's group memberships. -
roles
User's role assignments. -
permissions
User's computed permissions. -
authResult
protected com.microsoft.aad.msal4j.IAuthenticationResult authResultEntra ID authentication result.
-
-
Constructor Details
-
EntraIdUser
public EntraIdUser(com.microsoft.aad.msal4j.IAuthenticationResult authResult) Constructs an Entra ID user with the authentication result.- Parameters:
authResult- The authentication result from Entra ID.
-
-
Method Details
-
getName
Description copied from interface:FessUserGets the user's display name. -
getRoleNames
Description copied from interface:FessUserGets the user's assigned role names.- Specified by:
getRoleNamesin interfaceFessUser- Returns:
- Array of role names.
-
getGroupNames
Description copied from interface:FessUserGets the user's assigned group names.- Specified by:
getGroupNamesin interfaceFessUser- Returns:
- Array of group names.
-
getPermissions
Description copied from interface:FessUserGets the user's permissions.- Specified by:
getPermissionsin interfaceFessUser- Returns:
- Array of permission strings.
-
refresh
public boolean refresh()Description copied from interface:FessUserRefreshes the user's information from the underlying data source. -
getAuthenticationResult
public com.microsoft.aad.msal4j.IAuthenticationResult getAuthenticationResult()Gets the Entra ID authentication result.- Returns:
- The authentication result.
-
setGroups
Sets the user's group memberships.- Parameters:
groups- Array of group names.
-
setRoles
Sets the user's role assignments.- Parameters:
roles- Array of role names.
-
resetPermissions
public void resetPermissions()Resets permissions to force recalculation on next getPermissions() call. This is called after asynchronous parent group lookup completes.
-