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

Public Member Functions

String getFullAddress ()
 
String getAddressString ()
 
String getId ()
 
String getOwner ()
 
void setOwner (String owner)
 
boolean isOnlyOwner ()
 
void setOnlyOwner (boolean onlyOwner)
 
String getStreet ()
 
void setStreet (String street)
 
String getZipCode ()
 
void setZipCode (String zipCode)
 
String getCity ()
 
void setCity (String city)
 
String getProvince ()
 
void setProvince (String province)
 
String getState ()
 
void setState (String state)
 
String getDescription ()
 
void setDescription (String description)
 
double getLatitude ()
 
void setLatitude (double latitude)
 
double getLongitude ()
 
void setLongitude (double longitude)
 
org.turro.contacts.Contact getContact ()
 
void setContact (org.turro.contacts.Contact contact)
 
boolean getCanShow (String userId)
 
Object entityId ()
 
boolean isEmpty ()
 
- 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 32 of file Address.java.

Member Function Documentation

◆ entityId()

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

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 181 of file Address.java.

181  {
182  return id;
183  }

◆ getAddressString()

String org.turro.contacts.Address.getAddressString ( )

Definition at line 68 of file Address.java.

68  {
69  PhraseBuilder pb = new PhraseBuilder();
70  pb.addWord(street);
71  pb.addWord(zipCode);
72  pb.addWord(city);
73  pb.addWord(province);
74  pb.addWord(state);
75  return pb.toString();
76  }
Here is the caller graph for this function:

◆ getCanShow()

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

onlyOwner || owner.equals(userId);

Definition at line 174 of file Address.java.

174  {
175  return true;
176  }

◆ getCity()

String org.turro.contacts.Address.getCity ( )

Definition at line 118 of file Address.java.

118  {
119  return city;
120  }

◆ getContact()

org.turro.contacts.Contact org.turro.contacts.Address.getContact ( )

Definition at line 166 of file Address.java.

166  {
167  return contact;
168  }
Here is the caller graph for this function:

◆ getDescription()

String org.turro.contacts.Address.getDescription ( )

Definition at line 142 of file Address.java.

142  {
143  return description;
144  }
Here is the caller graph for this function:

◆ getFullAddress()

String org.turro.contacts.Address.getFullAddress ( )

Definition at line 62 of file Address.java.

62  {
63  String result = "";
64  if(getDescription() != null) result = getDescription() + ":";
65  return result + getAddressString();
66  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getId()

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

Definition at line 78 of file Address.java.

78  {
79  return id;
80  }
Here is the caller graph for this function:

◆ getLatitude()

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

Definition at line 150 of file Address.java.

150  {
151  return latitude;
152  }

◆ getLongitude()

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

Definition at line 158 of file Address.java.

158  {
159  return longitude;
160  }

◆ getOwner()

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

Definition at line 86 of file Address.java.

86  {
87  return owner;
88  }

◆ getProvince()

String org.turro.contacts.Address.getProvince ( )

Definition at line 126 of file Address.java.

126  {
127  return province;
128  }
Here is the caller graph for this function:

◆ getState()

String org.turro.contacts.Address.getState ( )

Definition at line 134 of file Address.java.

134  {
135  return state;
136  }

◆ getStreet()

String org.turro.contacts.Address.getStreet ( )

Definition at line 102 of file Address.java.

102  {
103  return street;
104  }

◆ getZipCode()

String org.turro.contacts.Address.getZipCode ( )

Definition at line 110 of file Address.java.

110  {
111  return zipCode;
112  }
Here is the caller graph for this function:

◆ isEmpty()

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

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 186 of file Address.java.

186  {
187  return Strings.isEmpty(description) || Strings.isEmpty(street);
188  }
Here is the caller graph for this function:

◆ isOnlyOwner()

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

Definition at line 94 of file Address.java.

94  {
95  return onlyOwner;
96  }

◆ setCity()

void org.turro.contacts.Address.setCity ( String  city)

Definition at line 122 of file Address.java.

122  {
123  this.city = city;
124  }

◆ setContact()

void org.turro.contacts.Address.setContact ( org.turro.contacts.Contact  contact)

Definition at line 170 of file Address.java.

170  {
171  this.contact = contact;
172  }
Here is the caller graph for this function:

◆ setDescription()

void org.turro.contacts.Address.setDescription ( String  description)

Definition at line 146 of file Address.java.

146  {
147  this.description = description;
148  }

◆ setId()

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

Definition at line 82 of file Address.java.

82  {
83  this.id = id;
84  }

◆ setLatitude()

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

Definition at line 154 of file Address.java.

154  {
155  this.latitude = latitude;
156  }

◆ setLongitude()

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

Definition at line 162 of file Address.java.

162  {
163  this.longitude = longitude;
164  }

◆ setOnlyOwner()

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

Definition at line 98 of file Address.java.

98  {
99  this.onlyOwner = onlyOwner;
100  }

◆ setOwner()

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

Definition at line 90 of file Address.java.

90  {
91  this.owner = owner;
92  }

◆ setProvince()

void org.turro.contacts.Address.setProvince ( String  province)

Definition at line 130 of file Address.java.

130  {
131  this.province = province;
132  }

◆ setState()

void org.turro.contacts.Address.setState ( String  state)

Definition at line 138 of file Address.java.

138  {
139  this.state = state;
140  }

◆ setStreet()

void org.turro.contacts.Address.setStreet ( String  street)

Definition at line 106 of file Address.java.

106  {
107  this.street = street;
108  }

◆ setZipCode()

void org.turro.contacts.Address.setZipCode ( String  zipCode)

Definition at line 114 of file Address.java.

114  {
115  this.zipCode = zipCode;
116  }

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