19 package org.turro.students.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.auth.Authentication;
33 import org.turro.elephant.context.Application;
34 import org.turro.elephant.context.ElephantContext;
35 import org.turro.path.Path;
36 import org.turro.plugin.contacts.IContact;
37 import org.turro.students.db.StudentsPU;
38 import org.turro.students.entities.Challenge;
39 import org.turro.students.wrappers.ChallengeWrapper;
40 import org.turro.www.describeit.DescribeItCtrl;
53 if(
null != path.getRoot())
switch (path.getRoot()) {
59 HashMap<String, Object> args =
new HashMap<>();
61 args.put(
"entityPath", path.getPath());
62 args.put(
"resolver",
this);
65 }
catch (IOException ex) {
85 return "/user/" + path.getRoot() +
"s?item=" + path.getNode(1);
88 return "/user/" + path.getRoot() +
"s?item=" + path.getNode(1);
static String getString(Object entity, Object wrapper, String label, EntityInfoType type, LinkType link)
static Parameters parameters(String root)
static IContact getIContact()
IConstructor getConstructor()
static Application getApplication()
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)
void setEntityPath(String entityPath)