BrightSide Workbench Full Report + Source Code
org.turro.dossier.command.CategoryParticipationWrapper Class Reference

Public Member Functions

 CategoryParticipationWrapper (IContact contact, Category category, CategoryParticipant participant)
 
IContact getContact ()
 
Category getCategory ()
 
CategoryParticipant getParticipant ()
 
boolean isRole (ParticipantRole role)
 
void save ()
 
void delete ()
 

Detailed Description

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

Definition at line 32 of file CategoryParticipationWrapper.java.

Constructor & Destructor Documentation

◆ CategoryParticipationWrapper()

org.turro.dossier.command.CategoryParticipationWrapper.CategoryParticipationWrapper ( IContact  contact,
Category  category,
CategoryParticipant  participant 
)

Definition at line 38 of file CategoryParticipationWrapper.java.

38  {
39  this.contact = contact;
40  this.category = category;
41  this.participant = participant;
42  }

Member Function Documentation

◆ delete()

void org.turro.dossier.command.CategoryParticipationWrapper.delete ( )

Definition at line 68 of file CategoryParticipationWrapper.java.

68  {
69  if(participant.getId() != null) {
70  getDao().executeUpdate("delete from CategoryParticipant where id = ?", new Object[] { participant.getId() });
71  }
72  }
int executeUpdate(String query)
Definition: Dao.java:463
Here is the call graph for this function:

◆ getCategory()

Category org.turro.dossier.command.CategoryParticipationWrapper.getCategory ( )

Definition at line 48 of file CategoryParticipationWrapper.java.

48  {
49  return category;
50  }

◆ getContact()

IContact org.turro.dossier.command.CategoryParticipationWrapper.getContact ( )

Definition at line 44 of file CategoryParticipationWrapper.java.

44  {
45  return contact;
46  }

◆ getParticipant()

CategoryParticipant org.turro.dossier.command.CategoryParticipationWrapper.getParticipant ( )

Definition at line 52 of file CategoryParticipationWrapper.java.

52  {
53  return participant;
54  }

◆ isRole()

boolean org.turro.dossier.command.CategoryParticipationWrapper.isRole ( ParticipantRole  role)

Definition at line 56 of file CategoryParticipationWrapper.java.

56  {
57  return role.equals(participant.getRole());
58  }
Here is the call graph for this function:

◆ save()

void org.turro.dossier.command.CategoryParticipationWrapper.save ( )

Definition at line 60 of file CategoryParticipationWrapper.java.

60  {
61  participant.setCategory(category);
62  participant.setIContact(contact);
63  if(!participant.isEmpty()) {
64  getDao().saveObject(participant);
65  }
66  }
Here is the call graph for this function:

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