From d28770fbc806da5e9838d75cf31019c097ac19dc Mon Sep 17 00:00:00 2001 From: Johannes Hoermann <j.hoermann@adito.de> Date: Fri, 30 Nov 2018 16:51:21 +0100 Subject: [PATCH] refactor all libs --- process/IndexSearch_lib/process.js | 36 ++++++++++++++++++++++++------ 1 file changed, 29 insertions(+), 7 deletions(-) diff --git a/process/IndexSearch_lib/process.js b/process/IndexSearch_lib/process.js index da1f2bc16e..17652ebfbf 100644 --- a/process/IndexSearch_lib/process.js +++ b/process/IndexSearch_lib/process.js @@ -1,12 +1,23 @@ +import("system.neon"); +import("system.text"); + /** -* provides static methods for special handling of entities in JDito-Processes -* do not create an instance of this -* -* @class -*/ + * provides static methods for special handling of entities in JDito-Processes + * do not create an instance of this + * + * @class + */ function IndexsearchUtils() {} -//todo: comment +/** + * TODO: Comment everything! + * + * @param {} fieldname + * @param {} affectedInfoContainer + * @param {} updateFn + * + * @return {} + */ IndexsearchUtils.getAffectedIdValues = function(fieldname, affectedInfoContainer, updateFn) { var affectedIds; switch (affectedInfoContainer.action){ @@ -23,7 +34,18 @@ IndexsearchUtils.getAffectedIdValues = function(fieldname, affectedInfoContainer return affectedIds || []; } -//todo: comment +/** + * TODO: Comment everything! + * + * @param {} changedIdValue + * @param {} changedTable + * @param {} action + * @param {} columnsFn + * @param {} oldValueFn + * @param {} newValueFn + * + * @return {} + */ IndexsearchUtils.createAffectedInfoContainer = function(changedIdValue, changedTable, action, columnsFn, oldValueFn, newValueFn) { var res, internalStorage; internalStorage = {}; -- GitLab