Package org.mycore.user2
Class MCRRealmFactory
java.lang.Object
org.mycore.user2.MCRRealmFactory
Handles
MCRRealm
instantiation.
Will create a file ${MCR.datadir}/realms.xml
if that file does not exist.
You can redefine the location if you define a URI in MCR.users2.Realms.URI
.
This class monitors the source file for changes and adapts at runtime.- Author:
- Thomas Scheffler (yagee)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic MCRUserAttributeMapper
static MCRRealm
Returns the local default realm, as specified by the attribute 'local' in realms.xmlstatic MCRRealm
Returns the realm with the given ID.static Document
Returns the Realms JDOM document clone.Returns a list of all defined realms.
-
Constructor Details
-
MCRRealmFactory
public MCRRealmFactory()
-
-
Method Details
-
getRealm
Returns the realm with the given ID.- Parameters:
id
- the ID of the realm- Returns:
- the realm with that ID, or null
-
getAttributeMapper
-
listRealms
Returns a list of all defined realms.- Returns:
- a list of all realms.
-
getRealmsDocument
Returns the Realms JDOM document clone. -
getLocalRealm
Returns the local default realm, as specified by the attribute 'local' in realms.xml- Returns:
- the local default realm.
-