19 package org.turro.publication.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.elephant.context.Application;
27 import org.turro.elephant.context.ElephantContext;
28 import org.turro.elephant.db.WhereClause;
29 import org.turro.elephant.impl.repository.Repository;
30 import org.turro.elephant.impl.repository.RepositoryFile;
31 import org.turro.elephant.sitemap.IElephantSitemap;
32 import org.turro.elephant.sitemap.Sitemaps;
33 import org.turro.file.util.FileAttach;
34 import org.turro.jpa.Dao;
35 import org.turro.jpa.entity.EntityWebUrls;
36 import org.turro.publication.db.PublicationPU;
37 import org.turro.publication.entity.Publication;
50 if(!Strings.isBlank(path)) {
53 wc.
addClause(
"select p.id from Publication as p");
54 wc.
addClause(
"where p.publicationGroup.publishable = TRUE");
55 wc.
addClause(
"and p.publicationCategory.publishable = TRUE");
57 for(Long pubId : (List<Long>) dao.getResultList(wc)) {
60 if(!Strings.isBlank(ewu)) {
66 sml.addImage(rf.getWebPath());
69 sml.addImage(rf.getWebPath());
72 sml.addImage(rf.getWebPath());
IConstructor getConstructor()
static Application getApplication()
static String getRootWebPath()
static String getEntityWebContext(String path)
void addClause(String clause)
Set< RepositoryFile > getRepositoryFiles(String pattern)
Repository getPublishableRepository(IConstructor constructor)
static String getUrlFromEntity(Object entity)
static String getObjectPath(Object object)
Collection< Sitemaps.SitemapLink > getLinks()