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

Public Member Functions

Long getId ()
 
void setId (Long id)
 
String getTitle ()
 
void setTitle (String title)
 
String getWiki ()
 
void setWiki (String wiki)
 
String getText ()
 
void setText (String text)
 
String getAppliesTo ()
 
void setAppliesTo (String appliesTo)
 
String getAction ()
 
void setAction (String action)
 
boolean isRequiredToAccess ()
 
void setRequiredToAccess (boolean requiredToAccess)
 
boolean isRequiredToNotify ()
 
void setRequiredToNotify (boolean requiredToNotify)
 
boolean isRequiredToAction ()
 
void setRequiredToAction (boolean requiredToAction)
 
boolean isPeremptory ()
 
void setPeremptory (boolean peremptory)
 
Object entityId ()
 
boolean isEmpty ()
 
List< AgreementSignaturegetSignatures ()
 
- 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 41 of file Agreement.java.

Member Function Documentation

◆ entityId()

Object org.turro.elephant.entities.db.Agreement.entityId ( )

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 139 of file Agreement.java.

139  {
140  return id;
141  }

◆ getAction()

String org.turro.elephant.entities.db.Agreement.getAction ( )

Definition at line 96 of file Agreement.java.

96  {
97  return action;
98  }

◆ getAppliesTo()

String org.turro.elephant.entities.db.Agreement.getAppliesTo ( )

Definition at line 88 of file Agreement.java.

88  {
89  return appliesTo;
90  }

◆ getId()

Long org.turro.elephant.entities.db.Agreement.getId ( )

Definition at line 56 of file Agreement.java.

56  {
57  return id;
58  }

◆ getSignatures()

List<AgreementSignature> org.turro.elephant.entities.db.Agreement.getSignatures ( )

Definition at line 152 of file Agreement.java.

152  {
153  WhereClause wc = new WhereClause();
154  wc.addClause("select asig from AgreementSignature asig");
155  wc.addClause("where asig.agreement = :agreement");
156  wc.addNamedValue("agreement", this);
157  wc.addClause("order by asig.signedDate");
158  return new ElephantPU().getResultList(wc);
159  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getText()

String org.turro.elephant.entities.db.Agreement.getText ( )

Definition at line 80 of file Agreement.java.

80  {
81  return text.replaceAll("\\{site\\}", ElephantContext.getSiteName());
82  }
Here is the call graph for this function:

◆ getTitle()

String org.turro.elephant.entities.db.Agreement.getTitle ( )

Definition at line 64 of file Agreement.java.

64  {
65  return title;
66  }
Here is the caller graph for this function:

◆ getWiki()

String org.turro.elephant.entities.db.Agreement.getWiki ( )

Definition at line 72 of file Agreement.java.

72  {
73  return wiki;
74  }

◆ isEmpty()

boolean org.turro.elephant.entities.db.Agreement.isEmpty ( )

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 144 of file Agreement.java.

144  {
145  return !(requiredToAccess || requiredToNotify) ||
146  Strings.isBlank(text) || Strings.isBlank(title) ||
147  Strings.isBlank(appliesTo);
148  }

◆ isPeremptory()

boolean org.turro.elephant.entities.db.Agreement.isPeremptory ( )

Definition at line 128 of file Agreement.java.

128  {
129  return peremptory;
130  }

◆ isRequiredToAccess()

boolean org.turro.elephant.entities.db.Agreement.isRequiredToAccess ( )

Definition at line 104 of file Agreement.java.

104  {
105  return requiredToAccess;
106  }

◆ isRequiredToAction()

boolean org.turro.elephant.entities.db.Agreement.isRequiredToAction ( )

Definition at line 120 of file Agreement.java.

120  {
121  return requiredToAction;
122  }

◆ isRequiredToNotify()

boolean org.turro.elephant.entities.db.Agreement.isRequiredToNotify ( )

Definition at line 112 of file Agreement.java.

112  {
113  return requiredToNotify;
114  }

◆ setAction()

void org.turro.elephant.entities.db.Agreement.setAction ( String  action)

Definition at line 100 of file Agreement.java.

100  {
101  this.action = action;
102  }
Here is the caller graph for this function:

◆ setAppliesTo()

void org.turro.elephant.entities.db.Agreement.setAppliesTo ( String  appliesTo)

Definition at line 92 of file Agreement.java.

92  {
93  this.appliesTo = appliesTo;
94  }

◆ setId()

void org.turro.elephant.entities.db.Agreement.setId ( Long  id)

Definition at line 60 of file Agreement.java.

60  {
61  this.id = id;
62  }

◆ setPeremptory()

void org.turro.elephant.entities.db.Agreement.setPeremptory ( boolean  peremptory)

Definition at line 132 of file Agreement.java.

132  {
133  this.peremptory = peremptory;
134  }
Here is the caller graph for this function:

◆ setRequiredToAccess()

void org.turro.elephant.entities.db.Agreement.setRequiredToAccess ( boolean  requiredToAccess)

Definition at line 108 of file Agreement.java.

108  {
109  this.requiredToAccess = requiredToAccess;
110  }
Here is the caller graph for this function:

◆ setRequiredToAction()

void org.turro.elephant.entities.db.Agreement.setRequiredToAction ( boolean  requiredToAction)

Definition at line 124 of file Agreement.java.

124  {
125  this.requiredToAction = requiredToAction;
126  }
Here is the caller graph for this function:

◆ setRequiredToNotify()

void org.turro.elephant.entities.db.Agreement.setRequiredToNotify ( boolean  requiredToNotify)

Definition at line 116 of file Agreement.java.

116  {
117  this.requiredToNotify = requiredToNotify;
118  }
Here is the caller graph for this function:

◆ setText()

void org.turro.elephant.entities.db.Agreement.setText ( String  text)

Definition at line 84 of file Agreement.java.

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

◆ setTitle()

void org.turro.elephant.entities.db.Agreement.setTitle ( String  title)

Definition at line 68 of file Agreement.java.

68  {
69  this.title = title;
70  }
Here is the caller graph for this function:

◆ setWiki()

void org.turro.elephant.entities.db.Agreement.setWiki ( String  wiki)

Definition at line 76 of file Agreement.java.

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

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