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

Public Member Functions

 Profile (Contact contact)
 
 Profile (Contact contact, boolean edit)
 
 Profile (Contact contact, PublishPolicy policy)
 
IContact getContact ()
 
boolean getHasImage ()
 
String getImage ()
 
String getImageOrDefault ()
 
String getEntityPath ()
 
boolean getHasName ()
 
String getName ()
 
String getTradeName ()
 
String getFinalName ()
 
boolean getHasEmail ()
 
String getEmail ()
 
boolean getHasWeb ()
 
String getWeb ()
 
boolean getHasPhone ()
 
String getPhone ()
 
boolean getHasNetwork ()
 
String getNetwork ()
 
boolean getHasAbout ()
 
String getAbout ()
 
boolean getHasDocuments ()
 
RepositoryFile getDocuments ()
 
boolean getHasServices ()
 
Set< ContactServicegetServices ()
 
List< ProfileRelationgetCurrentCompanies ()
 
List< ProfileRelationgetPastCompanies ()
 
List< ProfileRelationgetCompanies ()
 
List< ProfileRelationgetCurrentCenters ()
 
List< ProfileRelationgetPastCenters ()
 
List< ProfileRelationgetLearningCenters ()
 
boolean getHasSkills ()
 
List< SkillgetKnowledge ()
 
List< SkillgetAttitude ()
 
List< SkillgetFunctional ()
 
boolean getHasCSkills ()
 
List< SkillgetSector ()
 
List< SkillgetSpecialty ()
 
boolean getHasJobBoard ()
 
JobBoard getJobBoard ()
 
PublishPolicy getPolicy (Object entity, String element)
 
boolean isEdit ()
 
boolean canBeProfessional ()
 
boolean canBeStudent ()
 
boolean canFollow ()
 
String getFollowCtrl (IConstructor constructor)
 
boolean canEdit ()
 
String linkEdit ()
 
boolean isInNetworking ()
 
boolean isInPremiumNetworking ()
 
boolean isWorker ()
 
boolean isStudent ()
 
boolean isResponsible ()
 
boolean isCompanyHHRR ()
 
boolean isCenterHHRR ()
 
boolean isHHRR ()
 
boolean isNatural ()
 
boolean isJuridical ()
 
boolean isCompany ()
 
boolean isCenter ()
 
boolean isSingleton ()
 
boolean isTranslator ()
 
boolean isLoggedSelf ()
 
boolean isLogged (Predicate< BusinessRelation > predicate)
 
boolean isShowCompletion ()
 
ProfileCompletion getCompletion ()
 
IContactRelation getCompanyRelation ()
 

Static Public Attributes

static final String PHONE = "PhoneProfile"
 

Detailed Description

Constructor & Destructor Documentation

◆ Profile() [1/3]

org.turro.contacts.profile.Profile.Profile ( Contact  contact)

Definition at line 74 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

74  {
75  this(contact, null);
76  }

◆ Profile() [2/3]

org.turro.contacts.profile.Profile.Profile ( Contact  contact,
boolean  edit 
)

Definition at line 78 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

78  {
79  this(contact, null);
80  this.edit = edit;
81  }

◆ Profile() [3/3]

org.turro.contacts.profile.Profile.Profile ( Contact  contact,
PublishPolicy  policy 
)

Definition at line 83 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

83  {
84  this.contact = Contacts.getContact(contact);
85  this.policies = new ProfilePolicies(contact);
86  this.policy = policy == null ? takeRequiredFromLogged() : policy;
87  this.business = contact.getBusinessSet();
88  this.companies = loadCompanies();
89  this.learningCenters = loadLearningCenters();
90  this.knowledge = loadKnowledge();
91  this.functional = loadFunctional();
92  this.attitude = loadAttitude();
93  this.sector = loadSector();
94  this.specialty = loadSpecialty();
95  }
Here is the call graph for this function:

Member Function Documentation

◆ canBeProfessional()

boolean org.turro.contacts.profile.Profile.canBeProfessional ( )

Implements org.turro.plugin.contacts.IProfile.

Definition at line 289 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

289  {
290  return ProfileContext.hasCompanies() && !hasCurrentRelations();
291  }
Here is the call graph for this function:

◆ canBeStudent()

boolean org.turro.contacts.profile.Profile.canBeStudent ( )

Implements org.turro.plugin.contacts.IProfile.

Definition at line 294 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

294  {
295  return ProfileContext.hasCenters() && !hasCurrentRelations();
296  }
Here is the call graph for this function:

◆ canEdit()

boolean org.turro.contacts.profile.Profile.canEdit ( )

◆ canFollow()

boolean org.turro.contacts.profile.Profile.canFollow ( )

Implements org.turro.plugin.contacts.IProfile.

Definition at line 299 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

299  {
300  return !Authentication.isLogged(contact);
301  }
Here is the call graph for this function:

◆ getAbout()

String org.turro.contacts.profile.Profile.getAbout ( )

Implements org.turro.plugin.contacts.IProfile.

Definition at line 188 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

188  {
189  return contact.getCommentValue("#cv");
190  }
String getCommentValue(String key)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getAttitude()

List<Skill> org.turro.contacts.profile.Profile.getAttitude ( )

Definition at line 249 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

249  {
250  return attitude;
251  }

◆ getCompanies()

List<ProfileRelation> org.turro.contacts.profile.Profile.getCompanies ( )

Definition at line 223 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

223  {
224  return isEdit() ? companies : companies.stream().filter(r -> r.isValidated()).collect(Collectors.toList());
225  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getCompanyRelation()

IContactRelation org.turro.contacts.profile.Profile.getCompanyRelation ( )

Implements org.turro.plugin.contacts.IProfile.

Definition at line 461 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

461  {
462  return Relations.companies(contact).getCompanyRelation();
463  }
Here is the call graph for this function:

◆ getCompletion()

ProfileCompletion org.turro.contacts.profile.Profile.getCompletion ( )

Definition at line 400 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

400  {
401  return new ProfileCompletion(this);
402  }
Here is the caller graph for this function:

◆ getContact()

IContact org.turro.contacts.profile.Profile.getContact ( )

Implements org.turro.plugin.contacts.IProfile.

Definition at line 98 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

98  {
99  return contact;
100  }
Here is the caller graph for this function:

◆ getCurrentCenters()

List<ProfileRelation> org.turro.contacts.profile.Profile.getCurrentCenters ( )

Definition at line 227 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

227  {
228  return getLearningCenters().stream().filter(r -> r.isInRange()).collect(Collectors.toList());
229  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getCurrentCompanies()

List<ProfileRelation> org.turro.contacts.profile.Profile.getCurrentCompanies ( )

Definition at line 215 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

215  {
216  return getCompanies().stream().filter(r -> r.isInRange()).collect(Collectors.toList());
217  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getDocuments()

RepositoryFile org.turro.contacts.profile.Profile.getDocuments ( )

Definition at line 203 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

Here is the call graph for this function:

◆ getEmail()

String org.turro.contacts.profile.Profile.getEmail ( )

Implements org.turro.plugin.contacts.IProfile.

Definition at line 148 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

148  {
149  return contact.getEmail();
150  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getEntityPath()

String org.turro.contacts.profile.Profile.getEntityPath ( )

Implements org.turro.plugin.contacts.IProfile.

Definition at line 118 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

118  {
119  return ContactsPU.getObjectPath(contact.getContact());
120  }
Here is the call graph for this function:

◆ getFinalName()

String org.turro.contacts.profile.Profile.getFinalName ( )

◆ getFollowCtrl()

String org.turro.contacts.profile.Profile.getFollowCtrl ( IConstructor  constructor)

Definition at line 303 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

303  {
304  return Entities.getController(contact.getContact()).parseFollowCtrl(constructor);
305  }
Here is the call graph for this function:

◆ getFunctional()

List<Skill> org.turro.contacts.profile.Profile.getFunctional ( )

Definition at line 253 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

253  {
254  return functional;
255  }

◆ getHasAbout()

boolean org.turro.contacts.profile.Profile.getHasAbout ( )

Implements org.turro.plugin.contacts.IProfile.

Definition at line 183 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

Here is the call graph for this function:

◆ getHasCSkills()

boolean org.turro.contacts.profile.Profile.getHasCSkills ( )

Definition at line 257 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

257  {
258  return isJuridical() && (!sector.isEmpty() || !specialty.isEmpty());
259  }
Here is the call graph for this function:

◆ getHasDocuments()

boolean org.turro.contacts.profile.Profile.getHasDocuments ( )

Definition at line 194 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

194  {
195  if(publicDocs == null) {
196  IElephantEntity iee = Entities.getController(contact.getContact());
197  FileAttach files = (FileAttach) iee.getControl(Controls.CTRL_FILES, iee.getPath(), contact);
198  if(files != null) publicDocs = files.getPublishableRepository(Application.getApplication().getConstructor()).getRoot("/public");
199  }
200  return publicDocs != null && publicDocs.hasContent();
201  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getHasEmail()

boolean org.turro.contacts.profile.Profile.getHasEmail ( )

Implements org.turro.plugin.contacts.IProfile.

Definition at line 143 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

143  {
144  return !Strings.isBlank(getEmail()) && (isBusiness() || policies.getPolicy(null, "email").allows(policy));
145  }
PublishPolicy getPolicy(Object obj, String element)
boolean allows(PublishPolicy policy)
Here is the call graph for this function:

◆ getHasImage()

boolean org.turro.contacts.profile.Profile.getHasImage ( )

Implements org.turro.plugin.contacts.IProfile.

Definition at line 103 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

103  {
104  return Files.exists(contact.getFace());
105  }
Here is the call graph for this function:

◆ getHasJobBoard()

boolean org.turro.contacts.profile.Profile.getHasJobBoard ( )

Definition at line 269 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

269  {
270  Contact c = (Contact) contact.getContact();
271  return c.getJobBoard() != null && isStudent();
272  }
Here is the call graph for this function:

◆ getHasName()

boolean org.turro.contacts.profile.Profile.getHasName ( )

Implements org.turro.plugin.contacts.IProfile.

Definition at line 123 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

Here is the call graph for this function:

◆ getHasNetwork()

boolean org.turro.contacts.profile.Profile.getHasNetwork ( )

Implements org.turro.plugin.contacts.IProfile.

Definition at line 173 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

Here is the call graph for this function:

◆ getHasPhone()

boolean org.turro.contacts.profile.Profile.getHasPhone ( )

Implements org.turro.plugin.contacts.IProfile.

Definition at line 163 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

163  {
164  return !Strings.isBlank(getPhone()) && (isBusiness() || policies.getPolicy(null, "phone").allows(policy));
165  }
Here is the call graph for this function:

◆ getHasServices()

boolean org.turro.contacts.profile.Profile.getHasServices ( )

Definition at line 207 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

207  {
208  return !getServices().isEmpty();
209  }
Here is the call graph for this function:

◆ getHasSkills()

boolean org.turro.contacts.profile.Profile.getHasSkills ( )

Definition at line 239 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

239  {
240  return isNatural() &&
241  (!knowledge.isEmpty() || !functional.isEmpty() || !attitude.isEmpty()) &&
242  policies.getPolicy(null, "skills").allows(policy);
243  }
Here is the call graph for this function:

◆ getHasWeb()

boolean org.turro.contacts.profile.Profile.getHasWeb ( )

Implements org.turro.plugin.contacts.IProfile.

Definition at line 153 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

153  {
154  return !Strings.isBlank(getWeb()) && (isBusiness() || ProfileContext.getWebOnUsers());
155  }
Here is the call graph for this function:

◆ getImage()

String org.turro.contacts.profile.Profile.getImage ( )

Implements org.turro.plugin.contacts.IProfile.

Definition at line 108 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

108  {
109  return Images.getImageOrNull(contact.getFace());
110  }
Here is the call graph for this function:

◆ getImageOrDefault()

String org.turro.contacts.profile.Profile.getImageOrDefault ( )

Implements org.turro.plugin.contacts.IProfile.

Definition at line 113 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

113  {
114  return Images.getImageOrDefault(contact.getFace());
115  }
Here is the call graph for this function:

◆ getJobBoard()

JobBoard org.turro.contacts.profile.Profile.getJobBoard ( )

Definition at line 274 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

274  {
275  Contact c = (Contact) contact.getContact();
276  return c.getJobBoard();
277  }
Here is the call graph for this function:

◆ getKnowledge()

List<Skill> org.turro.contacts.profile.Profile.getKnowledge ( )

Definition at line 245 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

245  {
246  return knowledge;
247  }

◆ getLearningCenters()

List<ProfileRelation> org.turro.contacts.profile.Profile.getLearningCenters ( )

Definition at line 235 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

235  {
236  return isEdit() ? learningCenters : learningCenters.stream().filter(r -> r.isValidated()).collect(Collectors.toList());
237  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getName()

String org.turro.contacts.profile.Profile.getName ( )

Implements org.turro.plugin.contacts.IProfile.

Definition at line 128 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

128  {
129  return contact.getName();
130  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getNetwork()

String org.turro.contacts.profile.Profile.getNetwork ( )

Implements org.turro.plugin.contacts.IProfile.

Definition at line 178 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

178  {
179  return contact.getConnector(NETWORK);
180  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getPastCenters()

List<ProfileRelation> org.turro.contacts.profile.Profile.getPastCenters ( )

Definition at line 231 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

231  {
232  return getLearningCenters().stream().filter(r -> !r.isInRange()).collect(Collectors.toList());
233  }
Here is the call graph for this function:

◆ getPastCompanies()

List<ProfileRelation> org.turro.contacts.profile.Profile.getPastCompanies ( )

Definition at line 219 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

219  {
220  return getCompanies().stream().filter(r -> !r.isInRange()).collect(Collectors.toList());
221  }
Here is the call graph for this function:

◆ getPhone()

String org.turro.contacts.profile.Profile.getPhone ( )

Implements org.turro.plugin.contacts.IProfile.

Definition at line 168 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getPolicy()

PublishPolicy org.turro.contacts.profile.Profile.getPolicy ( Object  entity,
String  element 
)

Definition at line 279 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

279  {
280  return policies.getPolicy(entity, element);
281  }
Here is the call graph for this function:

◆ getSector()

List<Skill> org.turro.contacts.profile.Profile.getSector ( )

Definition at line 261 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

261  {
262  return sector;
263  }

◆ getServices()

Set<ContactService> org.turro.contacts.profile.Profile.getServices ( )

Definition at line 211 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

211  {
212  return ((Contact) contact.getContact()).getServices();
213  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getSpecialty()

List<Skill> org.turro.contacts.profile.Profile.getSpecialty ( )

Definition at line 265 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

265  {
266  return specialty;
267  }

◆ getTradeName()

String org.turro.contacts.profile.Profile.getTradeName ( )

Implements org.turro.plugin.contacts.IProfile.

Definition at line 133 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

133  {
134  return contact.getConnector(IUser.CONNECTOR_TRADE);
135  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getWeb()

String org.turro.contacts.profile.Profile.getWeb ( )

Implements org.turro.plugin.contacts.IProfile.

Definition at line 158 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

158  {
159  return contact.getConnector(WEB);
160  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isCenter()

boolean org.turro.contacts.profile.Profile.isCenter ( )

Implements org.turro.plugin.contacts.IProfile.

Definition at line 371 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

371  {
372  return contact.isCenter();
373  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isCenterHHRR()

boolean org.turro.contacts.profile.Profile.isCenterHHRR ( )

Implements org.turro.plugin.contacts.IProfile.

Definition at line 348 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

348  {
349  return getCurrentCenters().stream().anyMatch(r -> r.getRelation().isHHRR());
350  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isCompany()

boolean org.turro.contacts.profile.Profile.isCompany ( )

Implements org.turro.plugin.contacts.IProfile.

Definition at line 366 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

366  {
367  return contact.isCompany();
368  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isCompanyHHRR()

boolean org.turro.contacts.profile.Profile.isCompanyHHRR ( )

Implements org.turro.plugin.contacts.IProfile.

Definition at line 343 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

343  {
344  return getCurrentCompanies().stream().anyMatch(r -> r.getRelation().isHHRR());
345  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isEdit()

boolean org.turro.contacts.profile.Profile.isEdit ( )

Implements org.turro.plugin.contacts.IProfile.

Definition at line 284 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

284  {
285  return edit;
286  }
Here is the caller graph for this function:

◆ isHHRR()

boolean org.turro.contacts.profile.Profile.isHHRR ( )

◆ isInNetworking()

boolean org.turro.contacts.profile.Profile.isInNetworking ( )

Implements org.turro.plugin.contacts.IProfile.

Definition at line 318 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

318  {
319  return contact.getPermissions().isInRole(ProfileContext.getNetworkingRoles());
320  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isInPremiumNetworking()

boolean org.turro.contacts.profile.Profile.isInPremiumNetworking ( )

Implements org.turro.plugin.contacts.IProfile.

Definition at line 323 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

323  {
324  return contact.getPermissions().isInRole(ProfileContext.getPremiumNetworkingRoles());
325  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isJuridical()

boolean org.turro.contacts.profile.Profile.isJuridical ( )

Definition at line 361 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

361  {
362  return contact.isCompany() || contact.isCenter();
363  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isLogged()

boolean org.turro.contacts.profile.Profile.isLogged ( Predicate< BusinessRelation predicate)

Definition at line 389 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

389  {
390  return Authentication.hasContact() &&
391  ((Contact) contact.getContact()).getWorkerSet()
392  .isByCondition((Contact) Authentication.getIContact().getContact(), predicate);
393  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isLoggedSelf()

boolean org.turro.contacts.profile.Profile.isLoggedSelf ( )

Definition at line 385 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

385  {
386  return Authentication.isLogged(contact);
387  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isNatural()

boolean org.turro.contacts.profile.Profile.isNatural ( )

Definition at line 357 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

357  {
358  return !isJuridical();
359  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isResponsible()

boolean org.turro.contacts.profile.Profile.isResponsible ( )

Implements org.turro.plugin.contacts.IProfile.

Definition at line 338 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

338  {
339  return getCurrentCenters().stream().anyMatch(r -> r.getRelation().isResponsible());
340  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isShowCompletion()

boolean org.turro.contacts.profile.Profile.isShowCompletion ( )

Implements org.turro.plugin.contacts.IProfile.

Definition at line 396 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

396  {
397  return ProfileContext.getShowCompletion();
398  }
Here is the call graph for this function:

◆ isSingleton()

boolean org.turro.contacts.profile.Profile.isSingleton ( )

Implements org.turro.plugin.contacts.IProfile.

Definition at line 376 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

376  {
377  return getCurrentCompanies().isEmpty() && getCurrentCenters().isEmpty();
378  }
Here is the call graph for this function:

◆ isStudent()

boolean org.turro.contacts.profile.Profile.isStudent ( )

Implements org.turro.plugin.contacts.IProfile.

Definition at line 333 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

333  {
334  return !getCurrentCenters().isEmpty();
335  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isTranslator()

boolean org.turro.contacts.profile.Profile.isTranslator ( )

Implements org.turro.plugin.contacts.IProfile.

Definition at line 381 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

381  {
382  return !Strings.isBlank(contact.getLangTranslator());
383  }
Here is the call graph for this function:

◆ isWorker()

boolean org.turro.contacts.profile.Profile.isWorker ( )

Implements org.turro.plugin.contacts.IProfile.

Definition at line 328 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

328  {
329  return !getCurrentCompanies().isEmpty();
330  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ linkEdit()

String org.turro.contacts.profile.Profile.linkEdit ( )

Definition at line 312 of file BrightSide/contacts/src/main/java/org/turro/contacts/profile/Profile.java.

312  {
313  return contact.isUser() ? "/user/profile" :
314  "/user/profile/editc?" + Actions.createRightNowAction("contact=" + contact.getId());
315  }
Here is the call graph for this function:

Member Data Documentation

◆ PHONE

final String org.turro.contacts.profile.Profile.PHONE = "PhoneProfile"
static

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