BrightSide Workbench Full Report + Source Code
org.turro.user.activity.UserActivityContent Class Reference
Inheritance diagram for org.turro.user.activity.UserActivityContent:
Collaboration diagram for org.turro.user.activity.UserActivityContent:

Public Member Functions

 UserActivityContent ()
 
String createURL (IContact contact, ActivityType... types)
 
String getIdentifier ()
 
- 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)
 

Protected Member Functions

void prepareMarker (ElephantMarker marker)
 
void prepareCleanMarker (ElephantMarker marker, KeyValueMap map)
 
void doExecute (IConstructor constructor, KeyValueMap map)
 
- Protected Member Functions inherited from org.turro.elephant.direct.AbstractDirectContentCtrl
String getRedirContext (IConstructor constructor, boolean withDomain)
 
ElephantMarker getMarker (IConstructor constructor)
 
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)
 

Additional Inherited Members

- 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 34 of file UserActivityContent.java.

Constructor & Destructor Documentation

◆ UserActivityContent()

org.turro.user.activity.UserActivityContent.UserActivityContent ( )

Definition at line 36 of file UserActivityContent.java.

36  {
37  super("widgets/activity");
38  }

Member Function Documentation

◆ createURL()

String org.turro.user.activity.UserActivityContent.createURL ( IContact  contact,
ActivityType...  types 
)

Definition at line 40 of file UserActivityContent.java.

40  {
41  return createRightNowURL("contact=" + contact.getId());
42  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ doExecute()

void org.turro.user.activity.UserActivityContent.doExecute ( IConstructor  constructor,
KeyValueMap  map 
)
protected

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

Definition at line 63 of file UserActivityContent.java.

63  {
64  if(map.containsKey("contact")) {
65  writeMarkerToResponse(constructor, map);
66  }
67  }
void writeMarkerToResponse(IConstructor constructor, KeyValueMap map)

◆ getIdentifier()

String org.turro.user.activity.UserActivityContent.getIdentifier ( )

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

Definition at line 45 of file UserActivityContent.java.

45  {
46  return UserActivityContent.class.getAnnotation(DirectContent.class).identifier();
47  }

◆ prepareCleanMarker()

void org.turro.user.activity.UserActivityContent.prepareCleanMarker ( ElephantMarker  marker,
KeyValueMap  map 
)
protected

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

Definition at line 55 of file UserActivityContent.java.

55  {
56  marker.putAll(map);
57  if(map.containsKey("contact")) {
58  marker.put("activities", UserActivities.getActivity(Contacts.getContactById(map.get("contact"))));
59  }
60  }
Here is the call graph for this function:

◆ prepareMarker()

void org.turro.user.activity.UserActivityContent.prepareMarker ( ElephantMarker  marker)
protected

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

Definition at line 50 of file UserActivityContent.java.

50  {
51  // do nothing
52  }

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