AdminRoutesConfig.js revision 450b61c67b9e44df8df53d6dc501d5263f098e97
/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2014 ForgeRock AS. All rights reserved.
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*/
/*global define*/
], function(commonRoutes) {
var obj = {
"resourcesView" : {
role: "ui-admin",
url: "resources/"
},
"editConnectorView" : {
role: "ui-admin",
pattern: "connectors/edit/?/?",
forceUpdate: true
},
"addConnectorView" : {
role: "ui-admin",
url: "connectors/add/",
forceUpdate: true
},
"editManagedView" : {
role: "ui-admin",
forceUpdate: true
},
"addManagedView" : {
role: "ui-admin",
forceUpdate: true
},
"authenticationView" : {
role: "ui-admin",
url: "authentication/",
forceUpdate: true
},
"settingsView" : {
role: "ui-admin",
url: "settings/",
forceUpdate: true
},
"addMappingView" : {
role: "ui-admin",
forceUpdate: true
},
"mappingListView" : {
role: "ui-admin",
url: "mapping/",
forceUpdate: true
},
"propertiesView" : {
role: "ui-admin",
url: /^properties\/([^\/]+)\/$/,
pattern: "properties/?/",
forceUpdate: true
},
"editMappingProperty" : {
base: "propertiesView",
role: "ui-admin",
pattern: "property/?/?",
forceUpdate: true
},
"addMappingProperty" : {
base: "propertiesView",
role: "ui-admin",
pattern: "property/?/_new",
forceUpdate: true
},
"syncView" : {
role: "ui-admin",
pattern: "sync/?/",
forceUpdate: true
},
"correlationView" : {
role: "ui-admin",
url: /^correlation\/(.+)\/$/,
pattern: "correlation/?/",
forceUpdate: true
},
"scheduleView" : {
role: "ui-admin",
pattern: "schedule/?/",
forceUpdate: true
},
"adminListSystemObjectView" : {
role: "ui-admin",
pattern: "resource/?/?/?/list/"
},
"adminEditSystemObjectView" : {
role: "ui-admin",
pattern: "resource/?/?/?/edit/?"
},
"adminNewSystemObjectView" : {
role: "ui-admin",
pattern: "resource/?/?/?/add/"
},
"adminListManagedObjectView" : {
role: "ui-admin",
pattern: "resource/?/?/list/"
},
"adminEditManagedObjectView" : {
role: "ui-admin",
pattern: "resource/?/?/edit/?"
},
"adminNewManagedObjectView" : {
role: "ui-admin",
pattern: "resource/?/?/add/"
},
"adminEditRoleEntitlementView" : {
role: "ui-admin",
pattern: "resource/?/?/edit/?/?"
}
};
return obj;
});