BrightSide Workbench Full Report + Source Code
org.turro.action.EntitiesInfo Class Reference

Static Public Member Functions

static String getString (Object entity, Object wrapper, String label, EntityInfoType type, LinkType link)
 
static String getString (Object entity, Object wrapper, String label, EntityInfoType type, LinkType link, Map< String, Object > args)
 
static String getTextString (Object entity, Object wrapper, String label, EntityInfoType type, LinkType link)
 
static String getTextString (Object entity, Object wrapper, String label, EntityInfoType type, LinkType link, Map< String, Object > args)
 
static boolean writeEntityInfo (Writer out, String path, EntityInfoType type, LinkType link)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 35 of file EntitiesInfo.java.

Member Function Documentation

◆ getString() [1/2]

static String org.turro.action.EntitiesInfo.getString ( Object  entity,
Object  wrapper,
String  label,
EntityInfoType  type,
LinkType  link 
)
static

Definition at line 37 of file EntitiesInfo.java.

37  {
38  return getString(entity, wrapper, label, type, link, null);
39  }
static String getString(Object entity, Object wrapper, String label, EntityInfoType type, LinkType link)
Here is the caller graph for this function:

◆ getString() [2/2]

static String org.turro.action.EntitiesInfo.getString ( Object  entity,
Object  wrapper,
String  label,
EntityInfoType  type,
LinkType  link,
Map< String, Object >  args 
)
static

Definition at line 41 of file EntitiesInfo.java.

41  {
42  ElephantMarker marker = new ElephantMarker(Application.getApplication().getConstructor());
43  marker.put(label, entity);
44  marker.put("wrapper", wrapper);
45  marker.put("link", link.toString());
46  marker.put("type", type.toString());
47  marker.put("iee", Entities.getController(entity));
48  if(args != null) {
49  marker.putAll(args);
50  }
51  return marker.parse(label, "entityInfo");
52  }
Here is the call graph for this function:

◆ getTextString() [1/2]

static String org.turro.action.EntitiesInfo.getTextString ( Object  entity,
Object  wrapper,
String  label,
EntityInfoType  type,
LinkType  link 
)
static

Definition at line 54 of file EntitiesInfo.java.

54  {
55  return getTextString(entity, wrapper, label, type, link, null);
56  }
static String getTextString(Object entity, Object wrapper, String label, EntityInfoType type, LinkType link)

◆ getTextString() [2/2]

static String org.turro.action.EntitiesInfo.getTextString ( Object  entity,
Object  wrapper,
String  label,
EntityInfoType  type,
LinkType  link,
Map< String, Object >  args 
)
static

Definition at line 58 of file EntitiesInfo.java.

58  {
59  return HtmlContent.text(getString(entity, wrapper, label, type, link, args));
60  }
Here is the call graph for this function:

◆ writeEntityInfo()

static boolean org.turro.action.EntitiesInfo.writeEntityInfo ( Writer  out,
String  path,
EntityInfoType  type,
LinkType  link 
)
static

Definition at line 64 of file EntitiesInfo.java.

64  {
65  Path entityPath = new Path(path);
66  for(IEntityInfo iEntity : Instances.cached().byAnnotation(EntityInfo.class, IEntityInfo.class)) {
67  if(iEntity.writeEntityInfo(out, entityPath, type, link)) {
68  return true;
69  }
70  }
71  return false;
72  }
Here is the caller graph for this function:

The documentation for this class was generated from the following file: