@JsonProperty @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 ) public String getValue() { return (getAttribute().getConfidential() ? this.getEncryptedValue() : this.getPlainValue()); }
@Override public int hashCode() { return Objects.hash( attribute, entityInstance, created, getValue(), modifiedBy, auditType ); }
@Override public void deleteTrackedEntityAttributeValue( TrackedEntityAttributeValue attributeValue ) { TrackedEntityAttributeValueAudit trackedEntityAttributeValueAudit = new TrackedEntityAttributeValueAudit( attributeValue, attributeValue.getAuditValue(), currentUserService.getCurrentUsername(), AuditType.DELETE ); trackedEntityAttributeValueAuditService.addTrackedEntityAttributeValueAudit( trackedEntityAttributeValueAudit ); deleteFileValue( attributeValue ); attributeValueStore.delete( attributeValue ); }
public String getEncryptedValue() { return (getAttribute().getConfidential() && this.value != null ? this.value : this.encryptedValue); }
TrackedEntityAttributeValueAudit trackedEntityAttributeValueAudit = new TrackedEntityAttributeValueAudit( attributeValue, attributeValue.getAuditValue(), currentUserService.getCurrentUsername(), AuditType.UPDATE );
public String getPlainValue() { return (!getAttribute().getConfidential() && this.value != null ? this.value : this.plainValue); }
@Override public boolean equals( Object obj ) { if ( this == obj ) { return true; } if ( obj == null || getClass() != obj.getClass() ) { return false; } final TrackedEntityAttributeValueAudit other = (TrackedEntityAttributeValueAudit) obj; return Objects.equals( this.attribute, other.attribute ) && Objects.equals( this.entityInstance, other.entityInstance ) && Objects.equals( this.created, other.created ) && Objects.equals( this.getValue(), other.getValue() ) && Objects.equals( this.modifiedBy, other.modifiedBy ) && Objects.equals( this.auditType, other.auditType ); }