AppConfiguration.js revision ca36d3e848b115a888cf81d4827d023eefd9f4f6
0N/A/**
0N/A * The contents of this file are subject to the terms of the Common Development and
0N/A * Distribution License (the License). You may not use this file except in compliance with the
553N/A * License.
0N/A *
0N/A * You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
0N/A * specific language governing permission and limitations under the License.
0N/A *
0N/A * When distributing Covered Software, include this CDDL Header Notice in each file and include
0N/A * the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
0N/A * Header, with the fields enclosed by brackets [] replaced by your own identifying
0N/A * information: "Portions copyright [year] [name of copyright owner]".
0N/A *
0N/A * Portions copyright 2011-2015 ForgeRock AS.
0N/A */
0N/A
0N/A/*global define*/
0N/Adefine("config/AppConfiguration", [
0N/A "org/forgerock/openam/ui/common/util/Constants"
0N/A], function (Constants) {
553N/A var obj = {
553N/A moduleDefinition: [
553N/A {
0N/A moduleClass: "org/forgerock/commons/ui/common/main/SessionManager",
0N/A configuration: {
0N/A loginHelperClass: "org/forgerock/openam/ui/user/login/RESTLoginHelper"
0N/A }
0N/A },
0N/A {
0N/A moduleClass: "org/forgerock/commons/ui/common/main/GenericRouteInterfaceMap",
0N/A configuration: {
0N/A LoginView : "org/forgerock/openam/ui/user/login/RESTLoginView",
0N/A UserProfileView : "org/forgerock/commons/ui/user/profile/UserProfileView",
0N/A LoginDialog : "org/forgerock/openam/ui/user/login/RESTLoginDialog",
0N/A RegisterView : "org/forgerock/openam/ui/user/profile/RegisterView",
0N/A ChangeSecurityDataDialog : "org/forgerock/openam/ui/user/profile/ChangeSecurityDataDialog"
0N/A }
0N/A },
0N/A {
0N/A moduleClass: "org/forgerock/commons/ui/common/main/Router",
0N/A configuration: {
0N/A routes: { },
0N/A loader: [
0N/A { "routes": "config/routes/AMRoutesConfig" },
0N/A { "routes": "config/routes/CommonRoutesConfig" },
0N/A { "routes": "config/routes/UserRoutesConfig" },
{ "routes": "config/routes/admin/AdminRoutes" },
{ "routes": "config/routes/admin/RealmsRoutes" },
{ "routes": "config/routes/user/UMARoutes" }
]
}
},
{
moduleClass: "org/forgerock/commons/ui/common/SiteConfigurator",
configuration: {
selfRegistration: false,
enterprise: false,
remoteConfig: true,
delegate: "org/forgerock/openam/ui/common/delegates/SiteConfigurationDelegate"
}
},
{
moduleClass: "org/forgerock/commons/ui/common/main/ProcessConfiguration",
configuration: {
processConfigurationFiles: [
"config/process/AMConfig",
"config/process/UserConfig",
"config/process/CommonConfig"
]
}
},
{
moduleClass: "org/forgerock/commons/ui/common/main/ServiceInvoker",
configuration: {
defaultHeaders: {
}
}
},
{
moduleClass: "org/forgerock/commons/ui/common/main/ErrorsHandler",
configuration: {
defaultHandlers: {
},
loader: [
{ "defaultHandlers": "config/errorhandlers/CommonErrorHandlers" }
]
}
},
{
moduleClass: "org/forgerock/commons/ui/common/util/UIUtils",
configuration: {
templateUrls: [
],
partialUrls: [
"partials/form/_JSONSchemaFooter.html",
"partials/headers/_Title.html",
"partials/headers/_TitleWithSubAndIcon.html"
]
}
},
{
moduleClass: "org/forgerock/commons/ui/common/components/Messages",
configuration: {
messages: {
},
loader: [
{ "messages": "config/messages/CommonMessages" },
{ "messages": "config/messages/UserMessages" },
{ "messages": "config/AppMessages" }
]
}
},
{
moduleClass: "org/forgerock/commons/ui/common/main/ValidatorsManager",
configuration: {
policyDelegate: "org/forgerock/openam/ui/common/delegates/PolicyDelegate",
validators: { },
loader: [
{"validators": "config/validators/UserValidators"},
{"validators": "config/validators/CommonValidators"}
]
}
},
{
moduleClass: "org/forgerock/commons/ui/common/components/Navigation",
configuration: {
userBar: [
{
"id": "profileLink",
"href": "#profile/",
"i18nKey": "common.user.profile"
}, {
"id": "changePasswordLink",
"event" : Constants.EVENT_SHOW_CHANGE_SECURITY_DIALOG,
"i18nKey": "common.user.changePassword"
}, {
"id": "logoutLink",
"href": "#logout/",
"i18nKey": "common.form.logout"
}
],
links: {
"admin": {
"role": "ui-admin",
"urls": {
"realms": {
"url": "#realms",
"name": "config.AppConfiguration.Navigation.links.realms.title",
"icon": "fa fa-cloud",
"dropdown" : true,
"urls": [{
"url": "#realms",
"name": "config.AppConfiguration.Navigation.links.realms.showAll",
"icon": "fa fa-th"
}, {
"event": Constants.EVENT_ADD_NEW_REALM_DIALOG,
"name": "config.AppConfiguration.Navigation.links.realms.newRealm",
"icon": "fa fa-plus"
}, {
divider: true
}]
},
"federation": {
"url": "#federation",
"name": "config.AppConfiguration.Navigation.links.federation",
"icon": "fa fa-building-o"
},
"configuration": {
"url": "#configuration",
"name": "config.AppConfiguration.Navigation.links.configuration",
"icon": "fa fa-cog"
},
"sessions": {
"url": "#sessions",
"name": "config.AppConfiguration.Navigation.links.sessions",
"icon": "fa fa-users"
}
}
},
"user" : {
"urls": {
"dashboard": {
"url": "#dashboard/",
"name": "config.AppConfiguration.Navigation.links.dashboard",
"icon": "fa fa-dashboard",
"inactive": false
},
"uma": {
"icon": "fa fa-user",
"name": "config.AppConfiguration.Navigation.links.uma",
"dropdown" : true,
"urls": {
"listResource": {
"url": "#uma/resources/",
"name": "config.AppConfiguration.Navigation.links.umaLinks.resources"
},
"listHistory": {
"url": "#uma/history/",
"name": "config.AppConfiguration.Navigation.links.umaLinks.history"
},
"listRequests": {
"url": "#uma/requests/",
"name": "config.AppConfiguration.Navigation.links.umaLinks.requests"
}
}
}
}
}
}
}
}
],
loggerLevel: "debug"
};
return obj;
});