Class MCROCFLXMLUserManager

java.lang.Object
org.mycore.ocfl.user.MCROCFLXMLUserManager

public class MCROCFLXMLUserManager extends Object
XML Manager to handle MCRUsers in a MyCoRe OCFL Repository
Author:
Tobias Lenhardt [Hammer1279]
  • Field Details

  • Constructor Details

    • MCROCFLXMLUserManager

      public MCROCFLXMLUserManager()
      Initializes the UserManager with the in the config defined repository.
    • MCROCFLXMLUserManager

      public MCROCFLXMLUserManager(String repositoryKey)
      Initializes the UserManager with the given repositoryKey.
      Parameters:
      repositoryKey - the ID for the repository to be used
  • Method Details

    • updateUser

      public void updateUser(MCRUser user)
    • createUser

      public void createUser(MCRUser user)
    • deleteUser

      public void deleteUser(MCRUser user)
    • deleteUser

      public void deleteUser(String userId)
    • retrieveContent

      public MCRUser retrieveContent(String userId, String revision) throws IOException
      Retrieve a MCRUser from the ocfl store.
      Parameters:
      userId - the userId of the requested user
      revision - the version in ocfl store or null for latest
      Returns:
      the requested MCRUser
      Throws:
      IOException - if a error occurs during retrieval