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

Public Member Functions

String getFullConnector ()
 
String getId ()
 
String getOwner ()
 
void setOwner (String owner)
 
boolean isOnlyOwner ()
 
void setOnlyOwner (boolean onlyOwner)
 
String getDescription ()
 
void setDescription (String description)
 
String getValue ()
 
void setValue (String value)
 
org.turro.contacts.Contact getContact ()
 
void setContact (org.turro.contacts.Contact contact)
 
boolean getCanShow (String userId)
 
Object entityId ()
 
boolean isEmpty ()
 
String getType ()
 
- 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 Connector.java.

Member Function Documentation

◆ entityId()

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

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 114 of file Connector.java.

114  {
115  return id;
116  }

◆ getCanShow()

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

onlyOwner || owner.equals(userId);

Definition at line 107 of file Connector.java.

107  {
108  return true;
109  }

◆ getContact()

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

Definition at line 99 of file Connector.java.

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

◆ getDescription()

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

Definition at line 83 of file Connector.java.

83  {
84  return description;
85  }
Here is the caller graph for this function:

◆ getFullConnector()

String org.turro.contacts.Connector.getFullConnector ( )

Definition at line 52 of file Connector.java.

52  {
53  String result = "";
54  if(getDescription() != null) result = getDescription() + ":";
55  if(getValue() != null) result += " " + getValue();
56  return result;
57  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getId()

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

Definition at line 59 of file Connector.java.

59  {
60  return id;
61  }

◆ getOwner()

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

Definition at line 67 of file Connector.java.

67  {
68  return owner;
69  }

◆ getType()

String org.turro.contacts.Connector.getType ( )

Definition at line 125 of file Connector.java.

125  {
126  String type = TypeByValues.getType(value);
127  return type == null ? description : type;
128  }
Here is the call graph for this function:

◆ getValue()

String org.turro.contacts.Connector.getValue ( )

Definition at line 91 of file Connector.java.

91  {
92  return value;
93  }
Here is the caller graph for this function:

◆ isEmpty()

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

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 119 of file Connector.java.

119  {
120  return Strings.isEmpty(description) || Strings.isEmpty(value);
121  }
Here is the caller graph for this function:

◆ isOnlyOwner()

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

Definition at line 75 of file Connector.java.

75  {
76  return onlyOwner;
77  }

◆ setContact()

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

Definition at line 103 of file Connector.java.

103  {
104  this.contact = contact;
105  }
Here is the caller graph for this function:

◆ setDescription()

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

Definition at line 87 of file Connector.java.

87  {
88  this.description = description;
89  }
Here is the caller graph for this function:

◆ setId()

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

Definition at line 63 of file Connector.java.

63  {
64  this.id = id;
65  }

◆ setOnlyOwner()

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

Definition at line 79 of file Connector.java.

79  {
80  this.onlyOwner = onlyOwner;
81  }
Here is the caller graph for this function:

◆ setOwner()

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

Definition at line 71 of file Connector.java.

71  {
72  this.owner = owner;
73  }
Here is the caller graph for this function:

◆ setValue()

void org.turro.contacts.Connector.setValue ( String  value)

Definition at line 95 of file Connector.java.

95  {
96  this.value = value;
97  }
Here is the caller graph for this function:

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