progress on build

This commit is contained in:
Timo Bejan 2021-09-15 13:35:19 +03:00
parent a6798eb613
commit c5d168d040
6 changed files with 32 additions and 3 deletions

View File

@ -29,10 +29,13 @@ public class CreateOrUpdateDossierRequest {
private String ownerId;
@Builder.Default
private Set<String> memberIds = new HashSet<>();
@Builder.Default
private Set<String> approverIds = new HashSet<>();
@Builder.Default
private Set<DownloadFileType> downloadFileTypes = new HashSet<>();
private boolean watermarkEnabled;

View File

@ -14,8 +14,7 @@ public class ReportTemplateUploadRequest {
private String dossierTemplateId;
@NonNull
private String fileName;
@NonNull
private boolean multiFileReport;
@NonNull
private boolean activeByDefault;
}

View File

@ -1,5 +1,6 @@
package com.iqser.red.service.persistence.service.v1.api.model.data.configuration;
import com.iqser.red.service.persistence.service.v1.api.utils.SuppressFBWarnings;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@ -10,6 +11,7 @@ import javax.persistence.*;
@Entity
@NoArgsConstructor
@AllArgsConstructor
@SuppressFBWarnings("RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE")
@Table(name = "digital_signature")
public class DigitalSignature {

View File

@ -1,5 +1,6 @@
package com.iqser.red.service.persistence.service.v1.api.model.data.configuration;
import com.iqser.red.service.persistence.service.v1.api.utils.SuppressFBWarnings;
import lombok.Data;
import javax.persistence.Column;
@ -10,6 +11,7 @@ import javax.persistence.Table;
@Data
@Entity
@Table(name = "smtp_configuration")
@SuppressFBWarnings("RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE")
public class SMTPConfiguration {
public final static String ID = "CONFIG_ID";
@ -44,5 +46,4 @@ public class SMTPConfiguration {
@Column
private String password;
}

View File

@ -39,12 +39,15 @@ public class Dossier {
@Column
private String ownerId;
@Builder.Default
@ElementCollection
private Set<String> memberIds = new HashSet<>();
@Builder.Default
@ElementCollection
private Set<String> approverIds = new HashSet<>();
@Builder.Default
@ElementCollection
private Set<DownloadFileType> downloadFileTypes = new HashSet<>();
@ -69,12 +72,15 @@ public class Dossier {
@Column(updatable = false, insertable = false, name = "dossier_template_id")
private String dossierTemplateId;
@Builder.Default
@ManyToMany(fetch = FetchType.LAZY, mappedBy = "dossiers")
private List<ReportTemplate> reportTemplates = new ArrayList<>();
@Builder.Default
@OneToMany(cascade = CascadeType.ALL, mappedBy = "dossier")
private List<Type> dossierTypes = new ArrayList<>();
@Builder.Default
@OneToMany(cascade = CascadeType.ALL, mappedBy = "dossier")
private List<DossierAttribute> dossierAttributes = new ArrayList<>();

View File

@ -0,0 +1,18 @@
package com.iqser.red.service.persistence.service.v1.api.utils;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@Retention(RetentionPolicy.CLASS)
public @interface SuppressFBWarnings {
/**
* The set of FindBugs warnings that are to be suppressed in
* annotated element. The value can be a bug category, kind or pattern.
*/
String[] value() default {};
/**
* Optional documentation of the reason why the warning is suppressed.
*/
String justification() default "";
}