19 package org.turro.parser;
21 import java.io.IOException;
22 import java.util.Arrays;
23 import java.util.logging.Level;
24 import java.util.logging.Logger;
25 import org.turro.string.ObjectString;
26 import org.turro.string.Strings;
27 import org.turro.annotation.ExternalParser;
28 import org.turro.auth.Authentication;
29 import org.turro.contacts.Contact;
30 import org.turro.contacts.ContactServiceRole;
31 import org.turro.contacts.content.ContactServiceContentIterator;
32 import org.turro.contacts.content.ConvocationContentIterator;
33 import org.turro.contacts.content.DirectoryContentIterator;
34 import org.turro.contacts.content.OldDirectoryContentIterator;
35 import org.turro.contacts.db.ContactsPU;
36 import org.turro.contacts.mydata.MyDataList;
37 import org.turro.contacts.profile.ProfileCtrl;
38 import org.turro.contacts.www.ContactIterator;
39 import org.turro.contacts.zul.register.SignUpCtrl;
40 import org.turro.elephant.context.ElephantContext;
41 import org.turro.elephant.context.IConstructor;
42 import org.turro.elephant.db.WhereClause;
43 import org.turro.jpa.search.DaoHtmlSearch;
44 import org.turro.plugin.contacts.IContact;
45 import org.turro.www.convocation.ConvocationCheck;
46 import org.turro.www.describeit.DescribeItCtrl;
47 import org.turro.www.groupit.GroupsTree;
73 (Integer) ObjectString.parseNativeString(
getToken(1), Integer.class,
true),
82 (Integer) ObjectString.parseNativeString(
getToken(1), Integer.class,
true),
90 out.write(count !=
null ? count +
"" :
"0");
94 (Integer) ObjectString.parseNativeString(
getToken(1), Integer.class,
true),
125 cci.
setPage((Integer) ObjectString.parseNativeString(
getToken(3), Integer.class,
true));
146 dci.
setPage((Integer) ObjectString.parseNativeString(
getToken(2), Integer.class,
true));
159 pci.
setPage((Integer) ObjectString.parseNativeString(
getToken(3), Integer.class,
true));
173 pci.
setPage((Integer) ObjectString.parseNativeString(
getToken(4), Integer.class,
true));
193 csci.
setType(
"all".equals(type) ?
null : type);
194 csci.
setPage((Integer) ObjectString.parseNativeString(
getToken(4), Integer.class,
true));
254 macros.
addMacro(
"contacts-by-group")
258 macros.
addMacro(
"contacts-by-group-summary")
262 macros.
addMacro(
"contacts-connector")
269 macros.
addMacro(
"contacts-connector-summary")
277 macros.
addMacro(
"convocation-check")
287 macros.
addMacro(
"convocation-summary")
291 macros.
addMacro(
"myconvocation-summary")
293 macros.
addMacro(
"public-convocations")
295 macros.
addMacro(
"public-convocation-summary")
342 macros.
addMacro(
"myservice-summary")
346 macros.
addMacro(
"lastservice-summary")
350 macros.
addMacro(
"mylastservice-summary")
363 wc.
addClause(
"select count(c) from Contact as c");
364 if(!Strings.isBlank(syndicationId)) {
365 wc.
addClause(
"join c.syndications as s");
366 wc.
addClause(
"where s.name = :syndication");
373 String summaryTemplate, String fullTemplate, String context,
boolean navigator) {
375 if(context ==
null) {
391 }
catch (IOException ex) {
398 String summaryTemplate, String fullTemplate, String context,
boolean navigator) {
413 }
catch (IOException ex) {
420 String summaryTemplate, String context,
boolean navigator) {
435 }
catch (IOException ex) {
436 Logger.getLogger(ContactsParser.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
449 }
catch (IOException ex) {
455 private boolean checkMyData() {
459 if(contact instanceof
Contact) {
static IContact getIContact()
void setLastEntries(boolean lastEntries)
void setType(String type)
void setRole(ContactServiceRole role)
void setMode(String mode)
void setPublishable(boolean publishable)
void setContactIds(List< String > contactIds)
void setSyndications(List< String > syndications)
void setTypes(Set< DirectoryType > types)
static String getRootWebPath()
static String logMsg(String msg)
void addClause(String clause)
void addNamedValue(String name, Object value)
String parse(IConstructor constructor)
void setTemplate(String template)
void setConstructor(IConstructor constructor)
Object getSingleResultOrNull(SqlClause sc)
void assignDefaultsByName(String name)
void setAllowAttachments(boolean allowAttachments)
void setFullTemplate(String fullTemplate)
void setForceSummary(boolean forceSummary)
void setRestricted(boolean restricted)
void setAllowComments(boolean allowComments)
void setNavigatorBottom(boolean navigatorBottom)
void setSummaryTemplate(String summaryTemplate)
void setNavigatorTop(boolean navigatorTop)
void setAllowFiles(boolean allowFiles)
void fillTree(String path)
static void renderInstance(IConstructor constructor)
String getToken(String name)
void addDefaultsFor(String name, ParserMacroSet macros)
ParserMacro addMacro(String macroName)
ParserMacro addPossibleValue(String value)
void copyParametersFrom(String macroName, ParserMacroSet macros)
ParserMacro addParameter(String name, boolean optional)
void setTemplate(String template)
void renderDescriptions(boolean container)
void setEntityPath(String entityPath)
ElContext getCurrentContext()
void setOut(PrintWriter out)