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

Public Member Functions

String asString ()
 
Path asPath ()
 
Folder asFolder ()
 
StandardFolder real ()
 
StandardFolder entity (Object entity)
 
StandardFolder entityPath (String entityPath)
 
StandardFolder folder (String folder)
 

Static Public Member Functions

static Folder publishable (String entityPath)
 
static Folder internal (String entityPath)
 
static Folder publishable (String entityPath, String folder)
 
static Folder internal (String entityPath, String folder)
 
static StandardFolder publishable ()
 
static StandardFolder internal ()
 

Detailed Description

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

Definition at line 30 of file StandardFolder.java.

Member Function Documentation

◆ asFolder()

Folder org.turro.entities.StandardFolder.asFolder ( )

Definition at line 62 of file StandardFolder.java.

62  {
63  return Folder.from(path);
64  }

◆ asPath()

Path org.turro.entities.StandardFolder.asPath ( )

Definition at line 58 of file StandardFolder.java.

58  {
59  return Path.of(path);
60  }

◆ asString()

String org.turro.entities.StandardFolder.asString ( )

Definition at line 54 of file StandardFolder.java.

54  {
55  return path;
56  }

◆ entity()

StandardFolder org.turro.entities.StandardFolder.entity ( Object  entity)

Definition at line 73 of file StandardFolder.java.

73  {
74  if(entity instanceof IContact contact) entity = contact.getContact();
75  path = path + Entities.getController(entity).getPath();
76  return this;
77  }
StandardFolder entity(Object entity)
Here is the call graph for this function:

◆ entityPath()

StandardFolder org.turro.entities.StandardFolder.entityPath ( String  entityPath)

Definition at line 79 of file StandardFolder.java.

79  {
80  path = path + entityPath;
81  return this;
82  }
StandardFolder entityPath(String entityPath)
Here is the caller graph for this function:

◆ folder()

StandardFolder org.turro.entities.StandardFolder.folder ( String  folder)

Definition at line 84 of file StandardFolder.java.

84  {
85  path = path + "/" + folder;
86  return this;
87  }
StandardFolder folder(String folder)
Here is the caller graph for this function:

◆ internal() [1/3]

static StandardFolder org.turro.entities.StandardFolder.internal ( )
static

Definition at line 95 of file StandardFolder.java.

95  {
96  return new StandardFolder("/WEB-INF/files");
97  }

◆ internal() [2/3]

static Folder org.turro.entities.StandardFolder.internal ( String  entityPath)
static

Definition at line 40 of file StandardFolder.java.

40  {
41  return Folder.from(Path.of(ElephantContext.getRealPath(INTERNAL), entityPath));
42  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ internal() [3/3]

static Folder org.turro.entities.StandardFolder.internal ( String  entityPath,
String  folder 
)
static

Definition at line 48 of file StandardFolder.java.

48  {
49  return Folder.from(Path.of(ElephantContext.getRealPath(INTERNAL), entityPath, folder));
50  }
Here is the call graph for this function:

◆ publishable() [1/3]

static StandardFolder org.turro.entities.StandardFolder.publishable ( )
static

Definition at line 91 of file StandardFolder.java.

91  {
92  return new StandardFolder("/_internal/files");
93  }

◆ publishable() [2/3]

static Folder org.turro.entities.StandardFolder.publishable ( String  entityPath)
static

Definition at line 36 of file StandardFolder.java.

36  {
37  return Folder.from(Path.of(ElephantContext.getRealPath(PUBLISHABLE), entityPath));
38  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ publishable() [3/3]

static Folder org.turro.entities.StandardFolder.publishable ( String  entityPath,
String  folder 
)
static

Definition at line 44 of file StandardFolder.java.

44  {
45  return Folder.from(Path.of(ElephantContext.getRealPath(PUBLISHABLE), entityPath, folder));
46  }
Here is the call graph for this function:

◆ real()

StandardFolder org.turro.entities.StandardFolder.real ( )

Definition at line 68 of file StandardFolder.java.

68  {
69  path = ElephantContext.getRealPath(path);
70  return this;
71  }
Here is the call graph for this function:

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