Package org.mycore.common
Interface MCRUserInformation
- All Known Implementing Classes:
MCRContainerLoginServlet.ContainerUserInformation
,MCRShibbolethUserInformation
,MCRSystemUserInformation
,MCRTransientUser
,MCRUser
public interface MCRUserInformation
Encapsulates informations about the current authenticated user.
A instance of this interface is always bound to
MCRSession
and can be requested via MCRSession.getUserInformation()
.
An implementer of this interface should bind the instance to the session via
MCRSession.setUserInformation(MCRUserInformation)
.- Author:
- Thomas Scheffler (yagee)
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetUserAttribute
(String attribute) Get additional attributes if they are provided by the underlying user systemThe UserID is the information that is used in user clauses of the ACL System.boolean
isUserInRole
(String role) The role information is used in group clauses of the ACL System.
-
Field Details
-
ATT_PRIMARY_GROUP
- See Also:
-
ATT_REAL_NAME
- See Also:
-
ATT_EMAIL
- See Also:
-
-
Method Details
-
getUserID
String getUserID()The UserID is the information that is used in user clauses of the ACL System. -
isUserInRole
The role information is used in group clauses of the ACL System. -
getUserAttribute
Get additional attributes if they are provided by the underlying user system- Parameters:
attribute
- user attribute name- Returns:
- attribute value as String or null if no value is defined;
-