Skip to content
Snippets Groups Projects
Commit 8f5e2231 authored by Sebastian Listl's avatar Sebastian Listl :speech_balloon:
Browse files

ActiveDirectory import refactoring

parent d6dfcd45
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
...@@ -13,7 +13,8 @@ import("ActiveDirectoryXml_lib"); ...@@ -13,7 +13,8 @@ import("ActiveDirectoryXml_lib");
//TODO: add comments to methods //TODO: add comments to methods
var ColumnMetadataProvider = (function () { var ColumnMetadataProvider = (function ()
{
var metadataInstance = {}; var metadataInstance = {};
function _init(pTable) { function _init(pTable) {
......
...@@ -11,7 +11,8 @@ import("Util_lib"); ...@@ -11,7 +11,8 @@ import("Util_lib");
import("Sql_lib"); import("Sql_lib");
import("KeywordRegistry_basic"); import("KeywordRegistry_basic");
if(!project.getPreferenceValue("custom.AD.active", false)){ if (!project.getPreferenceValue("custom.AD.active", false))
{
throw new Error ("ActiveDirectory import is not activated, please check the project Preferences") throw new Error ("ActiveDirectory import is not activated, please check the project Preferences")
} }
...@@ -40,7 +41,8 @@ var roleMapping = { ...@@ -40,7 +41,8 @@ var roleMapping = {
"GroupName8" : "PROJECT_Workflow" "GroupName8" : "PROJECT_Workflow"
}; };
(function (){//keep everything in an encapsulated scope (function () //keep everything in an encapsulated scope
{
var companyContactID = "b219b58a-f120-42d8-9a64-0b176501eac7"; // ToDo adapt to project var companyContactID = "b219b58a-f120-42d8-9a64-0b176501eac7"; // ToDo adapt to project
var companyData = _getCompanyData(companyContactID); var companyData = _getCompanyData(companyContactID);
...@@ -327,7 +329,8 @@ function _getCompanyData(pCompanyContactID) ...@@ -327,7 +329,8 @@ function _getCompanyData(pCompanyContactID)
* *
* @returns {Object} comm Typs * @returns {Object} comm Typs
*/ */
function _getCustomeComTyps(){ function _getCustomeComTyps()
{
return { return {
commTypes: { commTypes: {
"$virtual.PHONE": { "$virtual.PHONE": {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment