AppConfiguration.js revision f21b0d429b01a5e8c8d26cc419d8a2cfff8bf2a3
0N/A/**
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
0N/A *
0N/A * Copyright (c) 2011-2013 ForgeRock AS. All rights reserved.
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/A
0N/Adefine("config/AppConfiguration", [
0N/A "org/forgerock/openidm/ui/common/util/Constants",
0N/A "org/forgerock/commons/ui/common/main/EventManager"
0N/A], function(constants, eventManager) {
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/openidm/ui/common/login/InternalLoginHelper"
0N/A }
0N/A },
0N/A {
0N/A moduleClass: "org/forgerock/commons/ui/common/SiteConfigurator",
0N/A configuration: {
0N/A remoteConfig: true,
0N/A delegate: "org/forgerock/openidm/ui/util/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/IDMConfig",
0N/A "config/process/CommonIDMConfig",
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/Router",
0N/A configuration: {
0N/A routes: {
0N/A },
0N/A loader: [
0N/A {"routes":"config/routes/CommonRoutesConfig"},
0N/A {"routes":"config/routes/CommonIDMRoutesConfig"},
0N/A {"routes":"config/routes/SelfServiceRoutesConfig"},
0N/A {"routes":"config/routes/UserRoutesConfig"},
0N/A {"routes":"config/routes/IDMRoutesConfig"}
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/components/Navigation",
0N/A configuration: {
0N/A username: {
0N/A "isLink": true,
0N/A "href" : "#profile/",
0N/A "secondaryLabel" : "config.AppConfiguration.Navigation.links.viewProfile"
0N/A },
0N/A userBar: [
0N/A {
0N/A "id": "security_link",
0N/A "event" : constants.EVENT_SHOW_CHANGE_SECURITY_DIALOG,
0N/A "i18nKey": "common.user.changePassword"
0N/A },
0N/A {
0N/A "id": "logout_link",
0N/A "href": "#logout/",
0N/A "i18nKey": "common.form.logout"
0N/A }
0N/A ],
0N/A links: {
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
0N/A },
0N/A "profile": {
0N/A "url": "#profile/",
0N/A "name": "common.user.profile",
0N/A "icon": "fa fa-user",
0N/A "inactive": false
0N/A }
0N/A }
0N/A }
0N/A }
0N/A }
0N/A },
0N/A {
0N/A moduleClass: "org/forgerock/openidm/ui/common/workflow/FormManager",
0N/A configuration: {
0N/A forms: { // Workflow User Task to View mapping
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 }
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/SelfServiceMessages"},
0N/A {"messages":"config/messages/UserMessages"}
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/openidm/ui/common/delegates/PolicyDelegate",
0N/A validators: { },
0N/A loader: [
0N/A {"validators":"config/validators/SelfServiceValidators"},
0N/A {"validators":"config/validators/UserValidators"},
0N/A {"validators":"config/validators/CommonValidators"}
0N/A ]
0N/A }
0N/A }
0N/A ],
0N/A loggerLevel: 'debug'
0N/A };
0N/A
0N/A return obj;
0N/A});
0N/A