Definition at line 31 of file Relation.java.
◆ getCanShow()
boolean org.turro.contacts.Relation.getCanShow |
( |
String |
userId | ) |
|
onlyOwner || owner.equals(userId);
Definition at line 144 of file Relation.java.
◆ getContact1()
◆ getContact2()
◆ getDescription()
String org.turro.contacts.Relation.getDescription |
( |
| ) |
|
◆ getFormattedDescription()
String org.turro.contacts.Relation.getFormattedDescription |
( |
| ) |
|
Definition at line 159 of file Relation.java.
160 PhraseBuilder pb =
new PhraseBuilder();
161 if(!Strings.isBlank(relationType)) {
162 pb.addWord(I_.byKey(relationType.substring(1)));
164 pb.addWord(description);
166 return pb.toString();
◆ getFullRelation1()
String org.turro.contacts.Relation.getFullRelation1 |
( |
| ) |
|
◆ getFullRelation2()
String org.turro.contacts.Relation.getFullRelation2 |
( |
| ) |
|
◆ getId()
String org.turro.contacts.Relation.getId |
( |
| ) |
|
◆ getImage()
String org.turro.contacts.Relation.getImage |
( |
| ) |
|
Definition at line 172 of file Relation.java.
173 if(!Strings.isBlank(relationType)) {
174 if(relationType.startsWith(
"$INT")) {
175 return Images.getImage(
"contract");
177 RelationType rt = RelationType.getFromString(relationType);
179 return rt.getImage();
◆ getOwner()
String org.turro.contacts.Relation.getOwner |
( |
| ) |
|
◆ getRelated()
String org.turro.contacts.Relation.getRelated |
( |
| ) |
|
◆ getRelationType()
String org.turro.contacts.Relation.getRelationType |
( |
| ) |
|
◆ isEmpty()
boolean org.turro.contacts.Relation.isEmpty |
( |
| ) |
|
Definition at line 148 of file Relation.java.
149 return (Strings.isEmpty(description) && Strings.isEmpty(relationType)) ||
150 contact1 ==
null || contact2 ==
null;
◆ isOnlyOwner()
boolean org.turro.contacts.Relation.isOnlyOwner |
( |
| ) |
|
◆ isPreferential()
boolean org.turro.contacts.Relation.isPreferential |
( |
| ) |
|
◆ isTyped()
boolean org.turro.contacts.Relation.isTyped |
( |
| ) |
|
Definition at line 155 of file Relation.java.
156 return !Strings.isBlank(relationType) && relationType.startsWith(
"$");
◆ setContact1()
◆ setContact2()
◆ setDescription()
void org.turro.contacts.Relation.setDescription |
( |
String |
description | ) |
|
Definition at line 100 of file Relation.java.
101 this.description = description;
◆ setId()
void org.turro.contacts.Relation.setId |
( |
String |
id | ) |
|
|
protected |
◆ setOnlyOwner()
void org.turro.contacts.Relation.setOnlyOwner |
( |
boolean |
onlyOwner | ) |
|
Definition at line 92 of file Relation.java.
93 this.onlyOwner = onlyOwner;
◆ setOwner()
void org.turro.contacts.Relation.setOwner |
( |
String |
owner | ) |
|
◆ setPreferential()
void org.turro.contacts.Relation.setPreferential |
( |
boolean |
preferential | ) |
|
Definition at line 140 of file Relation.java.
141 this.preferential = preferential;
◆ setRelated()
void org.turro.contacts.Relation.setRelated |
( |
String |
related | ) |
|
◆ setRelationType()
void org.turro.contacts.Relation.setRelationType |
( |
String |
relationType | ) |
|
Definition at line 132 of file Relation.java.
133 this.relationType = relationType;
The documentation for this class was generated from the following file: