AppConfiguration.js revision 923784d59ac065eee98b208dfacda6fbc24c71d6
0N/A/**
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
0N/A *
0N/A * Copyright (c) 2011-2012 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/A/**
0N/A * @author yaromin
0N/A */
0N/Adefine("config/AppConfiguration", [
0N/A "org/forgerock/commons/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/commons/ui/user/login/InternalLoginHelper"
0N/A }
0N/A },
0N/A {
0N/A moduleClass: "org/forgerock/commons/ui/user/SiteConfigurator",
0N/A configuration: {
0N/A remoteConfig: true
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/AdminConfig",
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/AdminRoutesConfig"},
0N/A {"routes":"config/routes/UserRoutesConfig"}
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 links: {
0N/A "openidm-admin" : {
0N/A "role": "openidm-admin",
0N/A "urls": {
0N/A "dashboard": {
0N/A "url": "#/",
0N/A "name": "config.AppConfiguration.Navigation.links.dashboard"
0N/A },
0N/A "users": {
0N/A "url": "#users/",
0N/A "name": "config.AppConfiguration.Navigation.links.users"
0N/A }
0N/A }
0N/A },
0N/A "user" : {
0N/A "urls": {
0N/A "dashboard": {
0N/A "url": "#/",
0N/A "name": "config.AppConfiguration.Navigation.links.dashboard"
0N/A }
0N/A }
0N/A }
0N/A }
0N/A }
0N/A },
0N/A {
0N/A moduleClass: "org/forgerock/openidm/ui/admin/workflow/FormManager",
0N/A configuration: {
0N/A forms: { // Workflow User Task to View mapping
0N/A "org.forgerock.applicationAcceptance": "org/forgerock/openidm/ui/admin/workflow/tasks/customview/ApplicationAcceptanceTask",
0N/A "org.forgerock.sendNotificationInit": "org/forgerock/openidm/ui/admin/workflow/processes/customview/SendNotificationProcess"
0N/A }
0N/A }
0N/A },
0N/A {
0N/A moduleClass: "org/forgerock/commons/ui/common/util/UIUtils",
0N/A configuration: {
0N/A templateUrls: [ //preloaded templates
0N/A //"templates/apps/application.html",
0N/A "templates/admin/workflow/tasks/ProcessUserTaskTableTemplate.html",
0N/A "templates/admin/workflow/tasks/ShowUserProfile.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/AdminMessages"},
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 validators: {
0N/A },
0N/A loader: [
0N/A {"validators":"config/validators/AdminValidators"},
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 return obj;
0N/A});
0N/A