◆ ContractIterator()
org.turro.financials.contract.www.ContractIterator.ContractIterator |
( |
IConstructor |
constructor, |
|
|
String |
pubPath |
|
) |
| |
Definition at line 52 of file ContractIterator.java.
53 super(
new FinancialsPU(),
new ElephantMarker(
constructor));
54 this.pubPath = pubPath;
55 this.checkParticipation =
true;
◆ count()
int org.turro.financials.contract.www.ContractIterator.count |
( |
| ) |
|
◆ entity()
Contract org.turro.financials.contract.www.ContractIterator.entity |
( |
Long |
value | ) |
|
|
protected |
◆ entityRoot()
String org.turro.financials.contract.www.ContractIterator.entityRoot |
( |
| ) |
|
|
protected |
◆ getActualParameters()
String org.turro.financials.contract.www.ContractIterator.getActualParameters |
( |
| ) |
|
Definition at line 113 of file ContractIterator.java.
114 return Strings.isBlank(actualParameters) ?
"?a=b" : actualParameters;
◆ getCountClause()
WhereClause org.turro.financials.contract.www.ContractIterator.getCountClause |
( |
| ) |
|
|
protected |
◆ getType()
int org.turro.financials.contract.www.ContractIterator.getType |
( |
| ) |
|
◆ getWhereClause()
WhereClause org.turro.financials.contract.www.ContractIterator.getWhereClause |
( |
| ) |
|
|
protected |
Reimplemented from org.turro.jpa.iterator.DaoIterator< E, ID >.
Definition at line 91 of file ContractIterator.java.
92 WhereClause wc =
new WhereClause();
93 wc.addClause(
"select distinct ctc from Contract ctc");
94 if(checkParticipation) {
95 wc.addClause(
"left join ctc.participants par");
98 wc.addClause(
"order by ctc.name");
◆ isCheckParticipation()
boolean org.turro.financials.contract.www.ContractIterator.isCheckParticipation |
( |
| ) |
|
◆ isPublicOnly()
boolean org.turro.financials.contract.www.ContractIterator.isPublicOnly |
( |
| ) |
|
◆ isValid()
boolean org.turro.financials.contract.www.ContractIterator.isValid |
( |
Contract |
e | ) |
|
|
protected |
Definition at line 146 of file ContractIterator.java.
147 return super.isValid(e) && (!checkParticipation || e.getIParticipants().contains(Authentication.getIContact()));
◆ items()
Collection<Contract> org.turro.financials.contract.www.ContractIterator.items |
( |
| ) |
|
◆ metas()
Collection<String> org.turro.financials.contract.www.ContractIterator.metas |
( |
Contract |
e | ) |
|
|
protected |
Definition at line 212 of file ContractIterator.java.
213 ArrayList<RepositoryFile> files =
new ArrayList<>();
214 String path = getItemLink(e, 0);
215 if(!SocialImageMap.hasImage(path)) {
216 FileAttach fa =
new FileAttach(FinancialsPU.getObjectPath(e));
217 Repository repository = fa.getPublishableRepository(
constructor);
218 files.addAll(repository.getRepositoryFiles(
"*_social.png,*_social.jpg"));
219 files.addAll(repository.getRepositoryFiles(
"*.png,*.jpg"));
221 SocialNet sn =
new SocialNet(path, e.getName(), e.getFullDescription(), files);
222 return sn.getMetas();
◆ renderItem()
void org.turro.financials.contract.www.ContractIterator.renderItem |
( |
ElephantMarker |
marker, |
|
|
Contract |
e, |
|
|
int |
page |
|
) |
| |
|
protected |
Definition at line 128 of file ContractIterator.java.
130 prepareValues(e, page,
false);
132 actualParameters = getPageLink(page);
void process(String rootTmpl, String tmpl)
Object put(Object key, Object value)
◆ renderSummary()
void org.turro.financials.contract.www.ContractIterator.renderSummary |
( |
ElephantMarker |
marker, |
|
|
Contract |
e, |
|
|
int |
page |
|
) |
| |
|
protected |
Definition at line 118 of file ContractIterator.java.
121 prepareValues(e, page,
false);
124 actualParameters = getPageLink(page);
String getSummaryTemplate()
◆ setCheckParticipation()
void org.turro.financials.contract.www.ContractIterator.setCheckParticipation |
( |
boolean |
checkParticipation | ) |
|
◆ setPublicOnly()
void org.turro.financials.contract.www.ContractIterator.setPublicOnly |
( |
boolean |
publicOnly | ) |
|
◆ setType()
void org.turro.financials.contract.www.ContractIterator.setType |
( |
int |
type | ) |
|
◆ title()
String org.turro.financials.contract.www.ContractIterator.title |
( |
Contract |
e | ) |
|
|
protected |
The documentation for this class was generated from the following file: