Realm Configuration
- Name of the realm
- Custom implementation of the realm
- Access policy manager
- Access identity manager
- Custom web authenticator (optional)
- Default Data/Content repository
- Resource configurations repository
- Default language of realm (optional)
- Languages supported by this realm (optional)
- Language handler (optional)
- Translation manager (optional)
- Additional Yarep based repositories (optional)
- I18n configuration of this realm (optional)
- Custom menu implementation (optional)
- Custom repository navigation implemenation (optional)
The realm configuration for each realm is done in the file realm.xml in its root directory. For an example, see src/realms/from-scratch-realm-template/realm.xml.
Name of the Realm
The name of the realm is configured as follows:
<name>The name of my realm</name>
Custom Implementation of the Realm
The implementation of the realm can be configured as follows:
<realm-config class="org.wyona.yanel.impl.map.FOAFRealm" xmlns="http://www.wyona.org/yanel/realm/1.0">...</realm-config>
whereas if the class attribute is not set, then the default implementation will be used.
Resource Configurations Repository
The resource configurations repository is configured as follows:
<rti>config/rti-repository.xml</rti>
Additional Yarep based repositories
Additional Yarep repositories can be configured as follows
<yarep-repositories>
<repository id="my-extra-repo" config="config/my-extra-repository.xml"/>
</yarep-repositories>
I18n configuration
The i18n catalogue can be configured as follows
<i18n-catalogue>yanelrepo:/my-i18n-catalogue.xml</i18n-catalogue>
More information on i18n can be found within the i18n documentation.
Custom repository navigation
The custom repository navigation can be configured as follows
<repo-navigation class="foo.bar.yanel.impl.navigation.CustomSitetreeImpl">"Custom Configuration"</repo-navigation>
whereas Yanel is offering various implementations within the package org.wyona.yanel.impl.navigation.
The default implementation is org.wyona.yanel.impl.navigation.SitetreeResConfigAndDataRepoImpl, whereas this is configured within spring-yanel-config.xml (Yanel source: conf/spring-yanel-config.xml, Yanel webapp binary: WEB-INF/classes/spring-yanel-config.xml).
The XML file implementation org.wyona.yanel.impl.navigation.SitetreeDOMImpl requires a source element:
<repo-navigation class="org.wyona.yanel.impl.navigation.SitetreeDOMImpl"> <src>data-repo/data/sitetree.xml</src> <!-- <src>yanelrepo:/sitetree.xml</src> --> </repo-navigation>
Your comments are much appreciated
Is the content of this page unclear or you think it could be improved? Please add a comment and we will try to improve it accordingly.