BrightSide Workbench Full Report + Source Code
org.turro.parser.processor.ContactsProcessor Class Reference
Inheritance diagram for org.turro.parser.processor.ContactsProcessor:
Collaboration diagram for org.turro.parser.processor.ContactsProcessor:

Public Member Functions

String getName ()
 
- Public Member Functions inherited from org.turro.parser.processor.AbstractMacroProcessor
 AbstractMacroProcessor ()
 
MacroMap getMacros ()
 
Macro getMacro (String name)
 
void process (MacroProcessorContext context)
 

Protected Member Functions

void doProcess (MacroProcessorContext context)
 
void explainMacros (MacroMap macros)
 
- Protected Member Functions inherited from org.turro.parser.processor.AbstractMacroProcessor
void prepareProperties (ElephantMarker marker, String properties)
 

Additional Inherited Members

- Protected Attributes inherited from org.turro.parser.processor.AbstractMacroProcessor
MacroMap macros = new MacroMap()
 

Detailed Description

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

Definition at line 32 of file ContactsProcessor.java.

Member Function Documentation

◆ doProcess()

void org.turro.parser.processor.ContactsProcessor.doProcess ( MacroProcessorContext  context)
protected

Reimplemented from org.turro.parser.processor.AbstractMacroProcessor.

Definition at line 40 of file ContactsProcessor.java.

40  {
41  final MacroAdapter macro = context.getMacro();
42  switch(macro.getName()) {
43  case "directory" -> {
44  DaoHtmlSearch.renderInstance(context.getConstructor());
45  DirectoryContentIterator pci = new DirectoryContentIterator(
46  context.getConstructor(), context.getWriter(),
47  Authentication.getIContact(), false, context.getContextPath(true));
48  pci.setAllowAttachments(true);
49  pci.setAllowFiles(true);
50  pci.setTypes(macro.get("type"));
51  pci.setSyndications(macro.get("syndicationId"));
52  pci.setContactIds(Strings.csvToList(macro.get("contactId")));
53  pci.assignDefaultsByMacro(context);
54  pci.load();
55  pci.render();
56  }
57  }
58  }
Here is the call graph for this function:

◆ explainMacros()

void org.turro.parser.processor.ContactsProcessor.explainMacros ( MacroMap  macros)
protected

Reimplemented from org.turro.parser.processor.AbstractMacroProcessor.

Definition at line 61 of file ContactsProcessor.java.

61  {
62  macros.addMacro("directory")
63  .addParameter(MacroParameter.strict("type", "typed",
64  "companies", "centers", "professionals",
65  "educators", "students", "singletons").multiple())
66  .addParameter(MacroParameter.optional("syndicationId").multiple())
67  .addParameter(MacroParameter.optional("contactId").multiple())
68  .addIterator(12, true, false, false, false)
69  .addTemplate("summary");
70  }

◆ getName()

String org.turro.parser.processor.ContactsProcessor.getName ( )

Reimplemented from org.turro.parser.processor.AbstractMacroProcessor.

Definition at line 35 of file ContactsProcessor.java.

35  {
36  return "Contacts";
37  }

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