◆ AttachHeadlessResults()
org.turro.attach.search.AttachHeadlessResults.AttachHeadlessResults |
( |
| ) |
|
◆ addCriteria()
void org.turro.attach.search.AttachHeadlessResults.addCriteria |
( |
WhereClause |
wc | ) |
|
Definition at line 65 of file AttachHeadlessResults.java.
67 if(Strings.isEmpty(attachValue)) {
71 wc = SQLHelper.getWhereClause(wc,
new String[] {
73 }, (attachValue ==
null ?
"" : attachValue.replaceAll(
"\\*",
"%")));
76 wc.addClause(
"and attachment.validated = false");
79 if(attachPath !=
null) {
80 wc.addClause(
"and UCASE(attachment.path) " +
81 (ckExactPath ?
"=" :
"like") +
83 wc.addNamedValue(
"path", attachPath);
◆ getAttachmentList()
java.util.List<Attachment> org.turro.attach.search.AttachHeadlessResults.getAttachmentList |
( |
| ) |
|
Definition at line 45 of file AttachHeadlessResults.java.
46 Dao dao =
new AttachPU();
47 WhereClause wc =
new WhereClause();
48 wc.addClause(
"select distinct attachment from Attachment as attachment");
49 wc.addClause(
"where 1=1");
51 wc.addClause(
"order by attachment.fileName, attachment.modification DESC");
52 return new AttachmentList(dao.getResultList(wc),
true);
void addCriteria(WhereClause wc)
◆ getAttachPath()
String org.turro.attach.search.AttachHeadlessResults.getAttachPath |
( |
| ) |
|
◆ getAttachValue()
String org.turro.attach.search.AttachHeadlessResults.getAttachValue |
( |
| ) |
|
◆ getCountAttachments()
static long org.turro.attach.search.AttachHeadlessResults.getCountAttachments |
( |
String |
root | ) |
|
|
static |
Definition at line 120 of file AttachHeadlessResults.java.
121 Dao dao =
new AttachPU();
122 return (Long) dao.getSingleResult(
123 " select count(attachment) " +
124 " from Attachment as attachment" +
125 " where attachment.path like '" + root +
"/%'");
◆ getPathList()
java.util.Set<String> org.turro.attach.search.AttachHeadlessResults.getPathList |
( |
String |
currPath | ) |
|
Definition at line 55 of file AttachHeadlessResults.java.
56 Dao dao =
new AttachPU();
57 WhereClause wc =
new WhereClause();
58 wc.addClause(
"select distinct attachment.path from Attachment as attachment");
59 wc.addClause(
"where 1=1");
61 wc.addClause(
"order by attachment.path");
62 return new PathSet(dao.getResultList(wc), currPath,
true);
◆ isCkExactPath()
boolean org.turro.attach.search.AttachHeadlessResults.isCkExactPath |
( |
| ) |
|
◆ isCkNonValidated()
boolean org.turro.attach.search.AttachHeadlessResults.isCkNonValidated |
( |
| ) |
|
◆ markAll()
void org.turro.attach.search.AttachHeadlessResults.markAll |
( |
| ) |
|
◆ setAttachPath()
void org.turro.attach.search.AttachHeadlessResults.setAttachPath |
( |
String |
attachPath | ) |
|
◆ setAttachValue()
void org.turro.attach.search.AttachHeadlessResults.setAttachValue |
( |
String |
attachValue | ) |
|
◆ setCkExactPath()
void org.turro.attach.search.AttachHeadlessResults.setCkExactPath |
( |
boolean |
ckExactPath | ) |
|
◆ setCkNonValidated()
void org.turro.attach.search.AttachHeadlessResults.setCkNonValidated |
( |
boolean |
ckNonValidated | ) |
|
The documentation for this class was generated from the following file: