Class PageWatermark
java.lang.Object
com.polarion.alm.tracker.exporter.configuration.PageWatermark
Specify a watermark for an exporter.
A watermark image is stored in the repository or provided as a stream (see
PageWatermark.Builder.withImageContent(Supplier)
).
The Watermark's name MUST start with the folder name they are stored in.
For example, confidential_portrait_A4.png must be in the .polarion/wiki/watermarks/confidential folder.
(Relative to the project or repository root.)
The file name can contain additional parameters separated by an "_" that define the orientation and paper size.
(Based on the ids of the respective enumeration options.)
Examples of file names for a watermark with a "confidential" id, found in the "confidential" folder, could include:
confidential.png
confidential_portrait.png
confidential_portrait_A4.png- Since:
- 3.17.1
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic PageWatermark.Builder
create()
Creates an empty builder.Creates a builder with the prefilled values from the current instance.boolean
int
hashCode()
id()
Gets the content of the image to be used as the watermark.opacity()
-
Method Details
-
hashCode
public int hashCode() -
equals
-
id
-
opacity
-
imageContent
Gets the content of the image to be used as the watermark. If null is returned, the image will be searched for in the repository by id.- See Also:
-
create
Creates an empty builder. -
createCopy
Creates a builder with the prefilled values from the current instance.
-