◆ ProjectGrantProvider()
org.turro.alliance.provider.ProjectGrantProvider.ProjectGrantProvider |
( |
WsMember |
member, |
|
|
String |
reason, |
|
|
Jsons |
criteria |
|
) |
| |
◆ count()
long org.turro.alliance.provider.ProjectGrantProvider.count |
( |
WsMember |
member, |
|
|
String |
reason, |
|
|
Jsons |
criteria |
|
) |
| |
|
protected |
Definition at line 63 of file ProjectGrantProvider.java.
64 String search = criteria.getString(
"search",
"");
65 boolean notSelf = criteria.getBoolean(
"notSelf",
false);
66 return SqlClause.select(
"count(p)").from(
"AxProjectGrant p")
67 .startIf(!Strings.isBlank(search))
68 .whereOrAnd().partial(search,
"p.title")
71 .whereOrAnd().notEqual(
"projectGrantId.memberId", member.getMemberId())
74 .singleResult(Long.class, 0L);
◆ loadData()
Jsons org.turro.alliance.provider.ProjectGrantProvider.loadData |
( |
WsMember |
member, |
|
|
String |
reason, |
|
|
Jsons |
criteria |
|
) |
| |
|
protected |
Definition at line 42 of file ProjectGrantProvider.java.
43 Jsons projectGrants = Jsons.array();
44 String search = criteria.getString(
"search",
"");
45 boolean notSelf = criteria.getBoolean(
"notSelf",
false);
46 SqlClause.select(
"p").from(
"AxProjectGrant p")
47 .startIf(!Strings.isBlank(search))
48 .whereOrAnd().partial(search,
"p.title")
51 .whereOrAnd().notEqual(
"projectGrantId.memberId", member.getMemberId())
53 .orderBy(
"p.endDate desc")
54 .start(criteria.getInt(
"curr", -1)).max(criteria.getInt(
"page", -1))
56 .resultList(AxProjectGrant.class).forEach(projectGrant -> {
57 projectGrants.addValue(Jsons.read(projectGrant.toJson()));
The documentation for this class was generated from the following file: