AppConfiguration.js revision c50f1167d6240ba0a2130a67e188a3b8735ea001
5612N/A/**
5612N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
5653N/A *
5612N/A * Copyright (c) 2014 ForgeRock AS. All rights reserved.
5819N/A *
5612N/A * The contents of this file are subject to the terms
5612N/A * of the Common Development and Distribution License
5612N/A * (the License). You may not use this file except in
5612N/A * compliance with the License.
5819N/A *
5612N/A * You can obtain a copy of the License at
5612N/A * http://forgerock.org/license/CDDLv1.0.html
5612N/A * See the License for the specific language governing
5612N/A * permission and limitations under the License.
5612N/A *
5612N/A * When distributing Covered Code, include this CDDL
5612N/A * Header Notice in each file and include the License file
5612N/A * at http://forgerock.org/license/CDDLv1.0.html
5612N/A * If applicable, add the following below the CDDL Header,
5612N/A * with the fields enclosed by brackets [] replaced by
5612N/A * your own identifying information:
5612N/A * "Portions Copyrighted [year] [name of copyright owner]"
5612N/A */
5612N/A
5612N/A/*global define*/
5612N/A
5612N/Adefine("config/AppConfiguration", [
5612N/A "org/forgerock/commons/ui/common/util/Constants"
5612N/A], function(constants) {
5612N/A var obj = {
5612N/A moduleDefinition: [
5612N/A {
5612N/A moduleClass: "org/forgerock/commons/ui/common/main/SessionManager",
5612N/A configuration: {
5612N/A loginHelperClass: "org/forgerock/openidm/ui/common/login/InternalLoginHelper"
5612N/A }
5612N/A },
5612N/A {
5612N/A moduleClass: "org/forgerock/commons/ui/common/main/GenericRouteInterfaceMap",
5612N/A configuration: {
5612N/A LoginView : "org/forgerock/commons/ui/common/LoginView",
5612N/A LoginDialog : "org/forgerock/commons/ui/common/LoginDialog"
5612N/A }
5612N/A },
5612N/A {
5612N/A moduleClass: "org/forgerock/openidm/ui/admin/connector/ConnectorRegistry",
5612N/A configuration: {
5612N/A "org.identityconnectors.ldap.LdapConnector_1.1" : "org/forgerock/openidm/ui/admin/connector/ldap/LDAPTypeView",
5612N/A "org.forgerock.openicf.connectors.googleapps.GoogleAppsConnector_1.4" : "org/forgerock/openidm/ui/admin/connector/oauth/GoogleTypeView"
5612N/A }
5612N/A },
5612N/A {
5612N/A moduleClass: "org/forgerock/commons/ui/common/components/Messages",
5612N/A configuration: {
5612N/A messages: {
5612N/A },
5612N/A loader: [
5612N/A {"messages":"config/messages/CommonMessages"},
5612N/A {"messages":"config/messages/AdminMessages"}
5612N/A ]
5612N/A }
5612N/A },
5612N/A {
5612N/A moduleClass: "org/forgerock/commons/ui/common/SiteConfigurator",
5612N/A configuration: {
5612N/A remoteConfig: true,
5612N/A delegate: "org/forgerock/openidm/ui/common/delegates/SiteConfigurationDelegate"
5612N/A }
5612N/A },
5612N/A {
5612N/A moduleClass: "org/forgerock/commons/ui/common/main/ProcessConfiguration",
5612N/A configuration: {
5612N/A processConfigurationFiles: [
5612N/A "config/process/AdminConfig",
5612N/A "config/process/CommonConfig"
5612N/A ]
5612N/A }
5612N/A },
5612N/A {
5612N/A moduleClass: "org/forgerock/commons/ui/common/main/Router",
5612N/A configuration: {
5612N/A routes: {
5612N/A },
5612N/A loader: [
5612N/A {"routes":"config/routes/CommonRoutesConfig"},
5612N/A {"routes":"config/routes/AdminRoutesConfig"}
5612N/A ]
5612N/A }
5612N/A },
5819N/A {
5819N/A moduleClass: "org/forgerock/commons/ui/common/main/ServiceInvoker",
5819N/A configuration: {
5819N/A defaultHeaders: {
5819N/A }
5819N/A }
5819N/A },
5612N/A {
5612N/A moduleClass: "org/forgerock/commons/ui/common/main/ErrorsHandler",
5612N/A configuration: {
5612N/A defaultHandlers: {
5612N/A },
5612N/A loader: [
5612N/A {"defaultHandlers":"config/errorhandlers/CommonErrorHandlers"}
5612N/A ]
5612N/A }
5612N/A },
5612N/A {
5612N/A moduleClass: "org/forgerock/commons/ui/common/components/Navigation",
5612N/A configuration: {
5612N/A links: {
5612N/A "admin" : {
5612N/A "role": "ui-admin",
5612N/A "urls": {
5612N/A "connectors": {
5612N/A "url": "#resources/",
5612N/A "name": "config.AppConfiguration.Navigation.links.resources",
5612N/A "icon": "fa fa-cogs",
5612N/A "inactive": false
5612N/A },
5612N/A "mapping": {
5612N/A "url": "#mapping/",
5612N/A "name": "config.AppConfiguration.Navigation.links.mapping",
5612N/A "icon": "fa fa-map-marker",
5612N/A "inactive": false,
5612N/A "urls": {
5612N/A "properties": {
5612N/A "url": "#mapping/",
5612N/A "name": "templates.mapping.properties",
5612N/A "icon": "fa fa-list",
5612N/A "inactive": false
5612N/A },
5612N/A "correlation": {
5612N/A "url": "#correlation/",
5612N/A "name": "templates.correlation.correlation",
5612N/A "icon": "fa fa-random",
5612N/A "inactive": false
5612N/A },
5612N/A "sync": {
5612N/A "url": "#sync/",
5612N/A "name": "templates.sync.sync",
5612N/A "icon": "fa fa-clock-o",
5612N/A "inactive": false
5612N/A }
5612N/A }
5612N/A }
5612N/A }
5612N/A }
5612N/A }
5612N/A }
5612N/A },
5612N/A {
5612N/A moduleClass: "org/forgerock/commons/ui/common/util/UIUtils",
5819N/A configuration: {
5819N/A templateUrls: [ //preloaded templates
5819N/A ]
5819N/A }
5819N/A },
5819N/A
5612N/A {
5612N/A moduleClass: "org/forgerock/commons/ui/common/main/ValidatorsManager",
5612N/A configuration: {
5612N/A policyDelegate: "org/forgerock/openidm/ui/common/delegates/PolicyDelegate",
5612N/A validators: { },
5612N/A loader: [
5612N/A {"validators":"config/validators/CommonValidators"},
5612N/A {"validators":"config/validators/AdminValidators"}
5612N/A ]
5612N/A }
5612N/A }
5612N/A ],
5612N/A loggerLevel: 'debug'
5612N/A };
5612N/A
5612N/A return obj;
5612N/A});
5612N/A