BrightSide Workbench Full Report + Source Code
org.turro.contacts.content.ConvocationContentProvider Class Reference
Inheritance diagram for org.turro.contacts.content.ConvocationContentProvider:
Collaboration diagram for org.turro.contacts.content.ConvocationContentProvider:

Public Member Functions

 ConvocationContentProvider ()
 
ContentRenderer loadCommand (MacroCommand macroCommand, IContact contact, String idContext)
 
- Public Member Functions inherited from org.turro.action.content.AbstractContentProvider
List< String > getHelpCommands ()
 
boolean itsMe (String command)
 
ContentRenderer loadCommand (String command, IContact contact, String idContext)
 
List< MacroCommand > getCommands ()
 

Additional Inherited Members

- Protected Attributes inherited from org.turro.action.content.AbstractContentProvider
final List< MacroCommand > commands = new ArrayList<>()
 

Detailed Description

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

Definition at line 36 of file ConvocationContentProvider.java.

Constructor & Destructor Documentation

◆ ConvocationContentProvider()

org.turro.contacts.content.ConvocationContentProvider.ConvocationContentProvider ( )

Definition at line 38 of file ConvocationContentProvider.java.

38  {
39  addCommands();
40  }

Member Function Documentation

◆ loadCommand()

ContentRenderer org.turro.contacts.content.ConvocationContentProvider.loadCommand ( MacroCommand  macroCommand,
IContact  contact,
String  idContext 
)

Reimplemented from org.turro.action.content.AbstractContentProvider.

Definition at line 54 of file ConvocationContentProvider.java.

54  {
55  if(macroCommand.itsMe("convocations(")) {
56  StringWriter sw = new StringWriter();
57  ConvocationContentIterator pi = new ConvocationContentIterator(
58  HeadlessApplication.getInstance().getConstructor(),
59  sw, contact, true,
60  macroCommand.getParameterValue(String.class, "context"));
61  pi.setPage(macroCommand.getParameterValue(Integer.class, "count"));
62  pi.setAllowAttachments(true);
63  pi.setAllowFiles(true);
64  pi.setAllowDescriptions(true);
65  pi.setAllowInterest(true);
66  pi.setAllowVotes(true);
67  pi.setAllowComments(true);
68  pi.setAllowPolls(true);
69  pi.setSummaryTemplate(macroCommand.getParameterValue(String.class, "template"));
70  pi.setMode(macroCommand.getParameterValue(Boolean.class, "future") ? "open" : null);
71  pi.setRestricted(macroCommand.getParameterValue(Boolean.class, "restricted"));
72  pi.setPublishable(macroCommand.getParameterValue(Boolean.class, "public"));
73  pi.setNavigatorTop(false);
74  pi.setNavigatorBottom(false);
75  pi.setSearchOption(false);
76  pi.load();
77  return new ContentRenderer(macroCommand, pi, sw, (IContentIterator iterator, Writer writer) -> {
78  iterator.render();
79  return writer.toString();
80  });
81  }
82  return null;
83  }
Here is the call graph for this function:

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