Package org.mycore.common
Class MCRSystemUserInformation
java.lang.Object
org.mycore.common.MCRSystemUserInformation
- All Implemented Interfaces:
MCRUserInformation
A
MCRUserInformation
implementation with no roles attached.- Author:
- Thomas Scheffler (yagee)
-
Field Summary
Fields inherited from interface org.mycore.common.MCRUserInformation
ATT_EMAIL, ATT_PRIMARY_GROUP, ATT_REAL_NAME
-
Method Summary
Modifier and TypeMethodDescriptionstatic MCRSystemUserInformation
static MCRSystemUserInformation
static MCRSystemUserInformation
static MCRSystemUserInformation
getUserAttribute
(String attribute) Get additional attributes if they are provided by the underlying user systemAlways returns "SYSTEM"boolean
isUserInRole
(String role) Always returns false
-
Method Details
-
getUserID
Always returns "SYSTEM"- Specified by:
getUserID
in interfaceMCRUserInformation
-
isUserInRole
Always returns false- Specified by:
isUserInRole
in interfaceMCRUserInformation
-
getSystemUserInstance
- Returns:
- the systemInstance
-
getUserAttribute
Description copied from interface:MCRUserInformation
Get additional attributes if they are provided by the underlying user system- Specified by:
getUserAttribute
in interfaceMCRUserInformation
- Parameters:
attribute
- user attribute name- Returns:
- attribute value as String or null if no value is defined;
-
getGuestInstance
- Returns:
- the guestInstance
-
getSuperUserInstance
- Returns:
- the superUserInstance
-
getJanitorInstance
- Returns:
- the janitor Instance
-