AppConfiguration.js revision fb27c098f332a202cf0d952b5d6b14753f72d1fe
0N/A/**
553N/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
553N/A * If applicable, add the following below the CDDL Header,
553N/A * with the fields enclosed by brackets [] replaced by
553N/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 */
288N/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/openidm/ui/user/login/InternalLoginHelper"
0N/A }
0N/A },
0N/A {
0N/A moduleClass: "org/forgerock/commons/ui/common/main/GenericRouteInterfaceMap",
0N/A configuration: {
0N/A LoginView : "org/forgerock/openidm/ui/user/LoginView",
0N/A UserProfileView : "org/forgerock/openidm/ui/user/profile/UserProfileView",
0N/A LoginDialog : "org/forgerock/commons/ui/common/LoginDialog",
RegisterView : "org/forgerock/openidm/ui/user/UserRegistrationView",
ChangeSecurityDataDialog : "org/forgerock/openidm/ui/user/profile/ChangeSecurityDataDialog"
}
},
{
moduleClass: "org/forgerock/commons/ui/common/SiteConfigurator",
configuration: {
remoteConfig: true,
delegate: "org/forgerock/openidm/ui/common/delegates/SiteConfigurationDelegate"
}
},
{
moduleClass: "org/forgerock/commons/ui/common/main/ProcessConfiguration",
configuration: {
processConfigurationFiles: [
"config/process/IDMConfig",
"config/process/UserConfig",
"config/process/CommonConfig"
]
}
},
{
moduleClass: "org/forgerock/commons/ui/common/main/Router",
configuration: {
routes: {
},
loader: [
{"routes":"config/routes/CommonRoutesConfig"},
{"routes":"config/routes/AdminRoutesConfig"},
{"routes":"config/routes/UserRoutesConfig"},
{"routes":"config/routes/IDMRoutesConfig"}
]
}
},
{
moduleClass: "org/forgerock/commons/ui/common/main/ServiceInvoker",
configuration: {
defaultHeaders: {
}
}
},
{
moduleClass: "org/forgerock/commons/ui/common/main/ErrorsHandler",
configuration: {
defaultHandlers: {
},
loader: [
{"defaultHandlers":"config/errorhandlers/CommonErrorHandlers"}
]
}
},
{
moduleClass: "org/forgerock/commons/ui/common/components/Navigation",
configuration: {
links: {
"admin" : {
"role": "ui-admin",
"urls": {
"dashboard": {
"url": "#dashboard/",
"name": "config.AppConfiguration.Navigation.links.dashboard",
"icon": "glyph-icon-th-list",
"inactive": false
},
"users": {
"url": "#users/",
"name": "config.AppConfiguration.Navigation.links.users",
"icon": "glyph-icon-user",
"inactive": false
}
}
},
"user" : {
"urls": {
"dashboard": {
"url": "#dashboard/",
"name": "config.AppConfiguration.Navigation.links.dashboard",
"icon": "glyph-icon-th-list",
"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;
});