19 package org.turro.publication.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.elephant.context.ElephantContext;
35 import org.turro.path.Path;
36 import org.turro.plugin.contacts.IContact;
37 import org.turro.publication.db.PublicationPU;
38 import org.turro.publication.entity.Publication;
39 import org.turro.publication.util.PublicationWrapper;
53 if(
"publication".equals(path.getRoot())) {
56 HashMap<String, Object> args =
new HashMap<>();
57 args.put(
"entityPath", path.getPath());
58 args.put(
"resolver",
this);
61 }
catch (IOException ex) {
80 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)
static String linkForPath(Path path, IContact contact, LinkType type)
boolean writeEntityInfo(Writer out, Path path, EntityInfoType type, LinkType link)
String resolveLink(String type)