Package org.mycore.ocfl.user
Class MCROCFLXMLUserManager
java.lang.Object
org.mycore.ocfl.user.MCROCFLXMLUserManager
XML Manager to handle MCRUsers in a MyCoRe OCFL Repository
- Author:
- Tobias Lenhardt [Hammer1279]
-
Field Summary
-
Constructor Summary
ConstructorDescriptionInitializes the UserManager with the in the config defined repository.MCROCFLXMLUserManager
(String repositoryKey) Initializes the UserManager with the given repositoryKey. -
Method Summary
Modifier and TypeMethodDescriptionvoid
createUser
(MCRUser user) void
deleteUser
(String userId) void
deleteUser
(MCRUser user) retrieveContent
(String userId, String revision) Retrieve a MCRUser from the ocfl store.void
updateUser
(MCRUser user)
-
Field Details
-
MESSAGE_CREATED
- See Also:
-
MESSAGE_UPDATED
- See Also:
-
MESSAGE_DELETED
- See Also:
-
-
Constructor Details
-
MCROCFLXMLUserManager
public MCROCFLXMLUserManager()Initializes the UserManager with the in the config defined repository. -
MCROCFLXMLUserManager
Initializes the UserManager with the given repositoryKey.- Parameters:
repositoryKey
- the ID for the repository to be used
-
-
Method Details
-
updateUser
-
createUser
-
deleteUser
-
deleteUser
-
retrieveContent
Retrieve a MCRUser from the ocfl store.- Parameters:
userId
- the userId of the requested userrevision
- the version in ocfl store ornull
for latest- Returns:
- the requested MCRUser
- Throws:
IOException
- if a error occurs during retrieval
-