public QuerySaveProcessor AppEnv env BaseDocument User String currentL

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
public QuerySaveProcessor(AppEnv env, BaseDocument d, User u, String currentLang, HashMap<String, String[]> formData){
user = u.getUserID();
ses = new _Session(env, u, this);
ses.getCurrentDatabase().setTransConveyor(transactionToPost);
webFormData = new _WebFormData(formData);
if (d instanceof Project){
doc = new _Project((Project)d, ses);
}else if (d instanceof Topic){
doc = new _Topic((Topic)d, ses);
}else if (d instanceof Task){
doc = new _Task((Task)d, ses);
}else if (d instanceof Execution){
doc = new _Execution((Execution)d, ses);
}else if (d instanceof kz.flabs.runtimeobj.document.glossary.Glossary){
doc = new _Glossary((kz.flabs.runtimeobj.document.glossary.Glossary)d, ses);
}else if (d instanceof kz.flabs.runtimeobj.document.structure.Employer){
doc = new _Employer((kz.flabs.runtimeobj.document.structure.Employer)d, ses);
}else if (d instanceof kz.flabs.runtimeobj.document.structure.Department){
doc = new _Department((kz.flabs.runtimeobj.document.structure.Department)d, ses);
}else if (d instanceof kz.flabs.runtimeobj.document.structure.Organization){
doc = new _Organization((kz.flabs.runtimeobj.document.structure.Organization)d, ses);
}else if (d instanceof kz.flabs.runtimeobj.document.structure.UserGroup){
doc = new _UserGroup((kz.flabs.runtimeobj.document.structure.UserGroup)d, ses);
}else{
doc = new _Document(d, ses);
}
vocabulary = env.vocabulary;
this.currentLang = currentLang;
try{
if (formData.containsKey("formsesid")) {
String fsid = formData.get("formsesid")[0];
ses.setFormSesID(fsid);
}
}catch(Exception e){
AppEnv.logger.errorLogEntry(e);
}
}