BrightSide Workbench Full Report + Source Code
org.turro.entities.Faces Class Reference

Public Member Functions

String getPath ()
 
String getWebPath ()
 
String getUrl ()
 
Document getDocument ()
 

Static Public Member Functions

static Faces of (IContact contact)
 
static Faces of (String entityRoot, String id)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 30 of file Faces.java.

Member Function Documentation

◆ getDocument()

Document org.turro.entities.Faces.getDocument ( )

Definition at line 52 of file Faces.java.

52  {
53  return Document.from(ElephantContext.getRealPath(createPath()));
54  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getPath()

String org.turro.entities.Faces.getPath ( )

Definition at line 36 of file Faces.java.

36  {
37  return getDocument().exists() ? createPath() : null;
38  }
Document getDocument()
Definition: Faces.java:52
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getUrl()

String org.turro.entities.Faces.getUrl ( )

Definition at line 46 of file Faces.java.

46  {
47  String path = getPath();
48  return Strings.isBlank(path) ? null :
49  (ElephantContext.getServerUrl("http") + path);
50  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getWebPath()

String org.turro.entities.Faces.getWebPath ( )

Definition at line 40 of file Faces.java.

40  {
41  String path = getPath();
42  return Strings.isBlank(path) ? null :
43  ElephantContext.getRootWebPath() + path;
44  }
Here is the call graph for this function:

◆ of() [1/2]

static Faces org.turro.entities.Faces.of ( IContact  contact)
static

Definition at line 64 of file Faces.java.

64  {
65  return new Faces("contact", contact.getId());
66  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ of() [2/2]

static Faces org.turro.entities.Faces.of ( String  entityRoot,
String  id 
)
static

Definition at line 68 of file Faces.java.

68  {
69  return new Faces(entityRoot, id);
70  }

The documentation for this class was generated from the following file: