BrightSide Workbench Full Report + Source Code
org.turro.forum.ForumContext Class Reference

Public Member Functions

String getAttribute (String attribute)
 
String getAttribute (String attribute, String defaultValue)
 

Static Public Member Functions

static String getForumContextAttribute (String attribute, String defaultValue)
 
static boolean getAllowNew (IConstructor constructor)
 
static String getAllowedRoots (IConstructor constructor)
 
static String getDossierCategories (IConstructor constructor)
 

Detailed Description

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

Definition at line 29 of file ForumContext.java.

Member Function Documentation

◆ getAllowedRoots()

static String org.turro.forum.ForumContext.getAllowedRoots ( IConstructor  constructor)
static

Definition at line 52 of file ForumContext.java.

52  {
53  return getForumContextAttribute("allowed-roots", null);
54  }
static String getForumContextAttribute(String attribute, String defaultValue)
Here is the call graph for this function:

◆ getAllowNew()

static boolean org.turro.forum.ForumContext.getAllowNew ( IConstructor  constructor)
static

Definition at line 47 of file ForumContext.java.

47  {
48  String topicRoles = getForumContextAttribute("topic-roles", "@admin:is|@partner:on|@patron:on|@collaborator:on");
49  return Strings.isBlank(topicRoles) ? false : constructor.isInRole(topicRoles);
50  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getAttribute() [1/2]

String org.turro.forum.ForumContext.getAttribute ( String  attribute)

Definition at line 31 of file ForumContext.java.

31  {
32  return getAttribute(attribute, null);
33  }
String getAttribute(String attribute)

◆ getAttribute() [2/2]

String org.turro.forum.ForumContext.getAttribute ( String  attribute,
String  defaultValue 
)

Definition at line 35 of file ForumContext.java.

35  {
36  return getForumContextAttribute(attribute, defaultValue);
37  }
Here is the call graph for this function:

◆ getDossierCategories()

static String org.turro.forum.ForumContext.getDossierCategories ( IConstructor  constructor)
static

Definition at line 56 of file ForumContext.java.

56  {
57  return getForumContextAttribute("dossier-categories", null);
58  }
Here is the call graph for this function:

◆ getForumContextAttribute()

static String org.turro.forum.ForumContext.getForumContextAttribute ( String  attribute,
String  defaultValue 
)
static

Definition at line 43 of file ForumContext.java.

43  {
44  return ElephantProperties.getContextProperty(FORUM_CONTEXT, attribute, defaultValue);
45  }
Here is the call graph for this function:
Here is the caller graph for this function:

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