BrightSide Workbench Full Report + Source Code
org.turro.content.ActivityContentIterator Class Reference
Inheritance diagram for org.turro.content.ActivityContentIterator:
Collaboration diagram for org.turro.content.ActivityContentIterator:

Public Member Functions

 ActivityContentIterator (IConstructor constructor, Writer writer, IContact contact, boolean mail, String pubPath)
 
- Public Member Functions inherited from org.turro.jpa.content.EntityDaoContentIterator< E, ID >
 EntityDaoContentIterator (Dao dao, IConstructor constructor, Writer writer, IContact contact, boolean mail, String contextPath)
 
void setSeenStatus (SeenStatusCheck seenStatus)
 
SeenStatusCheck getSeenStatus ()
 
String getId ()
 
String getContextPath ()
 
IContact getContact ()
 
boolean isMail ()
 
Object getVotesCtrl (E e)
 
Object getInterestCtrl (E e)
 
Object getCommentsCtrl (E e)
 
Object getAttachmentsCtrl (E e)
 
Object getFilesCtrl (E e)
 
Object getDescriptionsCtrl (E e)
 
Object getPollsCtrl (E e)
 
Object getForumCtrl (E e)
 
void assignDefaultsByName (String name)
 
void assignDefaultsByMacro (MacroProcessorContext context)
 
Object getParticipationCtrl (E e, ParticipationReason reason)
 
Object getSpamCtrl (E e)
 
Object getFollowCtrl (E e)
 
Object getSeenCtrl (E e)
 
Object getLikeCtrl (E e)
 
Object getApplyCtrl (E e)
 
Object getCtrlByLabel (String ctrl, E e, IContact contact)
 
- Public Member Functions inherited from org.turro.jpa.iterator.DaoHtmlIterator< E, ID >
 DaoHtmlIterator (Dao dao, ElephantMarker marker)
 
 DaoHtmlIterator (Dao dao, ElephantMarker marker, Writer writer)
 
void setSummaryTemplate (String summaryTemplate)
 
String getSummaryTemplate ()
 
void setFullTemplate (String fullTemplate)
 
String getFullTemplate ()
 
boolean isRestricted ()
 
void setRestricted (boolean restricted)
 
boolean isAllowInterest ()
 
void setAllowInterest (boolean allowInterest)
 
boolean isAllowComments ()
 
void setAllowComments (boolean allowComments)
 
boolean isAllowVotes ()
 
void setAllowVotes (boolean allowVotes)
 
boolean isAllowForum ()
 
void setAllowForum (boolean allowForum)
 
boolean isAllowDescriptions ()
 
void setAllowDescriptions (boolean allowDescriptions)
 
boolean isAllowAttachments ()
 
void setAllowAttachments (boolean allowAttachments)
 
boolean isAllowFiles ()
 
void setAllowFiles (boolean allowFiles)
 
boolean isAllowPolls ()
 
void setAllowPolls (boolean allowPolls)
 
boolean isAllowRanking ()
 
void setAllowRanking (boolean allowRanking)
 
boolean isAllowMatching ()
 
void setAllowMatching (boolean allowMatching)
 
boolean isDoMatching ()
 
void setDoMatching (boolean doMatching)
 
String getRankingInstance ()
 
void setRankingInstance (String rankingInstance)
 
String getMatchingInstance ()
 
void setMatchingInstance (String matchingInstance)
 
boolean isAllowSorting ()
 
void setAllowSorting (boolean allowSorting)
 
boolean isNavigatorTop ()
 
void setNavigatorTop (boolean navigatorTop)
 
boolean isNavigatorBottom ()
 
void setNavigatorBottom (boolean navigatorBottom)
 
DaoHtmlTree getNavigationTree ()
 
void setNavigationTree (DaoHtmlTree navigationTree)
 
DaoHtmlSearch getSearchEngine ()
 
void setSearchEngine (DaoHtmlSearch searchEngine)
 
boolean isSearchOption ()
 
void setSearchOption (boolean searchOption)
 
boolean isForceSummary ()
 
void setForceSummary (boolean forceSummary)
 
boolean wantItem ()
 
boolean isItem ()
 
boolean checkEntity (ID value)
 
Object addAttribute (String key, Object value)
 
Writer getWriter ()
 
void load ()
 
void forceItem (ID item)
 
String getTitle ()
 
Collection< String > getMetas ()
 
void render ()
 
boolean isFirst ()
 
boolean isLast ()
 
String renderSearchEngine ()
 
String renderTree ()
 
String renderTreeSelection ()
 
TagSet getCloudTags ()
 
TagSet getEntityTags (Object entity)
 
boolean isSeen (Object entity)
 
VisualElements getVisuals ()
 
boolean isEmpty ()
 
- Public Member Functions inherited from org.turro.jpa.iterator.DaoIterator< E, ID >
 DaoIterator (Dao dao)
 
int getPage ()
 
void setPage (int page)
 
List< E > getItems ()
 
int getTotalCount ()
 
List< E > getTotalItems ()
 
int item ()
 
void current (int value)
 
int current ()
 
int pages ()
 
boolean beginning ()
 
boolean end ()
 
void next ()
 
void previous ()
 

Protected Member Functions

WhereClause getWhereClause ()
 
WhereClause getCountClause ()
 
void renderSummary (ElephantMarker marker, Activity e, int page)
 
void renderItem (ElephantMarker marker, Activity e, int page)
 
String entityRoot ()
 
Activity entity (ActivityPK value)
 
boolean isValid (Activity e)
 
String title (Activity e)
 
Collection< String > metas (Activity e)
 
String getTemplateRoot ()
 
String getItemLink (Activity e)
 
String getReadAllLink ()
 
String getRestrictedLink ()
 
Object doVotesCtrl (Activity e)
 
Object doInterestCtrl (Activity e)
 
Object doCommentsCtrl (Activity e)
 
Object doAttachmentsCtrl (Activity e)
 
Object doFilesCtrl (Activity e)
 
Object doDescriptionsCtrl (Activity e)
 
Object doPollsCtrl (Activity e)
 
- Protected Member Functions inherited from org.turro.jpa.content.EntityDaoContentIterator< E, ID >
void prepareControls (E entity, int page)
 
String doItemLink (E entity, ID id, boolean obfuscated)
 
abstract Object doVotesCtrl (E e)
 
abstract Object doInterestCtrl (E e)
 
abstract Object doCommentsCtrl (E e)
 
abstract Object doAttachmentsCtrl (E e)
 
abstract Object doFilesCtrl (E e)
 
abstract Object doDescriptionsCtrl (E e)
 
abstract Object doPollsCtrl (E e)
 
abstract String getItemLink (E e)
 
- Protected Member Functions inherited from org.turro.jpa.iterator.DaoHtmlIterator< E, ID >
VisualElements loadVisuals ()
 
abstract E entity (ID value)
 
abstract void renderSummary (ElephantMarker marker, E e, int page)
 
abstract void renderItem (ElephantMarker marker, E e, int page)
 
abstract String title (E e)
 
abstract Collection< String > metas (E e)
 
void renderForbidden (ElephantMarker marker, int page)
 
ID getIDFromURL (String root)
 
ID getIdentifier ()
 
void preload ()
 
boolean isValid (E e)
 
boolean canShow (E e)
 
ID parseId (String value)
 
String stringId (ID value)
 
- Protected Member Functions inherited from org.turro.jpa.iterator.DaoIterator< E, ID >
void initClauses ()
 

Additional Inherited Members

- Static Public Attributes inherited from org.turro.action.content.IContentIterator
static String PRELOAD_TMPL = "#preload"
 
- Protected Attributes inherited from org.turro.jpa.iterator.DaoHtmlIterator< E, ID >
HTMLHelper html
 
IConstructor constructor
 
ElephantMarker marker
 
DaoHtmlSearch searchEngine
 
DaoHtmlTree navigationTree
 
- Protected Attributes inherited from org.turro.jpa.iterator.DaoIterator< E, ID >
List< E > items
 
Dao dao
 
int _total = -1
 

Detailed Description

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

Definition at line 39 of file ActivityContentIterator.java.

Constructor & Destructor Documentation

◆ ActivityContentIterator()

org.turro.content.ActivityContentIterator.ActivityContentIterator ( IConstructor  constructor,
Writer  writer,
IContact  contact,
boolean  mail,
String  pubPath 
)

Definition at line 41 of file ActivityContentIterator.java.

41  {
42  super(new ElephantPU(), constructor, writer, contact, mail, pubPath);
43  }

Member Function Documentation

◆ doAttachmentsCtrl()

Object org.turro.content.ActivityContentIterator.doAttachmentsCtrl ( Activity  e)
protected

Definition at line 164 of file ActivityContentIterator.java.

164  {
165  return null;
166  }

◆ doCommentsCtrl()

Object org.turro.content.ActivityContentIterator.doCommentsCtrl ( Activity  e)
protected

Definition at line 159 of file ActivityContentIterator.java.

159  {
160  return null;
161  }

◆ doDescriptionsCtrl()

Object org.turro.content.ActivityContentIterator.doDescriptionsCtrl ( Activity  e)
protected

Definition at line 174 of file ActivityContentIterator.java.

174  {
175  return null;
176  }

◆ doFilesCtrl()

Object org.turro.content.ActivityContentIterator.doFilesCtrl ( Activity  e)
protected

Definition at line 169 of file ActivityContentIterator.java.

169  {
170  return null;
171  }

◆ doInterestCtrl()

Object org.turro.content.ActivityContentIterator.doInterestCtrl ( Activity  e)
protected

Definition at line 154 of file ActivityContentIterator.java.

154  {
155  return null;
156  }

◆ doPollsCtrl()

Object org.turro.content.ActivityContentIterator.doPollsCtrl ( Activity  e)
protected

Definition at line 179 of file ActivityContentIterator.java.

179  {
180  return null;
181  }

◆ doVotesCtrl()

Object org.turro.content.ActivityContentIterator.doVotesCtrl ( Activity  e)
protected

Definition at line 149 of file ActivityContentIterator.java.

149  {
150  return null;
151  }

◆ entity()

Activity org.turro.content.ActivityContentIterator.entity ( ActivityPK  value)
protected

Definition at line 84 of file ActivityContentIterator.java.

84  {
85  WhereClause wc = new WhereClause();
86  wc.addClause("select activity from Activity as activity");
87  addCriteria(wc);
88  wc.addClause("and activity.id = :id");
89  wc.addNamedValue("id", value);
90  return (Activity) dao.getSingleResultOrNull(wc);
91  }
Object getSingleResultOrNull(SqlClause sc)
Definition: Dao.java:419
Here is the call graph for this function:

◆ entityRoot()

String org.turro.content.ActivityContentIterator.entityRoot ( )
protected

Reimplemented from org.turro.jpa.iterator.DaoHtmlIterator< E, ID >.

Definition at line 79 of file ActivityContentIterator.java.

79  {
80  return "activity";
81  }

◆ getCountClause()

WhereClause org.turro.content.ActivityContentIterator.getCountClause ( )
protected

Reimplemented from org.turro.jpa.iterator.DaoIterator< E, ID >.

Definition at line 55 of file ActivityContentIterator.java.

55  {
56  WhereClause wc = new WhereClause();
57  wc.addClause("select count(activity) from Activity as activity");
58  addCriteria(wc);
59  return wc;
60  }
Here is the call graph for this function:

◆ getItemLink()

String org.turro.content.ActivityContentIterator.getItemLink ( Activity  e)
protected

Definition at line 127 of file ActivityContentIterator.java.

127  {
128  return null;
129  }

◆ getReadAllLink()

String org.turro.content.ActivityContentIterator.getReadAllLink ( )
protected

Reimplemented from org.turro.jpa.content.EntityDaoContentIterator< E, ID >.

Definition at line 132 of file ActivityContentIterator.java.

132  {
133  String path = getContextPath();
134  if(Strings.isBlank(path)) {
135  path = ElephantContext.getEntityWebContext("/activity");
136  }
137  if(Strings.isBlank(path)) {
138  return getRestrictedLink();
139  }
140  return path;
141  }
Here is the call graph for this function:

◆ getRestrictedLink()

String org.turro.content.ActivityContentIterator.getRestrictedLink ( )
protected

Reimplemented from org.turro.jpa.content.EntityDaoContentIterator< E, ID >.

Definition at line 144 of file ActivityContentIterator.java.

144  {
145  return "/user/lastactivities";
146  }
Here is the caller graph for this function:

◆ getTemplateRoot()

String org.turro.content.ActivityContentIterator.getTemplateRoot ( )
protected

Reimplemented from org.turro.jpa.content.EntityDaoContentIterator< E, ID >.

Definition at line 122 of file ActivityContentIterator.java.

122  {
123  return isMail() ? null : "activity";
124  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getWhereClause()

WhereClause org.turro.content.ActivityContentIterator.getWhereClause ( )
protected

Reimplemented from org.turro.jpa.iterator.DaoIterator< E, ID >.

Definition at line 46 of file ActivityContentIterator.java.

46  {
47  WhereClause wc = new WhereClause();
48  wc.addClause("select activity from Activity as activity");
49  addCriteria(wc);
50  wc.addClause("order by activity.activityDate desc");
51  return wc;
52  }
Here is the call graph for this function:

◆ isValid()

boolean org.turro.content.ActivityContentIterator.isValid ( Activity  e)
protected

Definition at line 103 of file ActivityContentIterator.java.

103  {
104  return !e.getEntity().isEmpty() && super.isValid(e);
105  }
Here is the call graph for this function:

◆ metas()

Collection<String> org.turro.content.ActivityContentIterator.metas ( Activity  e)
protected

Definition at line 117 of file ActivityContentIterator.java.

117  {
118  return Collections.EMPTY_LIST;
119  }

◆ renderItem()

void org.turro.content.ActivityContentIterator.renderItem ( ElephantMarker  marker,
Activity  e,
int  page 
)
protected

Definition at line 72 of file ActivityContentIterator.java.

72  {
73  marker.put("activity", e);
74  prepareValues(e, page);
76  }
void process(String rootTmpl, String tmpl)
Object put(Object key, Object value)
Here is the call graph for this function:

◆ renderSummary()

void org.turro.content.ActivityContentIterator.renderSummary ( ElephantMarker  marker,
Activity  e,
int  page 
)
protected

Definition at line 63 of file ActivityContentIterator.java.

63  {
64  if(e != null) {
65  marker.put("activity", e);
66  prepareValues(e, page);
67  }
69  }
Here is the call graph for this function:

◆ title()

String org.turro.content.ActivityContentIterator.title ( Activity  e)
protected

Definition at line 112 of file ActivityContentIterator.java.

112  {
113  return null;
114  }

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