BrightSide Workbench Full Report + Source Code
org.turro.server.db.entities.AxAllianceParticipation Class Reference
Inheritance diagram for org.turro.server.db.entities.AxAllianceParticipation:
Collaboration diagram for org.turro.server.db.entities.AxAllianceParticipation:

Public Member Functions

RelationId getRelation ()
 
void setRelation (RelationId relation)
 
String getId ()
 
void setId (String id)
 
Date getCreation ()
 
void setCreation (Date creation)
 
boolean isDriver ()
 
void setDriver (boolean driver)
 
boolean isCoordinator ()
 
void setCoordinator (boolean coordinator)
 
boolean isBeneficiary ()
 
void setBeneficiary (boolean beneficiary)
 
boolean isOfferer ()
 
void setOfferer (boolean offerer)
 
boolean isResearch ()
 
void setResearch (boolean research)
 
boolean isFunding ()
 
void setFunding (boolean funding)
 
boolean isSupport ()
 
void setSupport (boolean support)
 
boolean isConsortium ()
 
void setConsortium (boolean consortium)
 
boolean isAdmin ()
 
void setAdmin (boolean admin)
 
String getName ()
 
void setName (String name)
 
String getFace ()
 
void setFace (String face)
 
String getCompany ()
 
void setCompany (String company)
 
String getCompanyFace ()
 
void setCompanyFace (String companyFace)
 
String getMemberName ()
 
void setMemberName (String memberName)
 
boolean isValidated ()
 
void setValidated (boolean validated)
 
AxProject getProject ()
 
AxContact getContact ()
 
AllianceContact getIContact ()
 
Object entityId ()
 
boolean isEmpty ()
 
String toJson ()
 
String toJson (Map< String, Object > properties)
 
int hashCode ()
 
boolean equals (Object obj)
 
- 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 ()
 

Static Public Member Functions

static AxAllianceParticipation fromJson (JsonValue value)
 

Detailed Description

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

Definition at line 45 of file AxAllianceParticipation.java.

Member Function Documentation

◆ entityId()

Object org.turro.server.db.entities.AxAllianceParticipation.entityId ( )

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 229 of file AxAllianceParticipation.java.

229  {
230  return relation;
231  }

◆ equals()

boolean org.turro.server.db.entities.AxAllianceParticipation.equals ( Object  obj)

Definition at line 264 of file AxAllianceParticipation.java.

264  {
265  if (this == obj) {
266  return true;
267  }
268  if (obj == null) {
269  return false;
270  }
271  if (getClass() != obj.getClass()) {
272  return false;
273  }
274  final AxAllianceParticipation other = (AxAllianceParticipation) obj;
275  return Objects.equals(this.relation, other.relation);
276  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ fromJson()

static AxAllianceParticipation org.turro.server.db.entities.AxAllianceParticipation.fromJson ( JsonValue  value)
static

Definition at line 250 of file AxAllianceParticipation.java.

250  {
251  return IJSONizable.fromJson(value.toString(), AxAllianceParticipation.class);
252  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getCompany()

String org.turro.server.db.entities.AxAllianceParticipation.getCompany ( )

Definition at line 178 of file AxAllianceParticipation.java.

178  {
179  return company;
180  }

◆ getCompanyFace()

String org.turro.server.db.entities.AxAllianceParticipation.getCompanyFace ( )

Definition at line 186 of file AxAllianceParticipation.java.

186  {
187  return companyFace;
188  }

◆ getContact()

AxContact org.turro.server.db.entities.AxAllianceParticipation.getContact ( )

Definition at line 218 of file AxAllianceParticipation.java.

218  {
219  return new AlliancePU().find(AxContact.class, relation.getRelatedProcedenceId());
220  }
Here is the caller graph for this function:

◆ getCreation()

Date org.turro.server.db.entities.AxAllianceParticipation.getCreation ( )

Definition at line 82 of file AxAllianceParticipation.java.

82  {
83  return creation;
84  }

◆ getFace()

String org.turro.server.db.entities.AxAllianceParticipation.getFace ( )

Definition at line 170 of file AxAllianceParticipation.java.

170  {
171  return face;
172  }

◆ getIContact()

AllianceContact org.turro.server.db.entities.AxAllianceParticipation.getIContact ( )

Definition at line 222 of file AxAllianceParticipation.java.

222  {
223  return new AllianceContact(getContact());
224  }
Here is the call graph for this function:

◆ getId()

String org.turro.server.db.entities.AxAllianceParticipation.getId ( )

Definition at line 69 of file AxAllianceParticipation.java.

69  {
70  return id;
71  }

◆ getMemberName()

String org.turro.server.db.entities.AxAllianceParticipation.getMemberName ( )

Definition at line 194 of file AxAllianceParticipation.java.

194  {
195  return memberName;
196  }

◆ getName()

String org.turro.server.db.entities.AxAllianceParticipation.getName ( )

Definition at line 162 of file AxAllianceParticipation.java.

162  {
163  return name;
164  }

◆ getProject()

AxProject org.turro.server.db.entities.AxAllianceParticipation.getProject ( )

Definition at line 212 of file AxAllianceParticipation.java.

212  {
213  return new AlliancePU().find(AxProject.class, relation.getMainProcedenceId());
214  }

◆ getRelation()

RelationId org.turro.server.db.entities.AxAllianceParticipation.getRelation ( )

Definition at line 61 of file AxAllianceParticipation.java.

61  {
62  return relation;
63  }

◆ hashCode()

int org.turro.server.db.entities.AxAllianceParticipation.hashCode ( )

Definition at line 257 of file AxAllianceParticipation.java.

257  {
258  int hash = 3;
259  hash = 97 * hash + Objects.hashCode(this.relation);
260  return hash;
261  }

◆ isAdmin()

boolean org.turro.server.db.entities.AxAllianceParticipation.isAdmin ( )

Definition at line 154 of file AxAllianceParticipation.java.

154  {
155  return admin;
156  }

◆ isBeneficiary()

boolean org.turro.server.db.entities.AxAllianceParticipation.isBeneficiary ( )

Definition at line 106 of file AxAllianceParticipation.java.

106  {
107  return beneficiary;
108  }

◆ isConsortium()

boolean org.turro.server.db.entities.AxAllianceParticipation.isConsortium ( )

Definition at line 146 of file AxAllianceParticipation.java.

146  {
147  return consortium;
148  }

◆ isCoordinator()

boolean org.turro.server.db.entities.AxAllianceParticipation.isCoordinator ( )

Definition at line 98 of file AxAllianceParticipation.java.

98  {
99  return coordinator;
100  }

◆ isDriver()

boolean org.turro.server.db.entities.AxAllianceParticipation.isDriver ( )

Definition at line 90 of file AxAllianceParticipation.java.

90  {
91  return driver;
92  }

◆ isEmpty()

boolean org.turro.server.db.entities.AxAllianceParticipation.isEmpty ( )

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 234 of file AxAllianceParticipation.java.

234  {
235  return relation.isEmpty();
236  }

◆ isFunding()

boolean org.turro.server.db.entities.AxAllianceParticipation.isFunding ( )

Definition at line 130 of file AxAllianceParticipation.java.

130  {
131  return funding;
132  }

◆ isOfferer()

boolean org.turro.server.db.entities.AxAllianceParticipation.isOfferer ( )

Definition at line 114 of file AxAllianceParticipation.java.

114  {
115  return offerer;
116  }

◆ isResearch()

boolean org.turro.server.db.entities.AxAllianceParticipation.isResearch ( )

Definition at line 122 of file AxAllianceParticipation.java.

122  {
123  return research;
124  }

◆ isSupport()

boolean org.turro.server.db.entities.AxAllianceParticipation.isSupport ( )

Definition at line 138 of file AxAllianceParticipation.java.

138  {
139  return support;
140  }

◆ isValidated()

boolean org.turro.server.db.entities.AxAllianceParticipation.isValidated ( )

Definition at line 202 of file AxAllianceParticipation.java.

202  {
203  return true;
204  }

◆ setAdmin()

void org.turro.server.db.entities.AxAllianceParticipation.setAdmin ( boolean  admin)

Definition at line 158 of file AxAllianceParticipation.java.

158  {
159  this.admin = admin;
160  }

◆ setBeneficiary()

void org.turro.server.db.entities.AxAllianceParticipation.setBeneficiary ( boolean  beneficiary)

Definition at line 110 of file AxAllianceParticipation.java.

110  {
111  this.beneficiary = beneficiary;
112  }

◆ setCompany()

void org.turro.server.db.entities.AxAllianceParticipation.setCompany ( String  company)

Definition at line 182 of file AxAllianceParticipation.java.

182  {
183  this.company = company;
184  }

◆ setCompanyFace()

void org.turro.server.db.entities.AxAllianceParticipation.setCompanyFace ( String  companyFace)

Definition at line 190 of file AxAllianceParticipation.java.

190  {
191  this.companyFace = companyFace;
192  }

◆ setConsortium()

void org.turro.server.db.entities.AxAllianceParticipation.setConsortium ( boolean  consortium)

Definition at line 150 of file AxAllianceParticipation.java.

150  {
151  this.consortium = consortium;
152  }

◆ setCoordinator()

void org.turro.server.db.entities.AxAllianceParticipation.setCoordinator ( boolean  coordinator)

Definition at line 102 of file AxAllianceParticipation.java.

102  {
103  this.coordinator = coordinator;
104  }

◆ setCreation()

void org.turro.server.db.entities.AxAllianceParticipation.setCreation ( Date  creation)

Definition at line 86 of file AxAllianceParticipation.java.

86  {
87  this.creation = creation;
88  }

◆ setDriver()

void org.turro.server.db.entities.AxAllianceParticipation.setDriver ( boolean  driver)

Definition at line 94 of file AxAllianceParticipation.java.

94  {
95  this.driver = driver;
96  }

◆ setFace()

void org.turro.server.db.entities.AxAllianceParticipation.setFace ( String  face)

Definition at line 174 of file AxAllianceParticipation.java.

174  {
175  this.face = face;
176  }

◆ setFunding()

void org.turro.server.db.entities.AxAllianceParticipation.setFunding ( boolean  funding)

Definition at line 134 of file AxAllianceParticipation.java.

134  {
135  this.funding = funding;
136  }

◆ setId()

void org.turro.server.db.entities.AxAllianceParticipation.setId ( String  id)

Definition at line 73 of file AxAllianceParticipation.java.

73  {
74  this.id = id;
75  if(!Strings.isBlank(id) && id.contains("##")) {
76  String v[] = id.split("##");
77  relation.setMainEntityId(v[0]);
78  relation.setMainMemberId(Converter.STANDARD.convert(v[1], Long.class));
79  }
80  }
void setMainMemberId(Long mainMemberId)
Definition: RelationId.java:54
void setMainEntityId(String mainEntityId)
Definition: RelationId.java:46

◆ setMemberName()

void org.turro.server.db.entities.AxAllianceParticipation.setMemberName ( String  memberName)

Definition at line 198 of file AxAllianceParticipation.java.

198  {
199  this.memberName = memberName;
200  }

◆ setName()

void org.turro.server.db.entities.AxAllianceParticipation.setName ( String  name)

Definition at line 166 of file AxAllianceParticipation.java.

166  {
167  this.name = name;
168  }

◆ setOfferer()

void org.turro.server.db.entities.AxAllianceParticipation.setOfferer ( boolean  offerer)

Definition at line 118 of file AxAllianceParticipation.java.

118  {
119  this.offerer = offerer;
120  }

◆ setRelation()

void org.turro.server.db.entities.AxAllianceParticipation.setRelation ( RelationId  relation)

Definition at line 65 of file AxAllianceParticipation.java.

65  {
66  this.relation = relation;
67  }

◆ setResearch()

void org.turro.server.db.entities.AxAllianceParticipation.setResearch ( boolean  research)

Definition at line 126 of file AxAllianceParticipation.java.

126  {
127  this.research = research;
128  }

◆ setSupport()

void org.turro.server.db.entities.AxAllianceParticipation.setSupport ( boolean  support)

Definition at line 142 of file AxAllianceParticipation.java.

142  {
143  this.support = support;
144  }

◆ setValidated()

void org.turro.server.db.entities.AxAllianceParticipation.setValidated ( boolean  validated)

Definition at line 206 of file AxAllianceParticipation.java.

206  {
207  this.validated = true;
208  }

◆ toJson() [1/2]

String org.turro.server.db.entities.AxAllianceParticipation.toJson ( )

Definition at line 241 of file AxAllianceParticipation.java.

241  {
242  return toJson(this);
243  }
Here is the caller graph for this function:

◆ toJson() [2/2]

String org.turro.server.db.entities.AxAllianceParticipation.toJson ( Map< String, Object >  properties)

Definition at line 246 of file AxAllianceParticipation.java.

246  {
247  return toJson(this, properties);
248  }
Here is the call graph for this function:

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