AppConfiguration.js revision 1889f15ae9583798fd7ce87822d9056ae072e963
0N/A/**
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
0N/A *
0N/A * Copyright (c) 2011-2014 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 */
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/openam/ui/user/login/RESTLoginHelper"
0N/A }
0N/A },
0N/A {
0N/A moduleClass: "org/forgerock/commons/ui/common/main/GenericRouteInterfaceMap",
0N/A configuration: {
0N/A LoginView : "org/forgerock/openam/ui/user/login/RESTLoginView",
0N/A UserProfileView : "org/forgerock/commons/ui/user/profile/UserProfileView",
0N/A LoginDialog : "org/forgerock/openam/ui/user/login/RESTLoginDialog",
RegisterView : "org/forgerock/openam/ui/user/profile/RegisterView",
ChangeSecurityDataDialog : "org/forgerock/openam/ui/user/profile/ChangeSecurityDataDialog",
ConfirmPasswordDialog : "org/forgerock/commons/ui/user/profile/ConfirmPasswordDialog"
}
},
{
moduleClass: "org/forgerock/commons/ui/common/main/Router",
configuration: {
routes: { },
loader: [
{"routes":"config/routes/AMRoutesConfig"},
{"routes":"config/routes/CommonRoutesConfig"},
{"routes":"config/routes/UserRoutesConfig"}
]
}
},
{
moduleClass: "org/forgerock/commons/ui/common/SiteConfigurator",
configuration: {
selfRegistration: false,
enterprise: false,
remoteConfig: true,
delegate: "org/forgerock/openam/ui/common/delegates/SiteConfigurationDelegate"
}
},
{
moduleClass: "org/forgerock/commons/ui/common/main/ProcessConfiguration",
configuration: {
processConfigurationFiles: [
"config/process/UserConfig",
"config/process/CommonConfig"
]
}
},
{
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/util/UIUtils",
configuration: {
templateUrls: [
]
}
},
{
moduleClass: "org/forgerock/commons/ui/common/components/Messages",
configuration: {
messages: {
},
loader: [
{"messages":"config/messages/CommonMessages"},
{"messages":"config/messages/UserMessages"}
]
}
},
{
moduleClass: "org/forgerock/commons/ui/common/main/ValidatorsManager",
configuration: {
policyDelegate: "org/forgerock/openam/ui/common/delegates/PolicyDelegate",
validators: { },
loader: [
{"validators": "config/validators/UserValidators"},
{"validators": "config/validators/CommonValidators"}
]
}
},
{
moduleClass: "org/forgerock/commons/ui/common/components/Navigation",
configuration: {
links: {
"user" : {
"urls": {
"dashboard": {
"url": "#dashboard/",
"name": "config.AppConfiguration.Navigation.links.dashboard",
"icon": "glyph-icon-th-list",
"inactive": false
}/*,
"oauth2": {
"url": "#oauth2/tokens",
"name": "config.AppConfiguration.Navigation.links.oauthtokens"
}*/
}
}
}
}
}
],
loggerLevel: 'debug'
};
return obj;
});