AppConfiguration.js revision 948ced9532f64d27db66fe95df7d09f3dc8f2fab
0N/A/**
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
0N/A *
0N/A * Copyright 2011-2015 ForgeRock AS.
0N/A *
0N/A * The contents of this file are subject to the terms
0N/A * of the Common Development and Distribution License
0N/A * (the License). You may not use this file except in
0N/A * compliance with the License.
0N/A *
0N/A * You can obtain a copy of the License at
0N/A * http://forgerock.org/license/CDDLv1.0.html
0N/A * See the License for the specific language governing
0N/A * permission and limitations under the License.
0N/A *
0N/A * When distributing Covered Code, include this CDDL
0N/A * Header Notice in each file and include the License file
0N/A * at http://forgerock.org/license/CDDLv1.0.html
0N/A * If applicable, add the following below the CDDL Header,
0N/A * with the fields enclosed by brackets [] replaced by
0N/A * your own identifying information:
0N/A * "Portions Copyrighted [year] [name of copyright owner]"
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) {
0N/A var obj = {
0N/A moduleDefinition: [
0N/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" },
0N/A { "routes": "config/routes/admin/AdminRoutes" },
0N/A { "routes": "config/routes/admin/RealmsRoutes" },
0N/A { "routes": "config/routes/user/UMARoutes" }
0N/A ]
0N/A }
0N/A },
0N/A {
0N/A moduleClass: "org/forgerock/commons/ui/common/SiteConfigurator",
0N/A configuration: {
0N/A selfRegistration: false,
0N/A enterprise: false,
0N/A remoteConfig: true,
0N/A delegate: "org/forgerock/openam/ui/common/delegates/SiteConfigurationDelegate"
0N/A }
0N/A },
0N/A {
0N/A moduleClass: "org/forgerock/commons/ui/common/main/ProcessConfiguration",
0N/A configuration: {
0N/A processConfigurationFiles: [
0N/A "config/process/AMConfig",
0N/A "config/process/UserConfig",
0N/A "config/process/CommonConfig"
0N/A ]
0N/A }
0N/A },
0N/A {
0N/A moduleClass: "org/forgerock/commons/ui/common/main/ServiceInvoker",
0N/A configuration: {
0N/A defaultHeaders: {
0N/A }
0N/A }
0N/A },
0N/A {
0N/A moduleClass: "org/forgerock/commons/ui/common/main/ErrorsHandler",
0N/A configuration: {
0N/A defaultHandlers: {
0N/A },
0N/A loader: [
0N/A { "defaultHandlers": "config/errorhandlers/CommonErrorHandlers" }
0N/A ]
0N/A }
0N/A },
0N/A {
0N/A moduleClass: "org/forgerock/commons/ui/common/util/UIUtils",
0N/A configuration: {
0N/A templateUrls: [
0N/A "templates/admin/views/realms/policies/common/StripedListItemTemplate.html",
0N/A "templates/admin/views/realms/policies/applications/ApplicationsToolbarTemplate.html",
0N/A "templates/admin/views/realms/policies/resourceTypes/ResourceTypesToolbarTemplate.html",
0N/A "templates/admin/views/realms/scripts/ScriptsToolbarTemplate.html",
0N/A "templates/admin/views/realms/scripts/ScriptValidationTemplate.html",
0N/A "templates/admin/views/realms/scripts/ChangeContextTemplate.html",
0N/A "templates/uma/backgrid/cell/RevokeCell.html",
0N/A "templates/uma/backgrid/cell/SelectizeCell.html",
0N/A "templates/user/ConfirmPasswordDialogTemplate.html"
0N/A ]
0N/A }
0N/A },
0N/A {
0N/A moduleClass: "org/forgerock/commons/ui/common/components/Messages",
0N/A configuration: {
0N/A messages: {
0N/A },
0N/A loader: [
0N/A { "messages": "config/messages/CommonMessages" },
0N/A { "messages": "config/messages/UserMessages" },
0N/A { "messages": "config/AppMessages" }
0N/A ]
0N/A }
0N/A },
0N/A {
0N/A moduleClass: "org/forgerock/commons/ui/common/main/ValidatorsManager",
0N/A configuration: {
0N/A policyDelegate: "org/forgerock/openam/ui/common/delegates/PolicyDelegate",
0N/A validators: { },
0N/A loader: [
0N/A {"validators": "config/validators/UserValidators"},
0N/A {"validators": "config/validators/CommonValidators"}
0N/A ]
0N/A }
0N/A },
0N/A {
0N/A moduleClass: "org/forgerock/commons/ui/common/components/Navigation",
0N/A configuration: {
0N/A userBar: [
0N/A {
0N/A "id": "profileLink",
0N/A "href": "#profile/",
0N/A "i18nKey": "common.user.profile"
0N/A }, {
0N/A "id": "changePasswordLink",
0N/A "event" : Constants.EVENT_SHOW_CHANGE_SECURITY_DIALOG,
0N/A "i18nKey": "common.user.changePassword"
0N/A }, {
0N/A "id": "logoutLink",
0N/A "href": "#logout/",
0N/A "i18nKey": "common.form.logout"
0N/A }
],
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": {
"url": "#uma/resources/",
"icon": "fa fa-user",
"name": "config.AppConfiguration.Navigation.links.uma",
"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;
});