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

Public Member Functions

 AgreementContentIterator (IConstructor constructor, Writer writer, IContact contact, boolean mail, String pubPath)
 
- Public Member Functions inherited from org.turro.jpa.content.EntityItemContentIterator< E, ID >
 EntityItemContentIterator (List collection, IConstructor constructor, Writer writer, IContact contact, boolean mail, String contextPath)
 
String getContextPath ()
 
IContact getContact ()
 
boolean isAllowInterest ()
 
void setAllowInterest (boolean allowInterest)
 
boolean isAllowComments ()
 
void setAllowComments (boolean allowComments)
 
boolean isAllowVotes ()
 
void setAllowVotes (boolean allowVotes)
 
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 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)
 
- Public Member Functions inherited from org.turro.collections.CollectionHtmlIterator< E, ID >
 CollectionHtmlIterator (List collection, ElephantMarker marker)
 
 CollectionHtmlIterator (List collection, ElephantMarker marker, Writer writer)
 
void setSummaryTemplate (String summaryTemplate)
 
String getSummaryTemplate ()
 
void setFullTemplate (String fullTemplate)
 
String getFullTemplate ()
 
boolean isNavigatorTop ()
 
void setNavigatorTop (boolean navigatorTop)
 
boolean isNavigatorBottom ()
 
void setNavigatorBottom (boolean navigatorBottom)
 
boolean isSearchOption ()
 
void setSearchOption (boolean searchOption)
 
boolean isForceSummary ()
 
void setForceSummary (boolean forceSummary)
 
boolean wantItem ()
 
boolean isItem ()
 
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 ()
 
boolean isEmpty ()
 
- Public Member Functions inherited from org.turro.collections.CollectionIterator< E, ID >
 CollectionIterator (List< E > collection)
 
int getPage ()
 
void setPage (int page)
 
void initClauses ()
 
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

void renderSummary (ElephantMarker marker, AgreementSignature e, int page)
 
void renderItem (ElephantMarker marker, AgreementSignature e, int page)
 
AgreementSignature entity (Long value)
 
String title (AgreementSignature e)
 
Collection< String > metas (AgreementSignature e)
 
String getTemplateRoot ()
 
Object doVotesCtrl (AgreementSignature e)
 
Object doInterestCtrl (AgreementSignature e)
 
Object doCommentsCtrl (AgreementSignature e)
 
Object doAttachmentsCtrl (AgreementSignature e)
 
Object doFilesCtrl (AgreementSignature e)
 
Object doDescriptionsCtrl (AgreementSignature e)
 
Object doPollsCtrl (AgreementSignature e)
 
String getItemLink (AgreementSignature e)
 
String getReadAllLink ()
 
String getRestrictedLink ()
 
- Protected Member Functions inherited from org.turro.jpa.content.EntityItemContentIterator< E, ID >
void prepareControls (E entity, int page)
 
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.collections.CollectionHtmlIterator< E, ID >
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)
 
ID getIdentifier ()
 
void onRenderItem (E e)
 
boolean isValid (E e)
 
ID parseId (String value)
 
String stringId (ID value)
 

Additional Inherited Members

- Static Public Attributes inherited from org.turro.action.content.IContentIterator
static String PRELOAD_TMPL = "#preload"
 
- Protected Attributes inherited from org.turro.collections.CollectionHtmlIterator< E, ID >
HTMLHelper html
 
IConstructor constructor
 
ElephantMarker marker
 
- Protected Attributes inherited from org.turro.collections.CollectionIterator< E, ID >
List< E > items
 
int _total = -1
 

Detailed Description

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

Definition at line 36 of file AgreementContentIterator.java.

Constructor & Destructor Documentation

◆ AgreementContentIterator()

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

Definition at line 38 of file AgreementContentIterator.java.

38  {
39  super(AgreementsUtil.notSigned(contact), constructor, writer, contact, mail, pubPath);
40  }
Here is the call graph for this function:

Member Function Documentation

◆ doAttachmentsCtrl()

Object org.turro.content.AgreementContentIterator.doAttachmentsCtrl ( AgreementSignature  e)
protected

Definition at line 101 of file AgreementContentIterator.java.

101  {
102  return null;
103  }

◆ doCommentsCtrl()

Object org.turro.content.AgreementContentIterator.doCommentsCtrl ( AgreementSignature  e)
protected

Definition at line 96 of file AgreementContentIterator.java.

96  {
97  return null;
98  }

◆ doDescriptionsCtrl()

Object org.turro.content.AgreementContentIterator.doDescriptionsCtrl ( AgreementSignature  e)
protected

Definition at line 111 of file AgreementContentIterator.java.

111  {
112  return null;
113  }

◆ doFilesCtrl()

Object org.turro.content.AgreementContentIterator.doFilesCtrl ( AgreementSignature  e)
protected

Definition at line 106 of file AgreementContentIterator.java.

106  {
107  return null;
108  }

◆ doInterestCtrl()

Object org.turro.content.AgreementContentIterator.doInterestCtrl ( AgreementSignature  e)
protected

Definition at line 91 of file AgreementContentIterator.java.

91  {
92  return null;
93  }

◆ doPollsCtrl()

Object org.turro.content.AgreementContentIterator.doPollsCtrl ( AgreementSignature  e)
protected

Definition at line 116 of file AgreementContentIterator.java.

116  {
117  return null;
118  }

◆ doVotesCtrl()

Object org.turro.content.AgreementContentIterator.doVotesCtrl ( AgreementSignature  e)
protected

Definition at line 86 of file AgreementContentIterator.java.

86  {
87  return null;
88  }

◆ entity()

AgreementSignature org.turro.content.AgreementContentIterator.entity ( Long  value)
protected

Definition at line 57 of file AgreementContentIterator.java.

57  {
58  for(AgreementSignature w : collection) {
59  if(w.getId().equals(value)) {
60  return w;
61  }
62  }
63  return null;
64  }

◆ getItemLink()

String org.turro.content.AgreementContentIterator.getItemLink ( AgreementSignature  e)
protected

Definition at line 121 of file AgreementContentIterator.java.

121  {
122  return getReadAllLink() + "?item=" + e.getId();
123  }
Here is the call graph for this function:

◆ getReadAllLink()

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

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

Definition at line 126 of file AgreementContentIterator.java.

126  {
127  if(Strings.isBlank(getContextPath())) {
128  return getRestrictedLink();
129  }
130  return getContextPath();
131  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getRestrictedLink()

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

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

Definition at line 134 of file AgreementContentIterator.java.

134  {
135  return "/user/myagreements";
136  }
Here is the caller graph for this function:

◆ getTemplateRoot()

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

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

Definition at line 81 of file AgreementContentIterator.java.

81  {
82  return isMail() ? "content/newsletter/sections/agreements" : "agreement";
83  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ metas()

Collection<String> org.turro.content.AgreementContentIterator.metas ( AgreementSignature  e)
protected

Definition at line 76 of file AgreementContentIterator.java.

76  {
77  return Collections.EMPTY_LIST;
78  }

◆ renderItem()

void org.turro.content.AgreementContentIterator.renderItem ( ElephantMarker  marker,
AgreementSignature  e,
int  page 
)
protected

Definition at line 50 of file AgreementContentIterator.java.

Here is the call graph for this function:

◆ renderSummary()

void org.turro.content.AgreementContentIterator.renderSummary ( ElephantMarker  marker,
AgreementSignature  e,
int  page 
)
protected

Definition at line 43 of file AgreementContentIterator.java.

43  {
44  marker.put("signature", e);
45  prepareValues(e, page);
47  }
Here is the call graph for this function:

◆ title()

String org.turro.content.AgreementContentIterator.title ( AgreementSignature  e)
protected

Definition at line 71 of file AgreementContentIterator.java.

71  {
72  return "/**/";
73  }

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