19 package org.turro.dossier.util;
21 import java.util.ArrayList;
22 import java.util.Collection;
23 import java.util.List;
24 import org.turro.string.Strings;
25 import org.turro.annotation.ElephantSitemap;
26 import org.turro.dossier.db.DossierPU;
27 import org.turro.dossier.entity.Dossier;
28 import org.turro.dossier.entity.DossierType;
29 import org.turro.elephant.context.Application;
30 import org.turro.elephant.context.ElephantContext;
31 import org.turro.elephant.db.WhereClause;
32 import org.turro.elephant.impl.repository.Repository;
33 import org.turro.elephant.impl.repository.RepositoryFile;
34 import org.turro.elephant.sitemap.IElephantSitemap;
35 import org.turro.elephant.sitemap.Sitemaps;
36 import org.turro.file.util.FileAttach;
37 import org.turro.jpa.Dao;
38 import org.turro.jpa.entity.EntityWebUrls;
51 if(!Strings.isBlank(path)) {
54 wc.
addClause(
"select d.id from Dossier as d");
55 wc.
addClause(
"where d.category.knowledgeBase = TRUE");
58 for(Long dossierId : (List<Long>) dao.getResultList(wc)) {
61 if(!Strings.isBlank(ewu)) {
67 sml.addImage(rf.getWebPath());
74 if(!Strings.isBlank(path)) {
77 wc.
addClause(
"select d.id from Dossier as d");
78 wc.
addClause(
"where d.category.ownsProjects = TRUE");
83 for(Long dossierId : (List<Long>) dao.getResultList(wc)) {
86 if(!Strings.isBlank(ewu)) {
92 sml.addImage(rf.getWebPath());
static String getObjectPath(Object object)
Collection< Sitemaps.SitemapLink > getLinks()
IConstructor getConstructor()
static Application getApplication()
static String getRootWebPath()
static String getEntityWebContext(String path)
void addClause(String clause)
void addNamedValue(String name, Object value)
Set< RepositoryFile > getRepositoryFiles(String pattern)
Repository getPublishableRepository(IConstructor constructor)
static String getUrlFromEntity(Object entity)