◆ countCenters()
static long org.turro.contacts.profile.ProfileContext.countCenters |
( |
| ) |
|
|
static |
Definition at line 122 of file ProfileContext.java.
123 if(countCenters ==
null) {
124 countCenters = DaoUtil.count(
new ContactsPU(),
"Contact",
"where type = ?", ContactType.CONTACT_LEARNINGCENTER);
◆ countCompanies()
static long org.turro.contacts.profile.ProfileContext.countCompanies |
( |
| ) |
|
|
static |
Definition at line 92 of file ProfileContext.java.
93 if(countCompanies ==
null) {
94 countCompanies = DaoUtil.count(
new ContactsPU(),
"Contact",
"where type = ?", ContactType.CONTACT_COMPANY);
96 return countCompanies;
◆ countPossibleStudents()
static long org.turro.contacts.profile.ProfileContext.countPossibleStudents |
( |
| ) |
|
|
static |
Definition at line 140 of file ProfileContext.java.
141 if(countPossibleStudents ==
null) {
142 WhereClause wc =
new WhereClause();
143 wc.addClause(
"select count(conn) from Connector conn");
144 wc.addClause(
"left outer join BusinessRelation br on conn.contact = br.contact");
145 wc.addClause(
"where conn.description = 'su_student'");
146 wc.addClause(
"and br is null");
147 countPossibleStudents = DaoUtil.count(
new ContactsPU(), wc);
149 return countPossibleStudents;
◆ countPossibleWorkers()
static long org.turro.contacts.profile.ProfileContext.countPossibleWorkers |
( |
| ) |
|
|
static |
Definition at line 110 of file ProfileContext.java.
111 if(countPossibleWorkers ==
null) {
112 WhereClause wc =
new WhereClause();
113 wc.addClause(
"select count(conn) from Connector conn");
114 wc.addClause(
"left outer join BusinessRelation br on conn.contact = br.contact");
115 wc.addClause(
"where conn.description = 'su_professional'");
116 wc.addClause(
"and br is null");
117 countPossibleWorkers = DaoUtil.count(
new ContactsPU(), wc);
119 return countPossibleWorkers;
◆ countStudents()
static long org.turro.contacts.profile.ProfileContext.countStudents |
( |
| ) |
|
|
static |
Definition at line 129 of file ProfileContext.java.
130 if(countStudents ==
null) {
131 WhereClause wc =
new WhereClause();
132 wc.addClause(
"select count(br) from BusinessRelation br");
133 wc.addInRange(
"where",
"br.startDate",
"br.endDate",
"date",
new Date());
134 FuzzyRelationTypes.isStudent(wc,
"and",
"br");
135 countStudents = DaoUtil.count(
new ContactsPU(), wc);
137 return countStudents;
◆ countWorkers()
static long org.turro.contacts.profile.ProfileContext.countWorkers |
( |
| ) |
|
|
static |
Definition at line 99 of file ProfileContext.java.
100 if(countWorkers ==
null) {
101 WhereClause wc =
new WhereClause();
102 wc.addClause(
"select count(br) from BusinessRelation br");
103 wc.addInRange(
"where",
"br.startDate",
"br.endDate",
"date",
new Date());
104 FuzzyRelationTypes.isWorker(wc,
"and",
"br");
105 countWorkers = DaoUtil.count(
new ContactsPU(), wc);
◆ getAttribute() [1/3]
static String org.turro.contacts.profile.ProfileContext.getAttribute |
( |
String |
attribute | ) |
|
|
static |
◆ getAttribute() [2/3]
static Boolean org.turro.contacts.profile.ProfileContext.getAttribute |
( |
String |
attribute, |
|
|
Boolean |
defaultValue |
|
) |
| |
|
static |
Definition at line 46 of file ProfileContext.java.
47 return ElephantProperties.getContextProperty(PROFILE_CONTEXT, attribute, defaultValue);
◆ getAttribute() [3/3]
static String org.turro.contacts.profile.ProfileContext.getAttribute |
( |
String |
attribute, |
|
|
String |
defaultValue |
|
) |
| |
|
static |
Definition at line 42 of file ProfileContext.java.
43 return ElephantProperties.getContextProperty(PROFILE_CONTEXT, attribute, defaultValue);
◆ getNetworkingRoles()
static String org.turro.contacts.profile.ProfileContext.getNetworkingRoles |
( |
| ) |
|
|
static |
Definition at line 64 of file ProfileContext.java.
65 return getServiceContextAttribute(
"networking-roles",
"@admin:is|@patron:on|@partner:on");
◆ getPremiumNetworkingRoles()
static String org.turro.contacts.profile.ProfileContext.getPremiumNetworkingRoles |
( |
| ) |
|
|
static |
Definition at line 68 of file ProfileContext.java.
69 return getServiceContextAttribute(
"premium-networking-roles",
"@partner:on");
◆ getRequiresCompany()
static boolean org.turro.contacts.profile.ProfileContext.getRequiresCompany |
( |
| ) |
|
|
static |
Definition at line 60 of file ProfileContext.java.
61 return "true".equals(getServiceContextAttribute(
"requires-company",
"true"));
◆ getShowCompletion()
static boolean org.turro.contacts.profile.ProfileContext.getShowCompletion |
( |
| ) |
|
|
static |
Definition at line 56 of file ProfileContext.java.
57 return "true".equals(getServiceContextAttribute(
"show-completion",
"true"));
◆ getWebOnUsers()
static boolean org.turro.contacts.profile.ProfileContext.getWebOnUsers |
( |
| ) |
|
|
static |
Definition at line 52 of file ProfileContext.java.
53 return "true".equals(getServiceContextAttribute(
"web-on-users",
"true"));
◆ hasCenters()
static boolean org.turro.contacts.profile.ProfileContext.hasCenters |
( |
| ) |
|
|
static |
Definition at line 85 of file ProfileContext.java.
87 centers = !DaoUtil.isEmpty(
new ContactsPU(),
"Contact",
"where type = ?", ContactType.CONTACT_LEARNINGCENTER);
◆ hasCompanies()
static boolean org.turro.contacts.profile.ProfileContext.hasCompanies |
( |
| ) |
|
|
static |
Definition at line 78 of file ProfileContext.java.
79 if(companies ==
null) {
80 companies = !DaoUtil.isEmpty(
new ContactsPU(),
"Contact",
"where type = ?", ContactType.CONTACT_COMPANY);
The documentation for this class was generated from the following file: