BrightSide Workbench Full Report + Source Code
org.turro.elephant.direct.AbstractDirectEntityCtrl Class Referenceabstract
Inheritance diagram for org.turro.elephant.direct.AbstractDirectEntityCtrl:
Collaboration diagram for org.turro.elephant.direct.AbstractDirectEntityCtrl:

Public Member Functions

 AbstractDirectEntityCtrl (String tmplRoot, String entityAttribute)
 
void setConstructor (IConstructor constructor)
 
void setEntityPath (String entityPath)
 
boolean hasContent ()
 
- Public Member Functions inherited from org.turro.elephant.direct.AbstractDirectContentCtrl
 AbstractDirectContentCtrl (String tmplRoot)
 
String createFormAction ()
 
String createPOST (String values)
 
String getAjaxSubmitUrl (String containerId)
 
String getAjaxUrl (String containerId, String values)
 
String getAjaxUrl (String containerId, KeyValueMap values)
 
String getAjaxEvalUrl (KeyValueMap values)
 
String createRightNowURL (String values)
 
String createRightNowURL (KeyValueMap values)
 
String createLinkTo (String link, KeyValueMap values)
 
String createURL ()
 
String createURL (IConstructor constructor, String values)
 
String createURL (IConstructor constructor, String values, int daysValid)
 
String createURL (IConstructor constructor, String values, int daysValid, boolean withDomain)
 
String createURL (IConstructor constructor, IContact recipe, String values, int daysValid, boolean withDomain)
 
String createURL (IConstructor constructor, IContact recipe, KeyValueMap values, int daysValid, boolean withDomain)
 
void setTemplate (String template)
 
void render (IConstructor constructor)
 
String parse (IConstructor constructor)
 
boolean itsMe (String id)
 
boolean myTurn (HttpServletRequest request)
 
void execute (ServletContext context, HttpServletRequest request, HttpServletResponse response)
 
void execute (IConstructor constructor)
 
- Public Member Functions inherited from org.turro.action.IEntityCtrl
void setTemplate (String template)
 
void render (IConstructor constructor)
 
String parse (IConstructor constructor)
 

Protected Member Functions

ElephantMarker getMarker (IConstructor constructor)
 
- Protected Member Functions inherited from org.turro.elephant.direct.AbstractDirectContentCtrl
String getRedirContext (IConstructor constructor, boolean withDomain)
 
ElephantMarker getCleanMarkerFrom (IConstructor constructor)
 
void addContainerId (ElephantMarker marker, boolean container)
 
String getTmplRoot ()
 
String getTemplate ()
 
void writeMarkerToResponse (IConstructor constructor, KeyValueMap map)
 
void writeMarkerToResponse (IConstructor constructor, KeyValueMap map, Map extra)
 
void setNeedsUser (boolean needsUser)
 
abstract String getIdentifier ()
 
abstract void prepareMarker (ElephantMarker marker)
 
abstract void prepareCleanMarker (ElephantMarker marker, KeyValueMap map)
 
abstract void doExecute (IConstructor constructor, KeyValueMap map)
 

Protected Attributes

String entityPath
 
IElephantEntity iee
 
IConstructor norReentrantConstructor
 
- Protected Attributes inherited from org.turro.elephant.direct.AbstractDirectContentCtrl
String template = "full"
 

Detailed Description

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

Definition at line 32 of file AbstractDirectEntityCtrl.java.

Constructor & Destructor Documentation

◆ AbstractDirectEntityCtrl()

org.turro.elephant.direct.AbstractDirectEntityCtrl.AbstractDirectEntityCtrl ( String  tmplRoot,
String  entityAttribute 
)

Definition at line 39 of file AbstractDirectEntityCtrl.java.

39  {
40  super(tmplRoot);
41  this.entityAttribute = entityAttribute;
42  }

Member Function Documentation

◆ getMarker()

ElephantMarker org.turro.elephant.direct.AbstractDirectEntityCtrl.getMarker ( IConstructor  constructor)
protected

Reimplemented from org.turro.elephant.direct.AbstractDirectContentCtrl.

Definition at line 45 of file AbstractDirectEntityCtrl.java.

45  {
46  ElephantMarker marker = super.getMarker(constructor);
47  if(!Strings.isBlank(entityPath)) {
48  marker.put("entityPath", entityPath);
49  marker.put("iee", iee);
50  marker.put(entityAttribute, iee.getEntity());
51  }
52  return marker;
53  }
Here is the call graph for this function:

◆ hasContent()

boolean org.turro.elephant.direct.AbstractDirectEntityCtrl.hasContent ( )

Implements org.turro.action.IEntityCtrl.

Reimplemented in org.turro.forum.www.ForumCtrl.

Definition at line 69 of file AbstractDirectEntityCtrl.java.

69  {
70  return iee != null && iee.getEntity() != null;
71  }
Here is the call graph for this function:

◆ setConstructor()

void org.turro.elephant.direct.AbstractDirectEntityCtrl.setConstructor ( IConstructor  constructor)

Implements org.turro.action.IEntityCtrl.

Definition at line 58 of file AbstractDirectEntityCtrl.java.

Here is the caller graph for this function:

◆ setEntityPath()

void org.turro.elephant.direct.AbstractDirectEntityCtrl.setEntityPath ( String  entityPath)

Implements org.turro.action.IEntityCtrl.

Definition at line 63 of file AbstractDirectEntityCtrl.java.

63  {
64  this.entityPath = entityPath;
65  iee = Entities.getController(entityPath);
66  }
IElephantEntity getController(String entityPath)
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ entityPath

String org.turro.elephant.direct.AbstractDirectEntityCtrl.entityPath
protected

Definition at line 35 of file AbstractDirectEntityCtrl.java.

◆ iee

IElephantEntity org.turro.elephant.direct.AbstractDirectEntityCtrl.iee
protected

Definition at line 36 of file AbstractDirectEntityCtrl.java.

◆ norReentrantConstructor

IConstructor org.turro.elephant.direct.AbstractDirectEntityCtrl.norReentrantConstructor
protected

Definition at line 37 of file AbstractDirectEntityCtrl.java.


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