Package org.mycore.user2.utils
Class MCRUserTransformer
java.lang.Object
org.mycore.user2.utils.MCRUserTransformer
- Author:
- Thomas Scheffler (yagee)
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Document
buildBasicXML
(MCRUser mcrUser) Builds an xml element containing basic information on user.static Document
buildExportableSafeXML
(MCRUser mcrUser) Builds an xml element containing all information on the given user except password info.static Document
buildExportableXML
(MCRUser mcrUser) Builds an xml element containing all information on the given user.static MCRUser
buildMCRUser
(Element element) Builds an MCRUser instance from the given element.
-
Field Details
-
JAXB_CONTEXT
public static final jakarta.xml.bind.JAXBContext JAXB_CONTEXT
-
-
Method Details
-
buildBasicXML
Builds an xml element containing basic information on user. This includes user ID, login name and realm. -
buildExportableSafeXML
Builds an xml element containing all information on the given user except password info. same asbuildExportableXML(MCRUser)
without owned users resolved -
buildExportableXML
Builds an xml element containing all information on the given user. same asbuildExportableSafeXML(MCRUser)
but with password info if available -
buildMCRUser
Builds an MCRUser instance from the given element.- Parameters:
element
- as generated bybuildExportableXML(MCRUser)
.
-