- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 43 of file AxDescriptor.java.
◆ compareTo()
int org.turro.alliance.db.entities.AxDescriptor.compareTo |
( |
AxDescriptor |
o | ) |
|
Definition at line 151 of file AxDescriptor.java.
152 return Comparison.ascendant()
153 .compare(memberId, o.memberId)
154 .compare(entityId, o.entityId)
155 .compare(grouping, o.grouping)
156 .compare(orderNumber, o.orderNumber)
157 .compare(title, o.title)
◆ entityId()
Object org.turro.alliance.db.entities.AxDescriptor.entityId |
( |
| ) |
|
◆ equals()
boolean org.turro.alliance.db.entities.AxDescriptor.equals |
( |
Object |
obj | ) |
|
Definition at line 173 of file AxDescriptor.java.
180 if (getClass() != obj.getClass()) {
183 final AxDescriptor other = (AxDescriptor) obj;
184 if (this.orderNumber != other.orderNumber) {
187 if (!Objects.equals(
this.entityId, other.entityId)) {
190 if (!Objects.equals(
this.grouping, other.grouping)) {
193 if (!Objects.equals(
this.title, other.title)) {
196 return Objects.equals(this.memberId, other.memberId);
◆ from()
Definition at line 104 of file AxDescriptor.java.
105 TreeSet<AxDescriptor> descriptors =
new TreeSet<>();
106 dossier.getDescriptors().stream()
107 .filter(d -> DescriptorType.OPENING_DESCRIPTOR.equals(d.getDescriptorDefinition().getType()))
108 .filter(d -> d.getDescriptorDefinition().isRequired())
109 .forEach(descriptor -> {
110 AxDescriptor axDescriptor =
new AxDescriptor();
111 axDescriptor.setEntityId(project.getProjectId().getEntityId());
112 axDescriptor.setMemberId(project.getProjectId().getMemberId());
113 axDescriptor.setGrouping(descriptor.getDescriptorDefinition().getGrouping());
114 axDescriptor.setOrderNumber(descriptor.getDescriptorDefinition().getOrderNumber());
115 axDescriptor.setTitle(descriptor.getDescriptorDefinition().getTitle());
116 axDescriptor.setText(descriptor.getText());
117 if(!axDescriptor.isEmpty()) descriptors.add(axDescriptor);
◆ fromJson()
static AxDescriptor org.turro.alliance.db.entities.AxDescriptor.fromJson |
( |
JsonValue |
value | ) |
|
|
static |
Definition at line 146 of file AxDescriptor.java.
147 return IJSONizable.fromJson(value.toString(), AxDescriptor.class);
◆ getEntityId()
String org.turro.alliance.db.entities.AxDescriptor.getEntityId |
( |
| ) |
|
◆ getGrouping()
String org.turro.alliance.db.entities.AxDescriptor.getGrouping |
( |
| ) |
|
◆ getMemberId()
Long org.turro.alliance.db.entities.AxDescriptor.getMemberId |
( |
| ) |
|
◆ getOrderNumber()
int org.turro.alliance.db.entities.AxDescriptor.getOrderNumber |
( |
| ) |
|
◆ getText()
String org.turro.alliance.db.entities.AxDescriptor.getText |
( |
| ) |
|
◆ getTitle()
String org.turro.alliance.db.entities.AxDescriptor.getTitle |
( |
| ) |
|
◆ hashCode()
int org.turro.alliance.db.entities.AxDescriptor.hashCode |
( |
| ) |
|
Definition at line 162 of file AxDescriptor.java.
164 hash = 59 * hash + Objects.hashCode(this.memberId);
165 hash = 59 * hash + Objects.hashCode(this.entityId);
166 hash = 59 * hash + Objects.hashCode(this.grouping);
167 hash = 59 * hash + Objects.hashCode(this.title);
168 hash = 59 * hash + this.orderNumber;
◆ isEmpty()
boolean org.turro.alliance.db.entities.AxDescriptor.isEmpty |
( |
| ) |
|
◆ setEntityId()
void org.turro.alliance.db.entities.AxDescriptor.setEntityId |
( |
String |
entityId | ) |
|
◆ setGrouping()
void org.turro.alliance.db.entities.AxDescriptor.setGrouping |
( |
String |
grouping | ) |
|
◆ setMemberId()
void org.turro.alliance.db.entities.AxDescriptor.setMemberId |
( |
Long |
memberId | ) |
|
◆ setOrderNumber()
void org.turro.alliance.db.entities.AxDescriptor.setOrderNumber |
( |
int |
orderNumber | ) |
|
◆ setText()
void org.turro.alliance.db.entities.AxDescriptor.setText |
( |
String |
text | ) |
|
◆ setTitle()
void org.turro.alliance.db.entities.AxDescriptor.setTitle |
( |
String |
title | ) |
|
◆ toJson() [1/2]
String org.turro.alliance.db.entities.AxDescriptor.toJson |
( |
| ) |
|
Definition at line 137 of file AxDescriptor.java.
138 return toJsonExcluding(
this, AxProject.class);
◆ toJson() [2/2]
String org.turro.alliance.db.entities.AxDescriptor.toJson |
( |
Map< String, Object > |
properties | ) |
|
Definition at line 142 of file AxDescriptor.java.
143 return toJsonExcluding(
this, properties, AxProject.class);
The documentation for this class was generated from the following file: