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:
parent
23d49172d5
commit
50d4900971
@ -15,6 +15,8 @@ import javax.persistence.ManyToOne;
|
||||
import javax.persistence.Table;
|
||||
|
||||
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 lombok.AllArgsConstructor;
|
||||
@ -58,6 +60,12 @@ public class WatermarkEntity {
|
||||
@Column
|
||||
@Enumerated(EnumType.STRING)
|
||||
private WatermarkOrientation orientation;
|
||||
@Column
|
||||
@Enumerated(EnumType.STRING)
|
||||
private HorizontalTextAlignment horizontalTextAlignment;
|
||||
@Column
|
||||
@Enumerated(EnumType.STRING)
|
||||
private VerticalTextAlignment verticalTextAlignment;
|
||||
|
||||
@ManyToOne(fetch = FetchType.LAZY)
|
||||
@JoinColumn(name = "dossier_template_id")
|
||||
|
||||
@ -129,3 +129,5 @@ databaseChangeLog:
|
||||
file: db/changelog/tenant/sql/203-acl-duplicate-cleanup.sql
|
||||
- include:
|
||||
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,16 @@
|
||||
databaseChangeLog:
|
||||
- changeSet:
|
||||
id: add-watermark-text-alignment
|
||||
author: corinaolariu
|
||||
changes:
|
||||
- addColumn:
|
||||
columns:
|
||||
- column:
|
||||
name: vertical_text_alignment
|
||||
type: VARCHAR(20)
|
||||
defaultValue: PUBLIC
|
||||
- column:
|
||||
name: horizontal_text_alignment
|
||||
type: VARCHAR(20)
|
||||
defaultValue: PUBLIC
|
||||
tableName: watermark_configuration
|
||||
@ -2,6 +2,8 @@ package com.iqser.red.service.persistence.service.v1.api.shared.model;
|
||||
|
||||
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 io.swagger.v3.oas.annotations.media.Schema;
|
||||
@ -43,5 +45,9 @@ public class WatermarkModel {
|
||||
private OffsetDateTime dateAdded;
|
||||
@Schema(description = "The date when this watermark was last modified. Set by System on create.")
|
||||
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