Uses of Class
org.mycore.user2.MCRUser
Package
Description
new MyCoRe user system
Provides classes implementing login functionality
Provides classes not directly related to user and group management
-
Uses of MCRUser in org.mycore.mcr.acl.accesskey
Modifier and TypeMethodDescriptionstatic void
MCRAccessKeyUtils.addAccessKeySecret
(MCRUser user, MCRObjectID objectId, String value) Adds the value of aMCRAccessKey
as user attribute to aMCRUser
for aMCRObjectID
including derivates.static void
MCRAccessKeyUtils.addAccessKeySecretForObject
(MCRUser user, MCRObjectID objectId, String value) static void
MCRAccessKeyUtils.removeAccessKeySecret
(MCRUser user, MCRObjectID objectId) Deletes the access key value user attribute from givenMCRUser
forMCRObjectID
. -
Uses of MCRUser in org.mycore.ocfl.user
Modifier and TypeMethodDescriptionMCROCFLXMLUserManager.retrieveContent
(String userId, String revision) Retrieve a MCRUser from the ocfl store.Modifier and TypeMethodDescriptionvoid
MCROCFLXMLUserManager.createUser
(MCRUser user) void
MCROCFLXMLUserManager.deleteUser
(MCRUser user) void
MCROCFLXMLUserManager.updateUser
(MCRUser user) -
Uses of MCRUser in org.mycore.orcid.user
-
Uses of MCRUser in org.mycore.user2
Modifier and TypeFieldDescriptionstatic SetAttribute<MCRUser,
MCRUserAttribute> MCRUser_.attributes
static SingularAttribute<MCRUser,
Boolean> MCRUser_.disabled
static SingularAttribute<MCRUser,
String> MCRUser_.EMail
MCRUser_.hashType
static SingularAttribute<MCRUser,
String> MCRUser_.hint
static SingularAttribute<MCRUser,
Integer> MCRUser_.internalID
static SingularAttribute<MCRUser,
Date> MCRUser_.lastLogin
static SingularAttribute<MCRUser,
Boolean> MCRUser_.locked
static SingularAttribute<MCRUser,
MCRUser> MCRUser_.owner
static SingularAttribute<MCRUser,
MCRUser> MCRUser_.owner
static SingularAttribute<MCRUser,
String> MCRUser_.password
static SingularAttribute<MCRUser,
String> MCRUser_.realmID
static SingularAttribute<MCRUser,
String> MCRUser_.realName
static SingularAttribute<MCRUser,
String> MCRUser_.salt
static SingularAttribute<MCRUser,
String> MCRUser_.userName
static SingularAttribute<MCRUser,
Date> MCRUser_.validUntil
Modifier and TypeMethodDescriptionstatic MCRUser
MCRUserManager.checkPassword
(String userName, String password) Returns aMCRUser
instance if the login succeeds.MCRUser.clone()
MCRUser.getBasicCopy()
Returns this MCRUser with basic information.static MCRUser
MCRUserManager.getCurrentUser()
Returns instance of MCRUser if current user is present in this user systemMCRUser.getOwner()
Returns the user that owns this user, or null if the user is independent and has no owner.MCRUser.getSafeCopy()
Returns this MCRUser with safe information.static MCRUser
Returns the user with the given userName, in the default realmstatic MCRUser
Returns the user with the given userName, in the given realmstatic MCRUser
Returns the user with the given userName, in the given realmstatic MCRUser
Checks the password of a login user in the default realm.static MCRUser
Checks the password of a login user and if the user has at least one of the allowed roles in the default realm.Modifier and TypeMethodDescriptionReturns a Stream of users where the user has a given attribute.Deprecated.Searches for users in the database and returns a list of all matching users.MCRUserManager.listUsers
(String userPattern, String realm, String namePattern, String mailPattern, String attributeNamePattern, int offset, int limit) Searches for users in the database and returns a list of matching users.Returns a list of all users the given user is owner of.Modifier and TypeMethodDescriptionstatic void
MCRUserManager.createUser
(MCRUser user) Creates and stores a new login user in the database.static void
MCRUserManager.deleteUser
(MCRUser user) Deletes a user from the given databasestatic boolean
MCRUserManager.isInvalidUser
(MCRUser user) Checks whether the user is invalid.static void
Returns a list of all users the given user is owner of.void
Sets the user that owns this user.static void
MCRUserManager.setPassword
(MCRUser user, String password) Sets password of 'user' to 'password'.static void
MCRUserManager.updateUser
(MCRUser user) Updates an existing login user in the database. -
Uses of MCRUser in org.mycore.user2.login
-
Uses of MCRUser in org.mycore.user2.utils
Modifier and TypeMethodDescriptionstatic MCRUser
MCRUserTransformer.buildMCRUser
(Element element) Builds an MCRUser instance from the given element.Modifier and TypeMethodDescriptionstatic Document
MCRUserTransformer.buildBasicXML
(MCRUser mcrUser) Builds an xml element containing basic information on user.static Document
MCRUserTransformer.buildExportableSafeXML
(MCRUser mcrUser) Builds an xml element containing all information on the given user except password info.static Document
MCRUserTransformer.buildExportableXML
(MCRUser mcrUser) Builds an xml element containing all information on the given user.
MCRUserManager.listUsers(String, String, String, String)
instead.