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

Public Member Functions

String getId ()
 
String getOwner ()
 
void setOwner (String owner)
 
boolean isOnlyOwner ()
 
void setOnlyOwner (boolean onlyOwner)
 
Date getModification ()
 
void setModification (Date modification)
 
String getComment ()
 
void setComment (String comment)
 
Contact getContact ()
 
void setContact (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 27 of file Comment.java.

Member Function Documentation

◆ entityId()

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

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 104 of file Comment.java.

104  {
105  return id;
106  }

◆ getCanShow()

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

onlyOwner || owner.equals(userId);

Definition at line 97 of file Comment.java.

97  {
98  return true;
99  }

◆ getComment()

String org.turro.contacts.Comment.getComment ( )

Definition at line 81 of file Comment.java.

81  {
82  return comment;
83  }
Here is the caller graph for this function:

◆ getContact()

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

Definition at line 89 of file Comment.java.

89  {
90  return contact;
91  }
Here is the caller graph for this function:

◆ getId()

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

Definition at line 49 of file Comment.java.

49  {
50  return id;
51  }

◆ getModification()

Date org.turro.contacts.Comment.getModification ( )

Definition at line 73 of file Comment.java.

73  {
74  return modification;
75  }

◆ getOwner()

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

Definition at line 57 of file Comment.java.

57  {
58  return owner;
59  }

◆ isEmpty()

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

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 109 of file Comment.java.

109  {
110  return Strings.isBlank(comment);
111  }
Here is the caller graph for this function:

◆ isOnlyOwner()

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

Definition at line 65 of file Comment.java.

65  {
66  return onlyOwner;
67  }

◆ setComment()

void org.turro.contacts.Comment.setComment ( String  comment)

Definition at line 85 of file Comment.java.

85  {
86  this.comment = comment;
87  }
Here is the caller graph for this function:

◆ setContact()

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

Definition at line 93 of file Comment.java.

93  {
94  this.contact = contact;
95  }
Here is the caller graph for this function:

◆ setId()

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

Definition at line 53 of file Comment.java.

53  {
54  this.id = id;
55  }

◆ setModification()

void org.turro.contacts.Comment.setModification ( Date  modification)

Definition at line 77 of file Comment.java.

77  {
78  this.modification = modification;
79  }
Here is the caller graph for this function:

◆ setOnlyOwner()

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

Definition at line 69 of file Comment.java.

69  {
70  this.onlyOwner = onlyOwner;
71  }

◆ setOwner()

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

Definition at line 61 of file Comment.java.

61  {
62  this.owner = owner;
63  }

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