Pull request #685: RED-5787 - As an admin for Japan, I want to configure the horizontal and vertical alignment of watermarks to be able to adjust the placement
Merge in RED/persistence-service from RED-5787 to master * commit '55bca9f7d0b1afba9111159a801c6160ed12ee35': RED-5787 - As an admin for Japan, I want to configure the horizontal and vertical alignment of watermarks to be able to adjust the placement - remove default value RED-5787 - As an admin for Japan, I want to configure the horizontal and vertical alignment of watermarks to be able to adjust the placement - add 2 properties: vertical and horizontal alignment to watermark configuration
This commit is contained in:
commit
16de631c34
@ -15,6 +15,8 @@ import javax.persistence.ManyToOne;
|
|||||||
import javax.persistence.Table;
|
import javax.persistence.Table;
|
||||||
|
|
||||||
import com.iqser.red.service.persistence.management.v1.processor.entity.dossier.DossierTemplateEntity;
|
import com.iqser.red.service.persistence.management.v1.processor.entity.dossier.DossierTemplateEntity;
|
||||||
|
import com.iqser.red.service.persistence.service.v1.api.shared.model.dossiertemplate.configuration.HorizontalTextAlignment;
|
||||||
|
import com.iqser.red.service.persistence.service.v1.api.shared.model.dossiertemplate.configuration.VerticalTextAlignment;
|
||||||
import com.iqser.red.service.persistence.service.v1.api.shared.model.dossiertemplate.configuration.WatermarkOrientation;
|
import com.iqser.red.service.persistence.service.v1.api.shared.model.dossiertemplate.configuration.WatermarkOrientation;
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
@ -58,6 +60,12 @@ public class WatermarkEntity {
|
|||||||
@Column
|
@Column
|
||||||
@Enumerated(EnumType.STRING)
|
@Enumerated(EnumType.STRING)
|
||||||
private WatermarkOrientation orientation;
|
private WatermarkOrientation orientation;
|
||||||
|
@Column
|
||||||
|
@Enumerated(EnumType.STRING)
|
||||||
|
private HorizontalTextAlignment horizontalTextAlignment;
|
||||||
|
@Column
|
||||||
|
@Enumerated(EnumType.STRING)
|
||||||
|
private VerticalTextAlignment verticalTextAlignment;
|
||||||
|
|
||||||
@ManyToOne(fetch = FetchType.LAZY)
|
@ManyToOne(fetch = FetchType.LAZY)
|
||||||
@JoinColumn(name = "dossier_template_id")
|
@JoinColumn(name = "dossier_template_id")
|
||||||
|
|||||||
@ -129,3 +129,5 @@ databaseChangeLog:
|
|||||||
file: db/changelog/tenant/sql/203-acl-duplicate-cleanup.sql
|
file: db/changelog/tenant/sql/203-acl-duplicate-cleanup.sql
|
||||||
- include:
|
- include:
|
||||||
file: db/changelog/tenant/sql/203-spring-acl-constraints.changelog.sql
|
file: db/changelog/tenant/sql/203-spring-acl-constraints.changelog.sql
|
||||||
|
- include:
|
||||||
|
file: db/changelog/tenant/48-add-watermark-text-alignment.yaml
|
||||||
|
|||||||
@ -0,0 +1,14 @@
|
|||||||
|
databaseChangeLog:
|
||||||
|
- changeSet:
|
||||||
|
id: add-watermark-text-alignment
|
||||||
|
author: corinaolariu
|
||||||
|
changes:
|
||||||
|
- addColumn:
|
||||||
|
columns:
|
||||||
|
- column:
|
||||||
|
name: vertical_text_alignment
|
||||||
|
type: VARCHAR(20)
|
||||||
|
- column:
|
||||||
|
name: horizontal_text_alignment
|
||||||
|
type: VARCHAR(20)
|
||||||
|
tableName: watermark_configuration
|
||||||
@ -2,6 +2,8 @@ package com.iqser.red.service.persistence.service.v1.api.shared.model;
|
|||||||
|
|
||||||
import java.time.OffsetDateTime;
|
import java.time.OffsetDateTime;
|
||||||
|
|
||||||
|
import com.iqser.red.service.persistence.service.v1.api.shared.model.dossiertemplate.configuration.HorizontalTextAlignment;
|
||||||
|
import com.iqser.red.service.persistence.service.v1.api.shared.model.dossiertemplate.configuration.VerticalTextAlignment;
|
||||||
import com.iqser.red.service.persistence.service.v1.api.shared.model.dossiertemplate.configuration.WatermarkOrientation;
|
import com.iqser.red.service.persistence.service.v1.api.shared.model.dossiertemplate.configuration.WatermarkOrientation;
|
||||||
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
@ -43,5 +45,9 @@ public class WatermarkModel {
|
|||||||
private OffsetDateTime dateAdded;
|
private OffsetDateTime dateAdded;
|
||||||
@Schema(description = "The date when this watermark was last modified. Set by System on create.")
|
@Schema(description = "The date when this watermark was last modified. Set by System on create.")
|
||||||
private OffsetDateTime dateModified;
|
private OffsetDateTime dateModified;
|
||||||
|
@Schema(description = "The watermark horizontal text alignment")
|
||||||
|
private HorizontalTextAlignment horizontalTextAlignment;
|
||||||
|
@Schema(description = "The watermark vertical text alignment")
|
||||||
|
private VerticalTextAlignment verticalTextAlignment;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -0,0 +1,7 @@
|
|||||||
|
package com.iqser.red.service.persistence.service.v1.api.shared.model.dossiertemplate.configuration;
|
||||||
|
|
||||||
|
public enum HorizontalTextAlignment {
|
||||||
|
LEFT,
|
||||||
|
CENTER,
|
||||||
|
RIGHT
|
||||||
|
}
|
||||||
@ -0,0 +1,7 @@
|
|||||||
|
package com.iqser.red.service.persistence.service.v1.api.shared.model.dossiertemplate.configuration;
|
||||||
|
|
||||||
|
public enum VerticalTextAlignment {
|
||||||
|
TOP,
|
||||||
|
CENTER,
|
||||||
|
BOTTOM
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user