19 package org.turro.activity;
21 import java.util.Date;
22 import java.util.function.Consumer;
23 import org.turro.attach.db.AttachPU;
24 import org.turro.attach.entity.Attachment;
25 import org.turro.elephant.db.WhereClause;
26 import org.turro.entities.IElephantEntity;
27 import org.turro.jpa.Dao;
28 import org.zkoss.lang.Strings;
43 attachment, iee.
getPath(), attachment.getModification(),
"Attached");
55 public void getAttachments(String path, Date from, Consumer<Attachment> action) {
57 wc.
addClause(
"select attachment from Attachment as attachment");
58 wc.
addClause(
"where attachment.modification >= :date");
60 if(!Strings.isBlank(path)) {
64 getDao().forEach(
Attachment.class, wc, action);
71 private Dao getDao() {
Object getMainEntity(Object entity)
void getAttachments(String path, Date from, Consumer< Attachment > action)
EntityActivitySet getActivities(Date from, String entityPath, String type)
void setSortPath(String sortPath)
void addClause(String clause)
void addNamedValue(String name, Object value)
String getHierarchicalPath()