19 package org.turro.publication.util;
21 import org.turro.string.Strings;
22 import org.turro.auth.Authentication;
23 import org.turro.i18n.I_;
24 import org.turro.jpa.Dao;
25 import org.turro.jpa.entity.DaoEntity;
26 import org.turro.jpa.entity.EntityWebUrls;
27 import org.turro.plugin.contacts.IContact;
28 import org.turro.publication.db.PublicationPU;
29 import org.turro.publication.entity.Publication;
51 return I_.
get(
"Publication");
57 }
catch(Exception ex) {
64 return contact !=
null && contact.
isValid() && contact.
getId().equals(
entity.getIdContact());
72 "/publication/" +
entity.getId(),
73 "/" +
entity.getId() +
"/" + Strings.unpunctuate(
entity.getTitle()).toLowerCase());
static IContact getIContact()
static String get(String msg)
static EntityWebUrl addWebUrl(String entityPath, String url)
static boolean existsEntity(String entityPath)
PublicationWrapper(Publication entity)