progress on build
This commit is contained in:
parent
a6798eb613
commit
c5d168d040
@ -29,10 +29,13 @@ public class CreateOrUpdateDossierRequest {
|
|||||||
|
|
||||||
private String ownerId;
|
private String ownerId;
|
||||||
|
|
||||||
|
@Builder.Default
|
||||||
private Set<String> memberIds = new HashSet<>();
|
private Set<String> memberIds = new HashSet<>();
|
||||||
|
|
||||||
|
@Builder.Default
|
||||||
private Set<String> approverIds = new HashSet<>();
|
private Set<String> approverIds = new HashSet<>();
|
||||||
|
|
||||||
|
@Builder.Default
|
||||||
private Set<DownloadFileType> downloadFileTypes = new HashSet<>();
|
private Set<DownloadFileType> downloadFileTypes = new HashSet<>();
|
||||||
|
|
||||||
private boolean watermarkEnabled;
|
private boolean watermarkEnabled;
|
||||||
|
|||||||
@ -14,8 +14,7 @@ public class ReportTemplateUploadRequest {
|
|||||||
private String dossierTemplateId;
|
private String dossierTemplateId;
|
||||||
@NonNull
|
@NonNull
|
||||||
private String fileName;
|
private String fileName;
|
||||||
@NonNull
|
|
||||||
private boolean multiFileReport;
|
private boolean multiFileReport;
|
||||||
@NonNull
|
|
||||||
private boolean activeByDefault;
|
private boolean activeByDefault;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
package com.iqser.red.service.persistence.service.v1.api.model.data.configuration;
|
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.AllArgsConstructor;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.NoArgsConstructor;
|
import lombok.NoArgsConstructor;
|
||||||
@ -10,6 +11,7 @@ import javax.persistence.*;
|
|||||||
@Entity
|
@Entity
|
||||||
@NoArgsConstructor
|
@NoArgsConstructor
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
|
@SuppressFBWarnings("RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE")
|
||||||
@Table(name = "digital_signature")
|
@Table(name = "digital_signature")
|
||||||
public class DigitalSignature {
|
public class DigitalSignature {
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
package com.iqser.red.service.persistence.service.v1.api.model.data.configuration;
|
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 lombok.Data;
|
||||||
|
|
||||||
import javax.persistence.Column;
|
import javax.persistence.Column;
|
||||||
@ -10,6 +11,7 @@ import javax.persistence.Table;
|
|||||||
@Data
|
@Data
|
||||||
@Entity
|
@Entity
|
||||||
@Table(name = "smtp_configuration")
|
@Table(name = "smtp_configuration")
|
||||||
|
@SuppressFBWarnings("RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE")
|
||||||
public class SMTPConfiguration {
|
public class SMTPConfiguration {
|
||||||
|
|
||||||
public final static String ID = "CONFIG_ID";
|
public final static String ID = "CONFIG_ID";
|
||||||
@ -44,5 +46,4 @@ public class SMTPConfiguration {
|
|||||||
@Column
|
@Column
|
||||||
private String password;
|
private String password;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -39,12 +39,15 @@ public class Dossier {
|
|||||||
@Column
|
@Column
|
||||||
private String ownerId;
|
private String ownerId;
|
||||||
|
|
||||||
|
@Builder.Default
|
||||||
@ElementCollection
|
@ElementCollection
|
||||||
private Set<String> memberIds = new HashSet<>();
|
private Set<String> memberIds = new HashSet<>();
|
||||||
|
|
||||||
|
@Builder.Default
|
||||||
@ElementCollection
|
@ElementCollection
|
||||||
private Set<String> approverIds = new HashSet<>();
|
private Set<String> approverIds = new HashSet<>();
|
||||||
|
|
||||||
|
@Builder.Default
|
||||||
@ElementCollection
|
@ElementCollection
|
||||||
private Set<DownloadFileType> downloadFileTypes = new HashSet<>();
|
private Set<DownloadFileType> downloadFileTypes = new HashSet<>();
|
||||||
|
|
||||||
@ -69,12 +72,15 @@ public class Dossier {
|
|||||||
@Column(updatable = false, insertable = false, name = "dossier_template_id")
|
@Column(updatable = false, insertable = false, name = "dossier_template_id")
|
||||||
private String dossierTemplateId;
|
private String dossierTemplateId;
|
||||||
|
|
||||||
|
@Builder.Default
|
||||||
@ManyToMany(fetch = FetchType.LAZY, mappedBy = "dossiers")
|
@ManyToMany(fetch = FetchType.LAZY, mappedBy = "dossiers")
|
||||||
private List<ReportTemplate> reportTemplates = new ArrayList<>();
|
private List<ReportTemplate> reportTemplates = new ArrayList<>();
|
||||||
|
|
||||||
|
@Builder.Default
|
||||||
@OneToMany(cascade = CascadeType.ALL, mappedBy = "dossier")
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "dossier")
|
||||||
private List<Type> dossierTypes = new ArrayList<>();
|
private List<Type> dossierTypes = new ArrayList<>();
|
||||||
|
|
||||||
|
@Builder.Default
|
||||||
@OneToMany(cascade = CascadeType.ALL, mappedBy = "dossier")
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "dossier")
|
||||||
private List<DossierAttribute> dossierAttributes = new ArrayList<>();
|
private List<DossierAttribute> dossierAttributes = new ArrayList<>();
|
||||||
|
|
||||||
|
|||||||
@ -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 "";
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user