BrightSide Workbench Full Report + Source Code
org.turro.students.entities.Response Class Reference
Inheritance diagram for org.turro.students.entities.Response:
Collaboration diagram for org.turro.students.entities.Response:

Public Member Functions

Long getId ()
 
void setId (Long id)
 
Challenge getChallenge ()
 
void setChallenge (Challenge challenge)
 
Set< String > getStudentIds ()
 
void setStudentIds (Set< String > studentIds)
 
Date getCreation ()
 
void setCreation (Date creation)
 
String getText ()
 
void setText (String text)
 
String getWikiText ()
 
void setWikiText (String wikiText)
 
Object entityId ()
 
boolean isEmpty ()
 
List< IContactgetStudentList ()
 
void addStudent (IContact contact)
 
void removeStudent (IContact contact)
 
- 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 ()
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 47 of file Response.java.

Member Function Documentation

◆ addStudent()

void org.turro.students.entities.Response.addStudent ( IContact  contact)

Definition at line 142 of file Response.java.

142  {
143  if(contact != null && contact.isValid()) {
144  studentIds.add(contact.getId());
145  }
146  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ entityId()

Object org.turro.students.entities.Response.entityId ( )

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 123 of file Response.java.

123  {
124  return id;
125  }

◆ getChallenge()

Challenge org.turro.students.entities.Response.getChallenge ( )

Definition at line 79 of file Response.java.

79  {
80  return challenge;
81  }
Here is the caller graph for this function:

◆ getCreation()

Date org.turro.students.entities.Response.getCreation ( )

Definition at line 95 of file Response.java.

95  {
96  return creation;
97  }

◆ getId()

Long org.turro.students.entities.Response.getId ( )

Definition at line 71 of file Response.java.

71  {
72  return id;
73  }
Here is the caller graph for this function:

◆ getStudentIds()

Set<String> org.turro.students.entities.Response.getStudentIds ( )

Definition at line 87 of file Response.java.

87  {
88  return studentIds;
89  }
Here is the caller graph for this function:

◆ getStudentList()

List<IContact> org.turro.students.entities.Response.getStudentList ( )

Helpers

Definition at line 134 of file Response.java.

134  {
135  ContactList list = new ContactList();
136  studentIds.forEach(idContact -> {
137  list.add(Contacts.getContactById(idContact));
138  });
139  return list;
140  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getText()

String org.turro.students.entities.Response.getText ( )

Definition at line 103 of file Response.java.

103  {
104  return text;
105  }

◆ getWikiText()

String org.turro.students.entities.Response.getWikiText ( )

Definition at line 111 of file Response.java.

111  {
112  return wikiText;
113  }

◆ isEmpty()

boolean org.turro.students.entities.Response.isEmpty ( )

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 128 of file Response.java.

128  {
129  return studentIds.isEmpty() || Strings.isBlank(text);
130  }
Here is the caller graph for this function:

◆ removeStudent()

void org.turro.students.entities.Response.removeStudent ( IContact  contact)

Definition at line 148 of file Response.java.

148  {
149  if(contact != null && contact.isValid()) {
150  studentIds.remove(contact.getId());
151  }
152  }
Here is the call graph for this function:

◆ setChallenge()

void org.turro.students.entities.Response.setChallenge ( Challenge  challenge)

Definition at line 83 of file Response.java.

83  {
84  this.challenge = challenge;
85  }
Here is the caller graph for this function:

◆ setCreation()

void org.turro.students.entities.Response.setCreation ( Date  creation)

Definition at line 99 of file Response.java.

99  {
100  this.creation = creation;
101  }

◆ setId()

void org.turro.students.entities.Response.setId ( Long  id)

Definition at line 75 of file Response.java.

75  {
76  this.id = id;
77  }

◆ setStudentIds()

void org.turro.students.entities.Response.setStudentIds ( Set< String >  studentIds)

Definition at line 91 of file Response.java.

91  {
92  this.studentIds = studentIds;
93  }

◆ setText()

void org.turro.students.entities.Response.setText ( String  text)

Definition at line 107 of file Response.java.

107  {
108  this.text = text;
109  }

◆ setWikiText()

void org.turro.students.entities.Response.setWikiText ( String  wikiText)

Definition at line 115 of file Response.java.

115  {
116  this.wikiText = wikiText;
117  this.text = WikiCompiler.source(this.wikiText).html();
118  }
Here is the caller graph for this function:

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