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

Public Member Functions

String getId ()
 
String getEmailAccount ()
 
void setEmailAccount (String emailAccount)
 
ContactType getType ()
 
void setType (ContactType type)
 
ComplexName getComplexName ()
 
void setComplexName (ComplexName complexName)
 
String getOwner ()
 
void setOwner (String owner)
 
boolean isOnlyOwner ()
 
void setOnlyOwner (boolean onlyOwner)
 
boolean isWebapp ()
 
void setWebapp (boolean webapp)
 
boolean isUserMenu ()
 
void setUserMenu (boolean userMenu)
 
boolean isDeactivated ()
 
void setDeactivated (boolean deactivated)
 
boolean isInactive ()
 
void setInactive (boolean inactive)
 
String getName ()
 
void setName (String name)
 
Currency getCurrency ()
 
void setCurrency (Currency currency)
 
Locale getLocale ()
 
void setLocale (Locale locale)
 
String getLogin ()
 
void setLogin (String login)
 
String getPass1 ()
 
void setPass1 (String pass1)
 
String getPass2 ()
 
void setPass2 (String pass2)
 
String getGlobalIdentifier ()
 
void setGlobalIdentifier (String globalIdentifier)
 
TimeZone getTimeZone ()
 
void setTimeZone (TimeZone timeZone)
 
String getGrouping ()
 
void setGrouping (String grouping)
 
String getIdActivity ()
 
void setIdActivity (String idActivity)
 
double getBilling ()
 
void setBilling (double billing)
 
double getStaff ()
 
void setStaff (double staff)
 
double getLatitude ()
 
void setLatitude (double latitude)
 
double getLongitude ()
 
void setLongitude (double longitude)
 
String getLangTranslator ()
 
void setLangTranslator (String langTranslator)
 
boolean isCloudAdmin ()
 
void setCloudAdmin (boolean cloudAdmin)
 
JobBoard getJobBoard ()
 
void setJobBoard (JobBoard jobBoard)
 
Set< AddressgetAddresses ()
 
void setAddresses (Set< Address > addresses)
 
Set< ConnectorgetConnectors ()
 
void setConnectors (Set< Connector > connectors)
 
Set< BusinessRelationgetBusinessRelations ()
 
void setBusinessRelations (Set< BusinessRelation > businessRelations)
 
Set< BusinessRelationgetWorkerRelations ()
 
void setWorkerRelations (Set< BusinessRelation > workerRelations)
 
Set< SyndicationgetSyndications ()
 
void setSyndications (Set< Syndication > syndications)
 
Set< CommentgetComments ()
 
void setComments (Set< Comment > comments)
 
Set< FieldValuegetFieldValues ()
 
void setFieldValues (Set< FieldValue > fieldValues)
 
Set< ContactServicegetServices ()
 
void setServices (Set< ContactService > services)
 
Object entityId ()
 
boolean isEmpty ()
 
String getFriendly ()
 
String getFormal ()
 
void setPlainPass (String text)
 
IContact getIContact ()
 
boolean hasLocation ()
 
boolean isWebUser ()
 
String getTradeName ()
 
Map< String, ConnectorgetConnectorMap ()
 
Map< String, AddressgetAddressMap ()
 
Map< String, FieldValuegetFieldMap ()
 
Map< String, CommentgetCommentMap ()
 
Map< String, SyndicationgetSyndicationMap ()
 
String getComment (IConstructor constructor, String key)
 
String getFullName ()
 
void setAttribute (String key, Object value)
 
Object getAttribute (String key)
 
MyDataList getMyData ()
 
void checkEmptyness ()
 
String getTagsString ()
 
String getRolesString ()
 
String getSocialGroupsString ()
 
String getLocaleString (Locale currLocale)
 
boolean isValidLogin ()
 
boolean getCanShow (String userId)
 
Business getBusinessSet ()
 
Workers getWorkerSet ()
 
Contact getBusiness ()
 
List< ContactgetBusinessList ()
 
List< ContactgetCoworkers ()
 
List< ContactgetCoworkers (Contact business)
 
List< ContactgetWorkers ()
 
boolean isInBusiness (Contact worker)
 
boolean isInBusiness (IContact worker)
 
Object getObject (String key)
 
void setObject (String key, Serializable value)
 
Profile getProfile ()
 
Profile getEditProfile ()
 
MappingSet getSerializerMappings ()
 
int hashCode ()
 
boolean equals (Object obj)
 
- Public Member Functions inherited from org.turro.jpa.entity.IDaoEntity
default boolean isNew ()
 
default void prepareSave ()
 
default void prepareDelete ()
 
default void removeEmpties ()
 
default Collection< Collection > collections ()
 

Protected Member Functions

void setId (String id)
 

Detailed Description

Definition at line 52 of file Contact.java.

Member Function Documentation

◆ checkEmptyness()

void org.turro.contacts.Contact.checkEmptyness ( )

Definition at line 564 of file Contact.java.

564  {
565  EntityCollections.entities(getAddresses()).removeEmpties();
566  EntityCollections.entities(getConnectors()).removeEmpties();
567  EntityCollections.entities(getSyndications()).removeEmpties();
568  EntityCollections.entities(getBusinessRelations()).removeEmpties();
569  EntityCollections.entities(getComments()).removeEmpties();
570  EntityCollections.entities(getServices()).removeEmpties();
571  }
Set< BusinessRelation > getBusinessRelations()
Definition: Contact.java:379
Set< Syndication > getSyndications()
Definition: Contact.java:403
Set< ContactService > getServices()
Definition: Contact.java:439
Set< Comment > getComments()
Definition: Contact.java:415
Set< Address > getAddresses()
Definition: Contact.java:355
Set< Connector > getConnectors()
Definition: Contact.java:367
Here is the call graph for this function:

◆ entityId()

Object org.turro.contacts.Contact.entityId ( )

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 454 of file Contact.java.

454  {
455  return id;
456  }

◆ equals()

boolean org.turro.contacts.Contact.equals ( Object  obj)

Definition at line 761 of file Contact.java.

761  {
762  if (this == obj) {
763  return true;
764  }
765  if (obj == null) {
766  return false;
767  }
768  if (getClass() != obj.getClass()) {
769  return false;
770  }
771  final Contact other = (Contact) obj;
772  if (!Objects.equals(this.id, other.id)) {
773  return false;
774  }
775  return true;
776  }

◆ getAddresses()

Set<Address> org.turro.contacts.Contact.getAddresses ( )

Definition at line 355 of file Contact.java.

355  {
356  Dao dao = new ContactsPU();
357  if(!Strings.isBlank(id) && dao.isNotLoaded(addresses)) {
358  addresses = dao.lazyLoader(Contact.class, this, "addresses").addresses;
359  }
360  return addresses;
361  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getAddressMap()

Map<String, Address> org.turro.contacts.Contact.getAddressMap ( )

Definition at line 503 of file Contact.java.

503  {
504  return new AddressMap(this);
505  }
Here is the caller graph for this function:

◆ getAttribute()

Object org.turro.contacts.Contact.getAttribute ( String  key)

Definition at line 553 of file Contact.java.

553  {
554  return attributes.get(key);
555  }
Here is the caller graph for this function:

◆ getBilling()

double org.turro.contacts.Contact.getBilling ( )

Definition at line 299 of file Contact.java.

299  {
300  return billing;
301  }

◆ getBusiness()

Contact org.turro.contacts.Contact.getBusiness ( )

Definition at line 628 of file Contact.java.

628  {
629  return getBusinessSet().getBusiness();
630  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getBusinessList()

List<Contact> org.turro.contacts.Contact.getBusinessList ( )

Definition at line 632 of file Contact.java.

632  {
633  return getBusinessSet().getBusinessList();
634  }
Here is the caller graph for this function:

◆ getBusinessRelations()

Set<BusinessRelation> org.turro.contacts.Contact.getBusinessRelations ( )

Definition at line 379 of file Contact.java.

379  {
380  Dao dao = new ContactsPU();
381  if(!Strings.isBlank(id) && dao.isNotLoaded(businessRelations)) {
382  businessRelations = dao.lazyLoader(Contact.class, this, "businessRelations").businessRelations;
383  }
384  return businessRelations;
385  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getBusinessSet()

Business org.turro.contacts.Contact.getBusinessSet ( )

Definition at line 614 of file Contact.java.

614  {
615  if(_business == null) {
616  _business = new Business(this);
617  }
618  return _business;
619  }
Here is the caller graph for this function:

◆ getCanShow()

boolean org.turro.contacts.Contact.getCanShow ( String  userId)

onlyOwner || owner.equals(userId);

Definition at line 605 of file Contact.java.

605  {
606  return true;
607  }

◆ getComment()

String org.turro.contacts.Contact.getComment ( IConstructor  constructor,
String  key 
)

Definition at line 519 of file Contact.java.

519  {
520  String comment = null, lang = key + I_.api().used();
521  for(Comment c : getComments()) {
522  if(!Strings.isBlank(c.getComment()) && c.getComment().startsWith(lang)) {
523  comment = c.getComment().substring(lang.length());
524  break;
525  }
526  }
527  if(org.turro.string.Strings.isBlank(comment)) {
528  lang = key + "#";
529  for(Comment c : getComments()) {
530  if(!Strings.isBlank(c.getComment()) && c.getComment().startsWith(lang)) {
531  comment = c.getComment().substring(lang.length());
532  break;
533  }
534  }
535  }
536  return comment;
537  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getCommentMap()

Map<String, Comment> org.turro.contacts.Contact.getCommentMap ( )

Definition at line 511 of file Contact.java.

511  {
512  return new CommentMap(this);
513  }

◆ getComments()

Set<Comment> org.turro.contacts.Contact.getComments ( )

Definition at line 415 of file Contact.java.

415  {
416  Dao dao = new ContactsPU();
417  if(!Strings.isBlank(id) && dao.isNotLoaded(comments)) {
418  comments = dao.lazyLoader(Contact.class, this, "comments").comments;
419  }
420  return comments;
421  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getComplexName()

ComplexName org.turro.contacts.Contact.getComplexName ( )

Definition at line 152 of file Contact.java.

152  {
153  if(complexName == null) complexName = new ComplexName();
154  return complexName;
155  }
Here is the caller graph for this function:

◆ getConnectorMap()

Map<String, Connector> org.turro.contacts.Contact.getConnectorMap ( )

Definition at line 499 of file Contact.java.

499  {
500  return new ConnectorMap(this);
501  }
Here is the caller graph for this function:

◆ getConnectors()

Set<Connector> org.turro.contacts.Contact.getConnectors ( )

Definition at line 367 of file Contact.java.

367  {
368  Dao dao = new ContactsPU();
369  if(!Strings.isBlank(id) && dao.isNotLoaded(connectors)) {
370  connectors = dao.lazyLoader(Contact.class, this, "connectors").connectors;
371  }
372  return connectors;
373  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getCoworkers() [1/2]

List<Contact> org.turro.contacts.Contact.getCoworkers ( )

Definition at line 636 of file Contact.java.

636  {
637  return getBusinessSet().getCoworkers();
638  }
Here is the caller graph for this function:

◆ getCoworkers() [2/2]

List<Contact> org.turro.contacts.Contact.getCoworkers ( Contact  business)

Definition at line 640 of file Contact.java.

640  {
641  return business != null ? business.getWorkers() : new ContactList();
642  }
Here is the call graph for this function:

◆ getCurrency()

Currency org.turro.contacts.Contact.getCurrency ( )

Definition at line 221 of file Contact.java.

221  {
222  if(currency == null) {
223  currency = ElephantContext.getContactCurrency();
224  }
225  return currency;
226  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getEditProfile()

Profile org.turro.contacts.Contact.getEditProfile ( )

Definition at line 696 of file Contact.java.

696  {
697  if(profile == null) {
698  profile = new Profile(this, true);
699  }
700  return profile;
701  }
Here is the caller graph for this function:

◆ getEmailAccount()

String org.turro.contacts.Contact.getEmailAccount ( )

Definition at line 136 of file Contact.java.

136  {
137  return emailAccount;
138  }
Here is the caller graph for this function:

◆ getFieldMap()

Map<String, FieldValue> org.turro.contacts.Contact.getFieldMap ( )

Definition at line 507 of file Contact.java.

507  {
508  return new FieldMap(this);
509  }

◆ getFieldValues()

Set<FieldValue> org.turro.contacts.Contact.getFieldValues ( )

Definition at line 427 of file Contact.java.

427  {
428  Dao dao = new ContactsPU();
429  if(!Strings.isBlank(id) && dao.isNotLoaded(fieldValues)) {
430  fieldValues = dao.lazyLoader(Contact.class, this, "fieldValues").fieldValues;
431  }
432  return fieldValues;
433  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getFormal()

String org.turro.contacts.Contact.getFormal ( )

Definition at line 469 of file Contact.java.

469  {
470  return getComplexName().getSerious();
471  }
ComplexName getComplexName()
Definition: Contact.java:152
Here is the caller graph for this function:

◆ getFriendly()

String org.turro.contacts.Contact.getFriendly ( )

Definition at line 465 of file Contact.java.

465  {
466  return getComplexName().getFriendly();
467  }
Here is the caller graph for this function:

◆ getFullName()

String org.turro.contacts.Contact.getFullName ( )

Definition at line 544 of file Contact.java.

544  {
545  Contact business = getBusiness();
546  return getName() + (business != null ? " (" + business.getName() + ")" : "");
547  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getGlobalIdentifier()

String org.turro.contacts.Contact.getGlobalIdentifier ( )

Definition at line 267 of file Contact.java.

267  {
268  return globalIdentifier;
269  }
Here is the caller graph for this function:

◆ getGrouping()

String org.turro.contacts.Contact.getGrouping ( )

Definition at line 283 of file Contact.java.

283  {
284  return grouping;
285  }
Here is the caller graph for this function:

◆ getIContact()

IContact org.turro.contacts.Contact.getIContact ( )

Definition at line 479 of file Contact.java.

479  {
480  return new DefaultContact(this);
481  }
Here is the caller graph for this function:

◆ getId()

String org.turro.contacts.Contact.getId ( )

Definition at line 128 of file Contact.java.

128  {
129  return id;
130  }
Here is the caller graph for this function:

◆ getIdActivity()

String org.turro.contacts.Contact.getIdActivity ( )

Definition at line 291 of file Contact.java.

291  {
292  return idActivity;
293  }

◆ getJobBoard()

JobBoard org.turro.contacts.Contact.getJobBoard ( )

Definition at line 347 of file Contact.java.

347  {
348  return jobBoard;
349  }
Here is the caller graph for this function:

◆ getLangTranslator()

String org.turro.contacts.Contact.getLangTranslator ( )

Definition at line 331 of file Contact.java.

331  {
332  return langTranslator;
333  }
Here is the caller graph for this function:

◆ getLatitude()

double org.turro.contacts.Contact.getLatitude ( )

Definition at line 315 of file Contact.java.

315  {
316  return latitude;
317  }
Here is the caller graph for this function:

◆ getLocale()

Locale org.turro.contacts.Contact.getLocale ( )

Definition at line 232 of file Contact.java.

232  {
233  if(locale == null) {
234  locale = ElephantContext.getContactLocale();
235  }
236  return locale;
237  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getLocaleString()

String org.turro.contacts.Contact.getLocaleString ( Locale  currLocale)

Definition at line 590 of file Contact.java.

590  {
591  String result = null;
592 
593  result = locale != null ? locale.getDisplayName(currLocale) : "";
594  result = !Strings.isBlank(result) ? result + " " : "";
595  result += currency != null ? currency.toString() : "";
596 
597  return result;
598  }
Here is the caller graph for this function:

◆ getLogin()

String org.turro.contacts.Contact.getLogin ( )

Definition at line 243 of file Contact.java.

243  {
244  return login;
245  }
Here is the caller graph for this function:

◆ getLongitude()

double org.turro.contacts.Contact.getLongitude ( )

Definition at line 323 of file Contact.java.

323  {
324  return longitude;
325  }
Here is the caller graph for this function:

◆ getMyData()

MyDataList org.turro.contacts.Contact.getMyData ( )

Definition at line 557 of file Contact.java.

557  {
558  if(_myData == null) {
559  _myData = new MyDataList(new DefaultContact(this));
560  }
561  return _myData;
562  }

◆ getName()

String org.turro.contacts.Contact.getName ( )

Definition at line 213 of file Contact.java.

213  {
214  return name;
215  }
Here is the caller graph for this function:

◆ getObject()

Object org.turro.contacts.Contact.getObject ( String  key)

Definition at line 658 of file Contact.java.

658  {
659  Dao dao = new ContactsPU();
660  AssociatedObject ao = getAssociatedObject(dao, key);
661  return ao != null ? ao.getObject() : null;
662  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getOwner()

String org.turro.contacts.Contact.getOwner ( )

Definition at line 162 of file Contact.java.

162  {
163  return owner;
164  }
Here is the caller graph for this function:

◆ getPass1()

String org.turro.contacts.Contact.getPass1 ( )

Definition at line 251 of file Contact.java.

251  {
252  return pass1;
253  }
Here is the caller graph for this function:

◆ getPass2()

String org.turro.contacts.Contact.getPass2 ( )

Definition at line 259 of file Contact.java.

259  {
260  return pass2;
261  }
Here is the caller graph for this function:

◆ getProfile()

Profile org.turro.contacts.Contact.getProfile ( )

Definition at line 689 of file Contact.java.

689  {
690  if(profile == null) {
691  profile = new Profile(this);
692  }
693  return profile;
694  }
Here is the caller graph for this function:

◆ getRolesString()

String org.turro.contacts.Contact.getRolesString ( )

Definition at line 578 of file Contact.java.

578  {
579  return Permissions.getRoleNames(getSyndications().stream()
580  .map(synd -> synd.getName()).collect(Collectors.toSet())).stream()
581  .collect(Collectors.joining(", ", "[", "]"));
582  }
Here is the call graph for this function:

◆ getSerializerMappings()

MappingSet org.turro.contacts.Contact.getSerializerMappings ( )

Definition at line 705 of file Contact.java.

705  {
706  MappingSet set = new MappingSet();
707  set.addMapping(Contact.class, 1,
708  new String[] { "id", "type", "name", "login", "pass1", "pass2",
709  "globalIdentifier", "emailAccount", "webapp", "userMenu", "deactivated" },
710  new String[] { "addresses", "connectors", "businessRelations", "jobBoard",
711  "locale", "timeZone", "currency", "syndications", "comments",
712  "fieldValues", "services", "grouping", "idActivity", "billing", "staff" });
713  set.addMapping(Address.class, 2,
714  new String[] { "id", "description" },
715  new String[] { "street", "zipCode", "province", "state", "latitude", "longitude" });
716  set.addMapping(Connector.class, 2,
717  new String[] { "id", "description" },
718  new String[] { "value" });
719  set.addMapping(BusinessRelation.class, 2,
720  new String[] { "id", "description", "preferential", "strong", "validated",
721  "startDate", "endDate" },
722  new String[] { "business", "relationType" });
723  set.addMapping(Syndication.class, 2,
724  new String[] { "id", "name" },
725  null);
726  set.addMapping(Comment.class, 2,
727  new String[] { "id", "modification" },
728  new String[] { "comment" });
729  set.addMapping(FieldValue.class, 2,
730  new String[] { "value", },
731  new String[] { "fieldDef" });
732  set.addMapping(FieldDef.class, 3,
733  new String[] { "id", "tabKey", "labeyKey", "tagDiscriminator" },
734  null);
735  set.addMapping(ContactService.class, 2,
736  new String[] { "title", },
737  new String[] { "text", "contact", "responsible" });
738  set.addMapping(Contact.class, 3,
739  new String[] { "id", "name" },
740  null);
741  set.addMapping(Currency.class, 2,
742  new String[] { "currencyCode" },
743  null);
744  set.addMapping(TimeZone.class, 2,
745  new String[] { "displayName" },
746  null);
747  set.addMapping(JobBoard.class, 2,
748  new String[] { "zipCode", "commuting", "available", "updateDate" },
749  null);
750  return set;
751  }

◆ getServices()

Set<ContactService> org.turro.contacts.Contact.getServices ( )

Definition at line 439 of file Contact.java.

439  {
440  Dao dao = new ContactsPU();
441  if(!Strings.isBlank(id) && dao.isNotLoaded(services)) {
442  services = dao.lazyLoader(Contact.class, this, "services").services;
443  }
444  return services;
445  }
Here is the call graph for this function:

◆ getSocialGroupsString()

String org.turro.contacts.Contact.getSocialGroupsString ( )

Definition at line 584 of file Contact.java.

584  {
585  return getSyndications().stream()
586  .map(synd -> I_.get(SecurityGroups.get(synd.getName()).getName()))
587  .collect(Collectors.joining(", ", "[", "]"));
588  }
Here is the call graph for this function:

◆ getStaff()

double org.turro.contacts.Contact.getStaff ( )

Definition at line 307 of file Contact.java.

307  {
308  return staff;
309  }

◆ getSyndicationMap()

Map<String, Syndication> org.turro.contacts.Contact.getSyndicationMap ( )

Definition at line 515 of file Contact.java.

515  {
516  return new SyndicationMap(this);
517  }
Here is the caller graph for this function:

◆ getSyndications()

Set<Syndication> org.turro.contacts.Contact.getSyndications ( )

Definition at line 403 of file Contact.java.

403  {
404  Dao dao = new ContactsPU();
405  if(!Strings.isBlank(id) && dao.isNotLoaded(syndications)) {
406  syndications = dao.lazyLoader(Contact.class, this, "syndications").syndications;
407  }
408  return syndications;
409  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getTagsString()

String org.turro.contacts.Contact.getTagsString ( )

Definition at line 573 of file Contact.java.

573  {
574  return Tags.getTags(this).stream().map(tag -> tag.getTagName())
575  .collect(Collectors.joining(", ", "[", "]"));
576  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getTimeZone()

TimeZone org.turro.contacts.Contact.getTimeZone ( )

Definition at line 275 of file Contact.java.

275  {
276  return timeZone;
277  }

◆ getTradeName()

String org.turro.contacts.Contact.getTradeName ( )

Definition at line 494 of file Contact.java.

494  {
495  Connector trade = getConnectorMap().get(IUser.CONNECTOR_TRADE);
496  return Strings.isBlank(trade != null ? trade.getValue() : null, getName());
497  }
Map< String, Connector > getConnectorMap()
Definition: Contact.java:499
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getType()

ContactType org.turro.contacts.Contact.getType ( )

Definition at line 144 of file Contact.java.

144  {
145  return type;
146  }
Here is the caller graph for this function:

◆ getWorkerRelations()

Set<BusinessRelation> org.turro.contacts.Contact.getWorkerRelations ( )

Definition at line 391 of file Contact.java.

391  {
392  Dao dao = new ContactsPU();
393  if(!Strings.isBlank(id) && dao.isNotLoaded(workerRelations)) {
394  workerRelations = dao.lazyLoader(Contact.class, this, "workerRelations").workerRelations;
395  }
396  return workerRelations;
397  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getWorkers()

List<Contact> org.turro.contacts.Contact.getWorkers ( )

Definition at line 644 of file Contact.java.

644  {
645  return getWorkerSet().getWorkers();
646  }
Here is the caller graph for this function:

◆ getWorkerSet()

Workers org.turro.contacts.Contact.getWorkerSet ( )

Definition at line 621 of file Contact.java.

621  {
622  if(_workers == null) {
623  _workers = new Workers(this);
624  }
625  return _workers;
626  }
Here is the caller graph for this function:

◆ hashCode()

int org.turro.contacts.Contact.hashCode ( )

Definition at line 754 of file Contact.java.

754  {
755  int hash = 7;
756  hash = 31 * hash + Objects.hashCode(this.id);
757  return hash;
758  }

◆ hasLocation()

boolean org.turro.contacts.Contact.hasLocation ( )

Definition at line 483 of file Contact.java.

483  {
484  return latitude != 0.0 && longitude != 0.0;
485  }
Here is the caller graph for this function:

◆ isCloudAdmin()

boolean org.turro.contacts.Contact.isCloudAdmin ( )

Definition at line 339 of file Contact.java.

339  {
340  return cloudAdmin;
341  }

◆ isDeactivated()

boolean org.turro.contacts.Contact.isDeactivated ( )

Definition at line 197 of file Contact.java.

197  {
198  return deactivated;
199  }
Here is the caller graph for this function:

◆ isEmpty()

boolean org.turro.contacts.Contact.isEmpty ( )

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 459 of file Contact.java.

459  {
460  return Strings.isBlank(name);
461  }
Here is the caller graph for this function:

◆ isInactive()

boolean org.turro.contacts.Contact.isInactive ( )

Definition at line 205 of file Contact.java.

205  {
206  return inactive;
207  }
Here is the caller graph for this function:

◆ isInBusiness() [1/2]

boolean org.turro.contacts.Contact.isInBusiness ( Contact  worker)

Definition at line 648 of file Contact.java.

648  {
649  return worker != null && (equals(worker) || getWorkers().contains(worker));
650  }
boolean equals(Object obj)
Definition: Contact.java:761
List< Contact > getWorkers()
Definition: Contact.java:644
Here is the caller graph for this function:

◆ isInBusiness() [2/2]

boolean org.turro.contacts.Contact.isInBusiness ( IContact  worker)

Definition at line 652 of file Contact.java.

652  {
653  return worker != null && worker.isValid() && isInBusiness((Contact) worker.getContact());
654  }
boolean isInBusiness(Contact worker)
Definition: Contact.java:648
Here is the call graph for this function:

◆ isOnlyOwner()

boolean org.turro.contacts.Contact.isOnlyOwner ( )

Definition at line 172 of file Contact.java.

172  {
173  return onlyOwner;
174  }

◆ isUserMenu()

boolean org.turro.contacts.Contact.isUserMenu ( )

Definition at line 189 of file Contact.java.

189  {
190  return userMenu;
191  }
Here is the caller graph for this function:

◆ isValidLogin()

boolean org.turro.contacts.Contact.isValidLogin ( )

Definition at line 601 of file Contact.java.

601  {
602  return login != null && login.length() > 0;
603  }

◆ isWebapp()

boolean org.turro.contacts.Contact.isWebapp ( )

Definition at line 181 of file Contact.java.

181  {
182  return webapp;
183  }
Here is the caller graph for this function:

◆ isWebUser()

boolean org.turro.contacts.Contact.isWebUser ( )

Definition at line 489 of file Contact.java.

489  {
490  Connector email = getConnectorMap().get(IUser.CONNECTOR_EMAIL);
491  return email != null && Contacts.isValidEmail(email.getValue());
492  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setAddresses()

void org.turro.contacts.Contact.setAddresses ( Set< Address addresses)

Definition at line 363 of file Contact.java.

363  {
364  this.addresses = addresses;
365  }

◆ setAttribute()

void org.turro.contacts.Contact.setAttribute ( String  key,
Object  value 
)

Definition at line 549 of file Contact.java.

549  {
550  attributes.put(key, value);
551  }
Here is the caller graph for this function:

◆ setBilling()

void org.turro.contacts.Contact.setBilling ( double  billing)

Definition at line 303 of file Contact.java.

303  {
304  this.billing = billing;
305  }

◆ setBusinessRelations()

void org.turro.contacts.Contact.setBusinessRelations ( Set< BusinessRelation businessRelations)

Definition at line 387 of file Contact.java.

387  {
388  this.businessRelations = businessRelations;
389  }

◆ setCloudAdmin()

void org.turro.contacts.Contact.setCloudAdmin ( boolean  cloudAdmin)

Definition at line 343 of file Contact.java.

343  {
344  this.cloudAdmin = cloudAdmin;
345  }

◆ setComments()

void org.turro.contacts.Contact.setComments ( Set< Comment comments)

Definition at line 423 of file Contact.java.

423  {
424  this.comments = comments;
425  }

◆ setComplexName()

void org.turro.contacts.Contact.setComplexName ( ComplexName  complexName)

Definition at line 157 of file Contact.java.

157  {
158  this.complexName = complexName;
159  }

◆ setConnectors()

void org.turro.contacts.Contact.setConnectors ( Set< Connector connectors)

Definition at line 375 of file Contact.java.

375  {
376  this.connectors = connectors;
377  }

◆ setCurrency()

void org.turro.contacts.Contact.setCurrency ( Currency  currency)

Definition at line 228 of file Contact.java.

228  {
229  this.currency = currency;
230  }

◆ setDeactivated()

void org.turro.contacts.Contact.setDeactivated ( boolean  deactivated)

Definition at line 201 of file Contact.java.

201  {
202  this.deactivated = deactivated;
203  }

◆ setEmailAccount()

void org.turro.contacts.Contact.setEmailAccount ( String  emailAccount)

Definition at line 140 of file Contact.java.

140  {
141  this.emailAccount = emailAccount;
142  }

◆ setFieldValues()

void org.turro.contacts.Contact.setFieldValues ( Set< FieldValue fieldValues)

Definition at line 435 of file Contact.java.

435  {
436  this.fieldValues = fieldValues;
437  }

◆ setGlobalIdentifier()

void org.turro.contacts.Contact.setGlobalIdentifier ( String  globalIdentifier)

Definition at line 271 of file Contact.java.

271  {
272  this.globalIdentifier = globalIdentifier;
273  }
Here is the caller graph for this function:

◆ setGrouping()

void org.turro.contacts.Contact.setGrouping ( String  grouping)

Definition at line 287 of file Contact.java.

287  {
288  this.grouping = grouping;
289  }

◆ setId()

void org.turro.contacts.Contact.setId ( String  id)
protected

Definition at line 132 of file Contact.java.

132  {
133  this.id = id;
134  }

◆ setIdActivity()

void org.turro.contacts.Contact.setIdActivity ( String  idActivity)

Definition at line 295 of file Contact.java.

295  {
296  this.idActivity = idActivity;
297  }

◆ setInactive()

void org.turro.contacts.Contact.setInactive ( boolean  inactive)

Definition at line 209 of file Contact.java.

209  {
210  this.inactive = inactive;
211  }

◆ setJobBoard()

void org.turro.contacts.Contact.setJobBoard ( JobBoard  jobBoard)

Definition at line 351 of file Contact.java.

351  {
352  this.jobBoard = jobBoard;
353  }
Here is the caller graph for this function:

◆ setLangTranslator()

void org.turro.contacts.Contact.setLangTranslator ( String  langTranslator)

Definition at line 335 of file Contact.java.

335  {
336  this.langTranslator = langTranslator;
337  }

◆ setLatitude()

void org.turro.contacts.Contact.setLatitude ( double  latitude)

Definition at line 319 of file Contact.java.

319  {
320  this.latitude = latitude;
321  }

◆ setLocale()

void org.turro.contacts.Contact.setLocale ( Locale  locale)

Definition at line 239 of file Contact.java.

239  {
240  this.locale = locale;
241  }

◆ setLogin()

void org.turro.contacts.Contact.setLogin ( String  login)

Definition at line 247 of file Contact.java.

247  {
248  this.login = login;
249  }

◆ setLongitude()

void org.turro.contacts.Contact.setLongitude ( double  longitude)

Definition at line 327 of file Contact.java.

327  {
328  this.longitude = longitude;
329  }

◆ setName()

void org.turro.contacts.Contact.setName ( String  name)

Definition at line 217 of file Contact.java.

217  {
218  this.name = name;
219  }
Here is the caller graph for this function:

◆ setObject()

void org.turro.contacts.Contact.setObject ( String  key,
Serializable  value 
)

Definition at line 664 of file Contact.java.

664  {
665  Dao dao = new ContactsPU();
666  AssociatedObject ao = getAssociatedObject(dao, key);
667  if(ao == null) {
668  ao = new AssociatedObject();
669  ao.setContact(this);
670  ao.setKey(key);
671  }
672  ao.setObject(value);
673  dao.saveObject(ao);
674  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setOnlyOwner()

void org.turro.contacts.Contact.setOnlyOwner ( boolean  onlyOwner)

Definition at line 177 of file Contact.java.

177  {
178  this.onlyOwner = onlyOwner;
179  }

◆ setOwner()

void org.turro.contacts.Contact.setOwner ( String  owner)

Definition at line 167 of file Contact.java.

167  {
168  this.owner = owner;
169  }

◆ setPass1()

void org.turro.contacts.Contact.setPass1 ( String  pass1)

Definition at line 255 of file Contact.java.

255  {
256  this.pass1 = pass1;
257  }
Here is the caller graph for this function:

◆ setPass2()

void org.turro.contacts.Contact.setPass2 ( String  pass2)

Definition at line 263 of file Contact.java.

263  {
264  this.pass2 = pass2;
265  }

◆ setPlainPass()

void org.turro.contacts.Contact.setPlainPass ( String  text)

Definition at line 475 of file Contact.java.

475  {
476  setPass1(ElephantContext.encrypt(text));
477  }
void setPass1(String pass1)
Definition: Contact.java:255
Here is the call graph for this function:

◆ setServices()

void org.turro.contacts.Contact.setServices ( Set< ContactService services)

Definition at line 447 of file Contact.java.

447  {
448  this.services = services;
449  }

◆ setStaff()

void org.turro.contacts.Contact.setStaff ( double  staff)

Definition at line 311 of file Contact.java.

311  {
312  this.staff = staff;
313  }

◆ setSyndications()

void org.turro.contacts.Contact.setSyndications ( Set< Syndication syndications)

Definition at line 411 of file Contact.java.

411  {
412  this.syndications = syndications;
413  }

◆ setTimeZone()

void org.turro.contacts.Contact.setTimeZone ( TimeZone  timeZone)

Definition at line 279 of file Contact.java.

279  {
280  this.timeZone = timeZone;
281  }

◆ setType()

void org.turro.contacts.Contact.setType ( ContactType  type)

Definition at line 148 of file Contact.java.

148  {
149  this.type = type;
150  }

◆ setUserMenu()

void org.turro.contacts.Contact.setUserMenu ( boolean  userMenu)

Definition at line 193 of file Contact.java.

193  {
194  this.userMenu = userMenu;
195  }
Here is the caller graph for this function:

◆ setWebapp()

void org.turro.contacts.Contact.setWebapp ( boolean  webapp)

Definition at line 185 of file Contact.java.

185  {
186  this.webapp = webapp;
187  }

◆ setWorkerRelations()

void org.turro.contacts.Contact.setWorkerRelations ( Set< BusinessRelation workerRelations)

Definition at line 399 of file Contact.java.

399  {
400  this.workerRelations = workerRelations;
401  }

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