AppConfiguration.js revision 95f6a8dff82d34449590f9a50ccc70df924d5a8f
395N/A/**
2362N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
395N/A *
395N/A * Copyright (c) 2011-2013 ForgeRock AS. All rights reserved.
395N/A *
395N/A * The contents of this file are subject to the terms
395N/A * of the Common Development and Distribution License
395N/A * (the License). You may not use this file except in
395N/A * compliance with the License.
395N/A *
395N/A * You can obtain a copy of the License at
395N/A * http://forgerock.org/license/CDDLv1.0.html
395N/A * See the License for the specific language governing
395N/A * permission and limitations under the License.
395N/A *
395N/A * When distributing Covered Code, include this CDDL
395N/A * Header Notice in each file and include the License file
395N/A * at http://forgerock.org/license/CDDLv1.0.html
2362N/A * If applicable, add the following below the CDDL Header,
2362N/A * with the fields enclosed by brackets [] replaced by
2362N/A * your own identifying information:
395N/A * "Portions Copyrighted [year] [name of copyright owner]"
395N/A */
395N/A
395N/A/*global define*/
395N/A
395N/A/**
395N/A * @author yaromin
395N/A */
395N/Adefine("config/AppConfiguration", [
395N/A "org/forgerock/commons/ui/common/util/Constants",
395N/A "org/forgerock/commons/ui/common/main/EventManager"
395N/A], function(constants, eventManager) {
395N/A var obj = {
395N/A moduleDefinition: [
395N/A {
395N/A moduleClass: "org/forgerock/commons/ui/common/main/SessionManager",
395N/A configuration: {
395N/A loginHelperClass: "org/forgerock/openidm/ui/common/login/InternalLoginHelper"
395N/A }
395N/A },
395N/A {
395N/A moduleClass: "org/forgerock/commons/ui/common/main/GenericRouteInterfaceMap",
395N/A configuration: {
395N/A LoginView : "org/forgerock/openidm/ui/user/LoginView",
395N/A UserProfileView : "org/forgerock/openidm/ui/user/profile/UserProfileView",
395N/A LoginDialog : "org/forgerock/commons/ui/common/LoginDialog",
395N/A RegisterView : "org/forgerock/openidm/ui/user/UserRegistrationView",
395N/A ChangeSecurityDataDialog : "org/forgerock/openidm/ui/user/profile/ChangeSecurityDataDialog"
395N/A }
395N/A },
395N/A {
395N/A moduleClass: "org/forgerock/commons/ui/common/SiteConfigurator",
395N/A configuration: {
395N/A remoteConfig: true,
395N/A delegate: "org/forgerock/openidm/ui/user/delegates/SiteConfigurationDelegate"
395N/A }
395N/A },
395N/A {
395N/A moduleClass: "org/forgerock/commons/ui/common/main/ProcessConfiguration",
395N/A configuration: {
395N/A processConfigurationFiles: [
395N/A "config/process/IDMConfig",
395N/A "config/process/CommonIDMConfig",
395N/A "config/process/UserConfig",
395N/A "config/process/CommonConfig"
395N/A ]
395N/A }
395N/A },
395N/A {
395N/A moduleClass: "org/forgerock/commons/ui/common/main/Router",
395N/A configuration: {
395N/A routes: {
395N/A },
395N/A loader: [
395N/A {"routes":"config/routes/CommonRoutesConfig"},
395N/A {"routes":"config/routes/CommonIDMRoutesConfig"},
395N/A {"routes":"config/routes/AdminRoutesConfig"},
395N/A {"routes":"config/routes/UserRoutesConfig"},
395N/A {"routes":"config/routes/IDMRoutesConfig"}
395N/A ]
395N/A }
395N/A },
395N/A {
395N/A moduleClass: "org/forgerock/commons/ui/common/main/ServiceInvoker",
395N/A configuration: {
395N/A defaultHeaders: {
395N/A }
395N/A }
395N/A },
395N/A {
395N/A moduleClass: "org/forgerock/commons/ui/common/main/ErrorsHandler",
395N/A configuration: {
395N/A defaultHandlers: {
395N/A },
395N/A loader: [
395N/A {"defaultHandlers":"config/errorhandlers/CommonErrorHandlers"}
395N/A ]
395N/A }
395N/A },
395N/A {
395N/A moduleClass: "org/forgerock/commons/ui/common/components/Navigation",
395N/A configuration: {
395N/A links: {
395N/A "admin" : {
"role": "ui-admin",
"urls": {
"dashboard": {
"url": "#dashboard/",
"name": "config.AppConfiguration.Navigation.links.dashboard",
"icon": "fa fa-dashboard",
"inactive": false
},
"users": {
"url": "#users/",
"name": "config.AppConfiguration.Navigation.links.users",
"icon": "fa fa-user",
"inactive": false
}
}
},
"user" : {
"urls": {
"dashboard": {
"url": "#dashboard/",
"name": "config.AppConfiguration.Navigation.links.dashboard",
"icon": "fa fa-dashboard",
"inactive": false
}
}
}
}
}
},
{
moduleClass: "org/forgerock/openidm/ui/admin/workflow/FormManager",
configuration: {
forms: { // Workflow User Task to View mapping
"org.forgerock.applicationAcceptance": "org/forgerock/openidm/ui/admin/workflow/tasks/customview/ApplicationAcceptanceTask",
"org.forgerock.sendNotificationInit": "org/forgerock/openidm/ui/admin/workflow/processes/customview/SendNotificationProcess"
}
}
},
{
moduleClass: "org/forgerock/commons/ui/common/util/UIUtils",
configuration: {
templateUrls: [ //preloaded templates
//"templates/apps/application.html",
"templates/admin/workflow/tasks/ProcessUserTaskTableTemplate.html",
"templates/admin/workflow/tasks/ShowUserProfile.html"
]
}
},
{
moduleClass: "org/forgerock/commons/ui/common/components/Messages",
configuration: {
messages: {
},
loader: [
{"messages":"config/messages/CommonMessages"},
{"messages":"config/messages/AdminMessages"},
{"messages":"config/messages/UserMessages"}
]
}
},
{
moduleClass: "org/forgerock/commons/ui/common/main/ValidatorsManager",
configuration: {
policyDelegate: "org/forgerock/openidm/ui/common/delegates/PolicyDelegate",
validators: { },
loader: [
{"validators":"config/validators/AdminValidators"},
{"validators":"config/validators/UserValidators"},
{"validators":"config/validators/CommonValidators"}
]
}
}
],
loggerLevel: 'debug'
};
return obj;
});