BrightSide Workbench Full Report + Source Code
org.turro.dossier.entity.DossierOffer Class Reference
Inheritance diagram for org.turro.dossier.entity.DossierOffer:
Collaboration diagram for org.turro.dossier.entity.DossierOffer:

Public Member Functions

Long getId ()
 
void setId (Long id)
 
Date getCreation ()
 
void setCreation (Date creation)
 
String getDescription ()
 
void setDescription (String description)
 
String getBidderId ()
 
void setBidderId (String bidderId)
 
boolean isAccepted ()
 
void setAccepted (boolean accepted)
 
boolean isDeclined ()
 
void setDeclined (boolean declined)
 
Dossier getDossier ()
 
void setDossier (Dossier dossier)
 
List< Document > getDocuments ()
 
Folder getFolder ()
 
String getFolderString ()
 
IContact getBidder ()
 
void setBidder (IContact contact)
 
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 ()
 

Detailed Description

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

Definition at line 50 of file DossierOffer.java.

Member Function Documentation

◆ entityId()

Object org.turro.dossier.entity.DossierOffer.entityId ( )

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 161 of file DossierOffer.java.

161  {
162  return id;
163  }

◆ getBidder()

IContact org.turro.dossier.entity.DossierOffer.getBidder ( )

Definition at line 150 of file DossierOffer.java.

150  {
151  return Contacts.getContact(bidderId);
152  }
Here is the call graph for this function:

◆ getBidderId()

String org.turro.dossier.entity.DossierOffer.getBidderId ( )

Definition at line 96 of file DossierOffer.java.

96  {
97  return bidderId;
98  }

◆ getCreation()

Date org.turro.dossier.entity.DossierOffer.getCreation ( )

Definition at line 80 of file DossierOffer.java.

80  {
81  return creation;
82  }

◆ getDescription()

String org.turro.dossier.entity.DossierOffer.getDescription ( )

Definition at line 88 of file DossierOffer.java.

88  {
89  return description;
90  }

◆ getDocuments()

List<Document> org.turro.dossier.entity.DossierOffer.getDocuments ( )

Definition at line 130 of file DossierOffer.java.

130  {
131  Folder folder = getFolder();
132  if(folder.exists()) try {
133  return folder.documents();
134  } catch (IOException ex) {
135  Logger.getLogger(DossierOffer.class.getName()).log(Level.SEVERE, null, ex);
136  }
137  return Collections.EMPTY_LIST;
138  }
Here is the call graph for this function:

◆ getDossier()

Dossier org.turro.dossier.entity.DossierOffer.getDossier ( )

Definition at line 120 of file DossierOffer.java.

120  {
121  return dossier;
122  }

◆ getFolder()

Folder org.turro.dossier.entity.DossierOffer.getFolder ( )

Definition at line 140 of file DossierOffer.java.

140  {
141  return Folder.from(ElephantContext.getRealPath(getFolderString()));
142  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getFolderString()

String org.turro.dossier.entity.DossierOffer.getFolderString ( )

Definition at line 144 of file DossierOffer.java.

144  {
145  return "/WEB-INF/files/dossier/" + dossier.getId() + "/dossier-offer/" + id;
146  }
Here is the caller graph for this function:

◆ getId()

Long org.turro.dossier.entity.DossierOffer.getId ( )

Definition at line 72 of file DossierOffer.java.

72  {
73  return id;
74  }

◆ isAccepted()

boolean org.turro.dossier.entity.DossierOffer.isAccepted ( )

Definition at line 104 of file DossierOffer.java.

104  {
105  return accepted;
106  }
Here is the caller graph for this function:

◆ isDeclined()

boolean org.turro.dossier.entity.DossierOffer.isDeclined ( )

Definition at line 112 of file DossierOffer.java.

112  {
113  return declined;
114  }
Here is the caller graph for this function:

◆ isEmpty()

boolean org.turro.dossier.entity.DossierOffer.isEmpty ( )

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 166 of file DossierOffer.java.

166  {
167  return dossier == null || Strings.isBlank(bidderId) || Strings.isBlank(description);
168  }

◆ setAccepted()

void org.turro.dossier.entity.DossierOffer.setAccepted ( boolean  accepted)

Definition at line 108 of file DossierOffer.java.

108  {
109  this.accepted = accepted;
110  }

◆ setBidder()

void org.turro.dossier.entity.DossierOffer.setBidder ( IContact  contact)

Definition at line 154 of file DossierOffer.java.

154  {
155  bidderId = contact.getId();
156  }
Here is the call graph for this function:

◆ setBidderId()

void org.turro.dossier.entity.DossierOffer.setBidderId ( String  bidderId)

Definition at line 100 of file DossierOffer.java.

100  {
101  this.bidderId = bidderId;
102  }

◆ setCreation()

void org.turro.dossier.entity.DossierOffer.setCreation ( Date  creation)

Definition at line 84 of file DossierOffer.java.

84  {
85  this.creation = creation;
86  }

◆ setDeclined()

void org.turro.dossier.entity.DossierOffer.setDeclined ( boolean  declined)

Definition at line 116 of file DossierOffer.java.

116  {
117  this.declined = declined;
118  }

◆ setDescription()

void org.turro.dossier.entity.DossierOffer.setDescription ( String  description)

Definition at line 92 of file DossierOffer.java.

92  {
93  this.description = description;
94  }

◆ setDossier()

void org.turro.dossier.entity.DossierOffer.setDossier ( Dossier  dossier)

Definition at line 124 of file DossierOffer.java.

124  {
125  this.dossier = dossier;
126  }

◆ setId()

void org.turro.dossier.entity.DossierOffer.setId ( Long  id)

Definition at line 76 of file DossierOffer.java.

76  {
77  this.id = id;
78  }

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