admin user management- add edit user information and delete user
This commit is contained in:
parent
1c35d25868
commit
4ae070f370
|
@ -64,6 +64,7 @@ public class FlowExecuteService {
|
||||||
StringBuilder messageBuilder = new StringBuilder();
|
StringBuilder messageBuilder = new StringBuilder();
|
||||||
|
|
||||||
Flow flow = (Flow) this.getFlowService().getFlow(flowId, userid);
|
Flow flow = (Flow) this.getFlowService().getFlow(flowId, userid);
|
||||||
|
|
||||||
if (flow == null) {
|
if (flow == null) {
|
||||||
messageBuilder.append("Flow " + flowId + " not found!");
|
messageBuilder.append("Flow " + flowId + " not found!");
|
||||||
result.setMessage(messageBuilder.toString());
|
result.setMessage(messageBuilder.toString());
|
||||||
|
|
|
@ -151,6 +151,8 @@ public class FlowHelper {
|
||||||
node.setFlow(null);
|
node.setFlow(null);
|
||||||
node.setId(nodeModel.getId());
|
node.setId(nodeModel.getId());
|
||||||
node.setModuleId(nodeModel.getModuleId());
|
node.setModuleId(nodeModel.getModuleId());
|
||||||
|
System.out.println("return node moduleId");
|
||||||
|
System.out.println(nodeModel.getModuleId());
|
||||||
node.setName(nodeModel.getName());
|
node.setName(nodeModel.getName());
|
||||||
this.getNodeAppearanceService().mergeNodeAppearance(
|
this.getNodeAppearanceService().mergeNodeAppearance(
|
||||||
nodeModel.getId(), nodeModel.getPosition().getLeft(),
|
nodeModel.getId(), nodeModel.getPosition().getLeft(),
|
||||||
|
|
|
@ -195,7 +195,7 @@ HAFlow.Main.prototype.openoozie = function() {
|
||||||
|
|
||||||
HAFlow.Main.prototype.runFlow = function(flowId) {
|
HAFlow.Main.prototype.runFlow = function(flowId) {
|
||||||
var _currentInstance = this;
|
var _currentInstance = this;
|
||||||
$.ajax({
|
/*$.ajax({
|
||||||
url : _currentInstance.basePath + "flow/" + flowId,
|
url : _currentInstance.basePath + "flow/" + flowId,
|
||||||
type : "PUT",
|
type : "PUT",
|
||||||
dataType : "json",
|
dataType : "json",
|
||||||
|
@ -203,7 +203,7 @@ HAFlow.Main.prototype.runFlow = function(flowId) {
|
||||||
data : JSON.stringify(_currentInstance.flows[flowId]),
|
data : JSON.stringify(_currentInstance.flows[flowId]),
|
||||||
success : function(data, status) {
|
success : function(data, status) {
|
||||||
HAFlow.showDialog("Save Flow", "Flow saved.");
|
HAFlow.showDialog("Save Flow", "Flow saved.");
|
||||||
_currentInstance.refreshFlowList();
|
_currentInstance.refreshFlowList();*/
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url : _currentInstance.basePath + "run/" + flowId,
|
url : _currentInstance.basePath + "run/" + flowId,
|
||||||
type : "POST",
|
type : "POST",
|
||||||
|
@ -219,12 +219,12 @@ HAFlow.Main.prototype.runFlow = function(flowId) {
|
||||||
"An error occurred while running flow: " + error);
|
"An error occurred while running flow: " + error);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
/*},
|
||||||
error : function(request, status, error) {
|
error : function(request, status, error) {
|
||||||
HAFlow.showDialog("Error", "An error occurred while saving flow: "
|
HAFlow.showDialog("Error", "An error occurred while saving flow: "
|
||||||
+ error);
|
+ error);
|
||||||
}
|
}
|
||||||
});
|
});*/
|
||||||
};
|
};
|
||||||
|
|
||||||
// Flow Helper
|
// Flow Helper
|
||||||
|
@ -1026,7 +1026,7 @@ HAFlow.Main.prototype.initFlowMenu = function() {
|
||||||
dojo.byId("user_name_text_box").innerHTML = data.name;
|
dojo.byId("user_name_text_box").innerHTML = data.name;
|
||||||
userRealTextBox.set("value", data.realname);
|
userRealTextBox.set("value", data.realname);
|
||||||
userEmailTextBox.set("value", data.email);
|
userEmailTextBox.set("value", data.email);
|
||||||
if(data.realname==null) tmp="尚未填写";
|
if(data.realname==null) tmp="灏氭湭濉啓";
|
||||||
else tmp=data.realname
|
else tmp=data.realname
|
||||||
dojo.byId("user_real_text_box").innerHTML=tmp;
|
dojo.byId("user_real_text_box").innerHTML=tmp;
|
||||||
dojo.byId("user_email_text_box").innerHTML=data.email;
|
dojo.byId("user_email_text_box").innerHTML=data.email;
|
||||||
|
@ -1207,8 +1207,7 @@ HAFlow.Main.prototype.initHdfsFileListTree = function() {
|
||||||
if(result.total==0)
|
if(result.total==0)
|
||||||
{
|
{
|
||||||
dojo.io.iframe.send({
|
dojo.io.iframe.send({
|
||||||
form: "hdfsfilepath", //ij<><C4B3>formԪ<6D>ذ<EFBFBD><D8B0><EFBFBD>ļ<EFBFBD>·<EFBFBD><C2B7>
|
form: "hdfsfilepath", //某锟斤拷form元锟截帮拷锟斤拷募锟铰凤拷锟<E68BB7> handleAs: "xml", //锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷html页锟斤拷
|
||||||
handleAs: "xml", //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>htmlҳ<6C><D2B3>
|
|
||||||
url:_currentInstance.basePath+"/hdfs/upload?remotePath="+path,
|
url:_currentInstance.basePath+"/hdfs/upload?remotePath="+path,
|
||||||
load: function(response){
|
load: function(response){
|
||||||
var success = response.getElementsByTagName("success")[0].childNodes[0].nodeValue;
|
var success = response.getElementsByTagName("success")[0].childNodes[0].nodeValue;
|
||||||
|
@ -1226,10 +1225,10 @@ HAFlow.Main.prototype.initHdfsFileListTree = function() {
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
HAFlow.showDialog("Upload", "Upload failure.");
|
HAFlow.showDialog("Upload", "Upload failure.");
|
||||||
}, //<EFBFBD>ύ<EFBFBD>ɹ<EFBFBD>
|
}, //锟结交锟缴癸拷
|
||||||
error: function(e){
|
error: function(e){
|
||||||
HAFlow.showDialog("Upload", "Upload failure.");
|
HAFlow.showDialog("Upload", "Upload failure.");
|
||||||
}//<EFBFBD>ύʧ<EFBFBD><EFBFBD>
|
}//锟结交失锟斤拷
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
@ -1372,10 +1371,9 @@ HAFlow.Main.prototype.initHdfsFileListTree = function() {
|
||||||
var isDirectory=tn.item.isDirectory;
|
var isDirectory=tn.item.isDirectory;
|
||||||
if(isDirectory==false)
|
if(isDirectory==false)
|
||||||
{
|
{
|
||||||
var form = $("<form>"); //<2F><><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>form<72>?
|
var form = $("<form>"); //锟斤拷锟斤拷一锟斤拷form锟<6D>
|
||||||
|
|
||||||
form.attr('style','display:none'); //<2F><>form<72>?<3F><><EFBFBD><EFBFBD>Ӳ<EFBFBD>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD>
|
|
||||||
|
|
||||||
|
form.attr('style','display:none'); //锟斤拷form锟<6D>锟斤拷锟斤拷硬锟窖拷锟斤拷锟<E68BB7>
|
||||||
form.attr('target','');
|
form.attr('target','');
|
||||||
|
|
||||||
form.attr('method','post');
|
form.attr('method','post');
|
||||||
|
@ -1401,11 +1399,11 @@ HAFlow.Main.prototype.initHdfsFileListTree = function() {
|
||||||
|
|
||||||
input2.attr('value',name);
|
input2.attr('value',name);
|
||||||
|
|
||||||
$('body').append(form); //<EFBFBD><EFBFBD><EFBFBD>?<3F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>web<65><62>
|
$('body').append(form); //锟斤拷锟<EFBFBD>锟斤拷锟斤拷锟斤拷web锟斤拷
|
||||||
|
|
||||||
form.append(input1); //<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ؼ<EFBFBD><EFBFBD>ύ<EFBFBD><EFBFBD><EFBFBD>?<3F><>
|
form.append(input1); //锟斤拷锟斤拷询锟斤拷锟斤拷丶锟斤拷峤伙拷锟斤拷?锟斤拷
|
||||||
form.append(input2);
|
form.append(input2);
|
||||||
form.submit(); //<EFBFBD>?<3F>ύ
|
form.submit(); //锟<EFBFBD>锟结交
|
||||||
$("#form1").ajaxForm(function(){
|
$("#form1").ajaxForm(function(){
|
||||||
HAFlow.showDialog("Download", "Succeed to download it.");
|
HAFlow.showDialog("Download", "Succeed to download it.");
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue