19 package org.turro.contacts.command;
21 import java.io.IOException;
22 import java.io.Writer;
23 import java.util.HashMap;
24 import java.util.logging.Level;
25 import java.util.logging.Logger;
26 import org.turro.string.Strings;
27 import org.turro.action.EntitiesInfo;
28 import org.turro.action.EntityInfoType;
29 import org.turro.action.IEntityInfo;
30 import org.turro.action.Interceptors;
31 import org.turro.action.LinkType;
32 import org.turro.annotation.EntityInfo;
33 import org.turro.auth.Authentication;
34 import org.turro.contacts.Contact;
35 import org.turro.contacts.ContactService;
36 import org.turro.contacts.Convocation;
37 import org.turro.contacts.db.ContactsPU;
38 import org.turro.contacts.form.ContactWrapper;
39 import org.turro.contacts.service.ContactServiceWrapper;
40 import org.turro.elephant.context.ElephantContext;
41 import org.turro.path.Path;
42 import org.turro.plugin.contacts.IContact;
43 import org.turro.zul.convocation.ConvocationWrapper;
57 if(
"convocation".equals(path.getRoot())) {
60 HashMap<String, Object> args =
new HashMap<>();
61 args.put(
"entityPath", path.getPath());
62 args.put(
"resolver",
this);
65 }
catch (IOException ex) {
68 }
else if(
"service".equals(path.getRoot())) {
71 HashMap<String, Object> args =
new HashMap<>();
72 args.put(
"entityPath", path.getPath());
73 args.put(
"resolver",
this);
76 }
catch (IOException ex) {
79 }
else if(
"contact".equals(path.getRoot())) {
82 HashMap<String, Object> args =
new HashMap<>();
83 args.put(
"entityPath", path.getPath());
84 args.put(
"resolver",
this);
87 }
catch (IOException ex) {
105 return "/user/services?item=" + path.getNode(1);
108 return !Strings.isBlank(context) ? context +
"?item=" + path.getNode(1) :
null;
static String getString(Object entity, Object wrapper, String label, EntityInfoType type, LinkType link)
static Parameters parameters(String root)
static IContact getIContact()
static String logMsg(String msg)
static String getEntityWebContext(String path)