AppConfiguration.js revision 2ad09b3da3faa4ca1d851b4482e59bf70abdec61
0N/A/**
1879N/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
1472N/A * If applicable, add the following below the CDDL Header,
1472N/A * with the fields enclosed by brackets [] replaced by
1472N/A * your own identifying information:
0N/A * "Portions Copyrighted [year] [name of copyright owner]"
0N/A */
0N/A
1879N/A/*global define*/
1879N/Adefine("config/AppConfiguration", [
1879N/A "org/forgerock/openam/ui/common/util/Constants"
1879N/A], function (Constants) {
1879N/A var obj = {
1879N/A moduleDefinition: [
1879N/A {
1879N/A moduleClass: "org/forgerock/commons/ui/common/main/SessionManager",
1879N/A configuration: {
1879N/A loginHelperClass: "org/forgerock/openam/ui/user/login/RESTLoginHelper"
1879N/A }
1879N/A },
0N/A {
2062N/A moduleClass: "org/forgerock/commons/ui/common/main/GenericRouteInterfaceMap",
2062N/A configuration: {
2062N/A LoginView : "org/forgerock/openam/ui/user/login/RESTLoginView",
2062N/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 {
605N/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" }
2062N/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 }
0N/A ],
0N/A links: {
0N/A "admin": {
0N/A "role": "ui-admin",
0N/A "urls": {
0N/A "realms": {
0N/A "url": "#realms",
0N/A "name": "config.AppConfiguration.Navigation.links.realms.title",
0N/A "icon": "fa fa-cloud",
0N/A "dropdown" : true,
0N/A                                        "urls": [{
0N/A                                            "url": "#realms",
0N/A "name": "config.AppConfiguration.Navigation.links.realms.showAll",
0N/A "icon": "fa fa-th"
0N/A }, {
0N/A "event": Constants.EVENT_ADD_NEW_REALM_DIALOG,
0N/A "name": "config.AppConfiguration.Navigation.links.realms.newRealm",
0N/A                                            "icon": "fa fa-plus"
0N/A }, {
0N/A divider: true
0N/A                                        }]
0N/A },
0N/A "federation": {
0N/A "url": "#federation",
0N/A "name": "config.AppConfiguration.Navigation.links.federation",
0N/A "icon": "fa fa-building-o"
0N/A },
0N/A "configuration": {
0N/A "url": "#configuration",
0N/A "name": "config.AppConfiguration.Navigation.links.configuration",
0N/A "icon": "fa fa-cog"
0N/A },
0N/A "sessions": {
0N/A "url": "#sessions",
0N/A "name": "config.AppConfiguration.Navigation.links.sessions",
0N/A "icon": "fa fa-users"
0N/A }
0N/A }
0N/A },
0N/A "user" : {
0N/A "urls": {
0N/A "dashboard": {
0N/A "url": "#dashboard/",
0N/A "name": "config.AppConfiguration.Navigation.links.dashboard",
0N/A "icon": "fa fa-dashboard",
0N/A "inactive": false
29N/A },
0N/A "uma": {
0N/A "url": "#uma/resources/",
0N/A "icon": "fa fa-user",
0N/A "name": "config.AppConfiguration.Navigation.links.uma",
0N/A "urls": {
0N/A "listResource": {
0N/A "url": "#uma/resources/",
0N/A "name": "config.AppConfiguration.Navigation.links.umaLinks.resources"
0N/A },
0N/A "listHistory": {
0N/A "url": "#uma/history/",
0N/A "name": "config.AppConfiguration.Navigation.links.umaLinks.history"
0N/A }/*,
0N/A "users": {
0N/A "url": "#uma/users/",
0N/A "name": "config.AppConfiguration.Navigation.links.umaLinks.users"
0N/A },
0N/A "listApplication": {
0N/A "url": "#uma/apps/",
0N/A "name": "config.AppConfiguration.Navigation.links.umaLinks.apps"
0N/A }*/
0N/A }
0N/A }
0N/A }
0N/A }
0N/A }
0N/A }
0N/A }
0N/A ],
0N/A loggerLevel: 'debug'
0N/A };
0N/A return obj;
0N/A});
0N/A