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

Public Member Functions

 ProjectGrantContentIterator (IConstructor constructor, Writer writer, IContact contact, boolean mail, String pubPath)
 
ProjectGrantCriteria getCriteria ()
 
- 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, ProjectGrant e, int page)
 
void renderItem (ElephantMarker marker, ProjectGrant e, int page)
 
String entityRoot ()
 
ProjectGrant entity (Long value)
 
boolean isValid (ProjectGrant e)
 
String title (ProjectGrant e)
 
Collection< String > metas (ProjectGrant e)
 
String getTemplateRoot ()
 
Object doVotesCtrl (ProjectGrant e)
 
Object doInterestCtrl (ProjectGrant e)
 
Object doCommentsCtrl (ProjectGrant e)
 
Object doAttachmentsCtrl (ProjectGrant e)
 
Object doFilesCtrl (ProjectGrant e)
 
Object doDescriptionsCtrl (ProjectGrant e)
 
Object doPollsCtrl (ProjectGrant e)
 
String getItemLink (ProjectGrant e)
 
String getReadAllLink ()
 
String getRestrictedLink ()
 
- 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

Constructor & Destructor Documentation

◆ ProjectGrantContentIterator()

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

Definition at line 59 of file BrightSide/elephant-dossier/src/main/java/org/turro/dossier/content/ProjectGrantContentIterator.java.

59  {
60  super(new DossierPU(), constructor, writer, contact, mail, pubPath);
61  this.criteria = new ProjectGrantCriteria();
62  }

Member Function Documentation

◆ doAttachmentsCtrl()

Object org.turro.dossier.content.ProjectGrantContentIterator.doAttachmentsCtrl ( ProjectGrant  e)
protected

Definition at line 276 of file BrightSide/elephant-dossier/src/main/java/org/turro/dossier/content/ProjectGrantContentIterator.java.

276  {
277  return Entities.getController(e).configureCtrl(
278  new AttachCtrl(constructor), getContact());
279  }
Here is the call graph for this function:

◆ doCommentsCtrl()

Object org.turro.dossier.content.ProjectGrantContentIterator.doCommentsCtrl ( ProjectGrant  e)
protected

Definition at line 270 of file BrightSide/elephant-dossier/src/main/java/org/turro/dossier/content/ProjectGrantContentIterator.java.

270  {
271  return Entities.getController(e).configureCtrl(
272  new CommentItCtrl(constructor), getContact());
273  }
Here is the call graph for this function:

◆ doDescriptionsCtrl()

Object org.turro.dossier.content.ProjectGrantContentIterator.doDescriptionsCtrl ( ProjectGrant  e)
protected

Definition at line 288 of file BrightSide/elephant-dossier/src/main/java/org/turro/dossier/content/ProjectGrantContentIterator.java.

288  {
289  return Entities.getController(e).configureCtrl(
290  new DescribeItCtrl(constructor), getContact());
291  }
Here is the call graph for this function:

◆ doFilesCtrl()

Object org.turro.dossier.content.ProjectGrantContentIterator.doFilesCtrl ( ProjectGrant  e)
protected

Definition at line 282 of file BrightSide/elephant-dossier/src/main/java/org/turro/dossier/content/ProjectGrantContentIterator.java.

282  {
283  return Entities.getController(e).configureCtrl(
284  new FileAttach(ContactsPU.getObjectPath(e)), getContact());
285  }
Here is the call graph for this function:

◆ doInterestCtrl()

Object org.turro.dossier.content.ProjectGrantContentIterator.doInterestCtrl ( ProjectGrant  e)
protected

Definition at line 264 of file BrightSide/elephant-dossier/src/main/java/org/turro/dossier/content/ProjectGrantContentIterator.java.

264  {
265  return Entities.getController(e).configureCtrl(
266  new StarItCtrl(constructor), getContact());
267  }
Here is the call graph for this function:

◆ doPollsCtrl()

Object org.turro.dossier.content.ProjectGrantContentIterator.doPollsCtrl ( ProjectGrant  e)
protected

Definition at line 294 of file BrightSide/elephant-dossier/src/main/java/org/turro/dossier/content/ProjectGrantContentIterator.java.

294  {
295  return Entities.getController(e).configureCtrl(
296  new PollsCtrl(constructor), getContact());
297  }
Here is the call graph for this function:

◆ doVotesCtrl()

Object org.turro.dossier.content.ProjectGrantContentIterator.doVotesCtrl ( ProjectGrant  e)
protected

Definition at line 258 of file BrightSide/elephant-dossier/src/main/java/org/turro/dossier/content/ProjectGrantContentIterator.java.

258  {
259  return Entities.getController(e).configureCtrl(
260  new VoteItCtrl(constructor), getContact());
261  }
Here is the call graph for this function:

◆ entity()

ProjectGrant org.turro.dossier.content.ProjectGrantContentIterator.entity ( Long  value)
protected

Definition at line 104 of file BrightSide/elephant-dossier/src/main/java/org/turro/dossier/content/ProjectGrantContentIterator.java.

104  {
105  processSearch();
106  WhereClause wc = createCriteria();
107  wc.addClause("and g.id = :id");
108  wc.addNamedValue("id", value);
109  return (ProjectGrant) dao.getSingleResultOrNull(wc);
110  }
Object getSingleResultOrNull(SqlClause sc)
Definition: Dao.java:419
Here is the call graph for this function:

◆ entityRoot()

String org.turro.dossier.content.ProjectGrantContentIterator.entityRoot ( )
protected

◆ getCountClause()

WhereClause org.turro.dossier.content.ProjectGrantContentIterator.getCountClause ( )
protected

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

Definition at line 77 of file BrightSide/elephant-dossier/src/main/java/org/turro/dossier/content/ProjectGrantContentIterator.java.

77  {
78  processSearch();
79  return createCount();
80  }

◆ getCriteria()

ProjectGrantCriteria org.turro.dossier.content.ProjectGrantContentIterator.getCriteria ( )

◆ getItemLink()

String org.turro.dossier.content.ProjectGrantContentIterator.getItemLink ( ProjectGrant  e)
protected

Definition at line 300 of file BrightSide/elephant-dossier/src/main/java/org/turro/dossier/content/ProjectGrantContentIterator.java.

300  {
301  return doItemLink(e, e.getId(), true);
302  }
String doItemLink(E entity, ID id, boolean obfuscated)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getReadAllLink()

String org.turro.dossier.content.ProjectGrantContentIterator.getReadAllLink ( )
protected

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

Definition at line 305 of file BrightSide/elephant-dossier/src/main/java/org/turro/dossier/content/ProjectGrantContentIterator.java.

305  {
306  String path = getContextPath();
307  if(Strings.isBlank(path)) {
308  path = ElephantContext.getEntityWebContext("/projectgrant");
309  }
310  if(Strings.isBlank(path)) {
311  return getRestrictedLink();
312  }
313  return path;
314  }
Here is the call graph for this function:

◆ getRestrictedLink()

String org.turro.dossier.content.ProjectGrantContentIterator.getRestrictedLink ( )
protected

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

Definition at line 317 of file BrightSide/elephant-dossier/src/main/java/org/turro/dossier/content/ProjectGrantContentIterator.java.

317  {
318  return "/user/projectgrants";
319  }
Here is the caller graph for this function:

◆ getTemplateRoot()

String org.turro.dossier.content.ProjectGrantContentIterator.getTemplateRoot ( )
protected

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

Definition at line 253 of file BrightSide/elephant-dossier/src/main/java/org/turro/dossier/content/ProjectGrantContentIterator.java.

253  {
254  return isMail() ? "content/newsletter/sections/projectgrants" : "projectgrant";
255  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getWhereClause()

WhereClause org.turro.dossier.content.ProjectGrantContentIterator.getWhereClause ( )
protected

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

Definition at line 69 of file BrightSide/elephant-dossier/src/main/java/org/turro/dossier/content/ProjectGrantContentIterator.java.

69  {
70  processSearch();
71  WhereClause wc = createCriteria();
72  wc.addClause("order by (case when g.endDate < now() then 1 else 0 end) asc, g.endDate asc, g.title");
73  return wc;
74  }
Here is the call graph for this function:

◆ isValid()

boolean org.turro.dossier.content.ProjectGrantContentIterator.isValid ( ProjectGrant  e)
protected

Definition at line 205 of file BrightSide/elephant-dossier/src/main/java/org/turro/dossier/content/ProjectGrantContentIterator.java.

205  {
206  return super.isValid(e);
207  }

◆ metas()

Collection<String> org.turro.dossier.content.ProjectGrantContentIterator.metas ( ProjectGrant  e)
protected

Definition at line 238 of file BrightSide/elephant-dossier/src/main/java/org/turro/dossier/content/ProjectGrantContentIterator.java.

238  {
239  ArrayList<RepositoryFile> files = new ArrayList<>();
240  String path = getItemLink(e);
241  if(!SocialImageMap.hasImage(path)) {
242  FileAttach fa = new FileAttach(ContactsPU.getObjectPath(e));
243  Repository repository = fa.getPublishableRepository(constructor);
244  files.addAll(repository.getRepositoryFiles("*_social.png,*_social.jpg"));
245  files.addAll(repository.getRepositoryFiles("*.png,*.jpg"));
246  }
247  SocialNet sn;
248  sn = new SocialNet(path, e.getName(), e.getDescription(), files);
249  return sn.getMetas();
250  }
Here is the call graph for this function:

◆ renderItem()

void org.turro.dossier.content.ProjectGrantContentIterator.renderItem ( ElephantMarker  marker,
ProjectGrant  e,
int  page 
)
protected

◆ renderSummary()

void org.turro.dossier.content.ProjectGrantContentIterator.renderSummary ( ElephantMarker  marker,
ProjectGrant  e,
int  page 
)
protected

Definition at line 83 of file BrightSide/elephant-dossier/src/main/java/org/turro/dossier/content/ProjectGrantContentIterator.java.

83  {
84  if(e != null) {
85  marker.put("projectGrant", e);
86  prepareValues(e, page);
87  }
89  }
Here is the call graph for this function:

◆ title()

String org.turro.dossier.content.ProjectGrantContentIterator.title ( ProjectGrant  e)
protected

Definition at line 230 of file BrightSide/elephant-dossier/src/main/java/org/turro/dossier/content/ProjectGrantContentIterator.java.

230  {
231  if(!Strings.isBlank(e.getName())) {
232  return e.getName();
233  }
234  return null;
235  }
Here is the call graph for this function:

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