UserDelegate.js revision ae79bf818de74e667aa5484483357212e418a68c
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
var obj = {};
$.ajax({
type: "POST",
beforeSend: function(xhr) {
},
});
};
obj.logoutUser = function() {
$.ajax({
type: "POST",
beforeSend: function(xhr) {
}
});
};
$.ajax({
dataType: 'json',
});
};
$.ajax({
type: "PUT",
dataType: "json",
contentType: 'application/json; charset=utf-8',
beforeSend: function(xhr) {
},
});
};
$.ajax({
type: "POST",
dataType: "json",
contentType: 'application/json; charset=utf-8',
});
}
obj.updateUser = function(oldUserData, newUserData, successCallback, errorCallback, noChangesCallback) {
this.noChangesCallback();
return;
}
$.ajax({
type: "POST",
url: util.constants.host + "/openidm/managed/user/?_action=patch&_query-id=for-username&uid=" + oldUserData.email,
dataType: "json",
contentType: 'application/json; charset=utf-8',
});
}
var result = new Array();
var fieldContents;
if ( typeof (fieldContents) != "function") {
}
}
}
return result;
}
var oneChangeTemplete = '{"replace":"/field","value":"newValue"}';
var dataString="[";
if(i>0){
dataString+=','
}
diff = differences[i];
}
dataString+="]";
return dataString;
},
$.ajax({
url: "js/app/tmp/secquestions.json",
dataType: 'json',
});
};
return obj;
});