19 package org.turro.entities;
21 import org.turro.elephant.context.ElephantContext;
22 import org.turro.file.Document;
23 import org.turro.plugin.contacts.IContact;
24 import org.turro.string.Strings;
32 private final static String
33 PUBLIC =
"/_internal/files",
34 FACE =
"/profile/face.png";
37 return getDocument().exists() ? createPath() :
null;
42 return Strings.isBlank(path) ? null :
48 return Strings.isBlank(path) ? null :
58 private String createPath() {
59 return PUBLIC +
"/" + entityRoot +
"/" +
id + FACE;
68 public static Faces of(String entityRoot, String
id) {
69 return new Faces(entityRoot,
id);
72 private final String entityRoot, id;
74 private Faces(String entityRoot, String
id) {
75 this.entityRoot = entityRoot;
static String getRealPath(String path)
static String getServerUrl(String scheme)
static String getRootWebPath()
static Faces of(IContact contact)
static Faces of(String entityRoot, String id)