Package net.webpdf.wsclient.openapi
Class OperationRedactAnnotation
- java.lang.Object
-
- net.webpdf.wsclient.openapi.OperationRedactAnnotation
-
public class OperationRedactAnnotation extends Object
An annotation that marks page content for redaction.
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_COLORstatic StringJSON_PROPERTY_CONTENTSstatic StringJSON_PROPERTY_CREATORstatic StringJSON_PROPERTY_HIDDENstatic StringJSON_PROPERTY_INTENTSstatic StringJSON_PROPERTY_INTERIOR_COLORstatic StringJSON_PROPERTY_INVISIBLEstatic StringJSON_PROPERTY_LOCKEDstatic StringJSON_PROPERTY_NAMEstatic StringJSON_PROPERTY_OPACITYstatic StringJSON_PROPERTY_PAGEstatic StringJSON_PROPERTY_POSITIONstatic StringJSON_PROPERTY_PRINTABLEstatic StringJSON_PROPERTY_ROTATABLEstatic StringJSON_PROPERTY_SUBJECTstatic StringJSON_PROPERTY_VIEWABLEstatic StringJSON_PROPERTY_WRITABLEstatic StringJSON_PROPERTY_ZOOMABLE
-
Constructor Summary
Constructors Constructor Description OperationRedactAnnotation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OperationRedactAnnotationcolor(String color)OperationRedactAnnotationcontents(String contents)OperationRedactAnnotationcreator(String creator)booleanequals(Object o)@Nullable StringgetColor()The annotation color will change the main color of visible annotations.@Nullable StringgetContents()This value is used to configure the text content of the annotation, with the way in which it is displayed depending heavily on the specific annotation type (for example, in the case of a text note, this would be the text content of the annotation's popup).@Nullable StringgetCreator()Used to specify the author of the annotation.@Nullable BooleangetHidden()If this value is set to true, the annotation will not be shown on the page and will not be printed either.@Nullable StringgetIntents()Used to set the intention of the annotation.@Nullable StringgetInteriorColor()The annotation color will change the interior color of visible annotations.@Nullable BooleangetInvisible()If this value is set to true, the annotation will be visible on the page only when printed, and provided it is a PDF standard annotation.@Nullable BooleangetLocked()If this value is set to true, the annotation will be locked so that no changes can be made to it.@Nullable StringgetName()Used to specify the name of the annotation.@Nullable IntegergetOpacity()This percentage value is used to set the annotation's transparency.@Nullable IntegergetPage()Set the number of the page, the annotation shall be placed on.@Nullable OperationPositionRedactAnnotationgetPosition()Get position@Nullable BooleangetPrintable()If this value is set to true, the annotation will be included when the page is printed out.@Nullable BooleangetRotatable()If this value is set to true, the annotation shall be rotatable according to the displayed page rotation.@Nullable StringgetSubject()Used to specify the subject of the annotation.@Nullable BooleangetViewable()If this value is set to true, the annotation will be shown on the document's page.@Nullable BooleangetWritable()If this value is set to true, it will be possible to change the annotation's contents later on.@Nullable BooleangetZoomable()If this value is set to true, the annotation will adjust its own zoom factor as required for the page in order to always be clearly readable / recognizable.inthashCode()OperationRedactAnnotationhidden(Boolean hidden)OperationRedactAnnotationintents(String intents)OperationRedactAnnotationinteriorColor(String interiorColor)OperationRedactAnnotationinvisible(Boolean invisible)OperationRedactAnnotationlocked(Boolean locked)OperationRedactAnnotationname(String name)OperationRedactAnnotationopacity(Integer opacity)OperationRedactAnnotationpage(Integer page)OperationRedactAnnotationposition(OperationPositionRedactAnnotation position)OperationRedactAnnotationprintable(Boolean printable)OperationRedactAnnotationrotatable(Boolean rotatable)voidsetColor(String color)voidsetContents(String contents)voidsetCreator(String creator)voidsetHidden(Boolean hidden)voidsetIntents(String intents)voidsetInteriorColor(String interiorColor)voidsetInvisible(Boolean invisible)voidsetLocked(Boolean locked)voidsetName(String name)voidsetOpacity(Integer opacity)voidsetPage(Integer page)voidsetPosition(OperationPositionRedactAnnotation position)voidsetPrintable(Boolean printable)voidsetRotatable(Boolean rotatable)voidsetSubject(String subject)voidsetViewable(Boolean viewable)voidsetWritable(Boolean writable)voidsetZoomable(Boolean zoomable)OperationRedactAnnotationsubject(String subject)StringtoString()OperationRedactAnnotationviewable(Boolean viewable)OperationRedactAnnotationwritable(Boolean writable)OperationRedactAnnotationzoomable(Boolean zoomable)
-
-
-
Field Detail
-
JSON_PROPERTY_COLOR
public static final String JSON_PROPERTY_COLOR
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CONTENTS
public static final String JSON_PROPERTY_CONTENTS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CREATOR
public static final String JSON_PROPERTY_CREATOR
- See Also:
- Constant Field Values
-
JSON_PROPERTY_HIDDEN
public static final String JSON_PROPERTY_HIDDEN
- See Also:
- Constant Field Values
-
JSON_PROPERTY_INTENTS
public static final String JSON_PROPERTY_INTENTS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_INTERIOR_COLOR
public static final String JSON_PROPERTY_INTERIOR_COLOR
- See Also:
- Constant Field Values
-
JSON_PROPERTY_INVISIBLE
public static final String JSON_PROPERTY_INVISIBLE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_LOCKED
public static final String JSON_PROPERTY_LOCKED
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NAME
public static final String JSON_PROPERTY_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_OPACITY
public static final String JSON_PROPERTY_OPACITY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAGE
public static final String JSON_PROPERTY_PAGE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_POSITION
public static final String JSON_PROPERTY_POSITION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PRINTABLE
public static final String JSON_PROPERTY_PRINTABLE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ROTATABLE
public static final String JSON_PROPERTY_ROTATABLE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SUBJECT
public static final String JSON_PROPERTY_SUBJECT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_VIEWABLE
public static final String JSON_PROPERTY_VIEWABLE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_WRITABLE
public static final String JSON_PROPERTY_WRITABLE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ZOOMABLE
public static final String JSON_PROPERTY_ZOOMABLE
- See Also:
- Constant Field Values
-
-
Method Detail
-
color
public OperationRedactAnnotation color(String color)
-
getColor
@Nullable public @Nullable String getColor()
The annotation color will change the main color of visible annotations. The color needs to be specified as a hexadecimal RGB value with a number sign before it.- Returns:
- color
-
setColor
public void setColor(String color)
-
contents
public OperationRedactAnnotation contents(String contents)
-
getContents
@Nullable public @Nullable String getContents()
This value is used to configure the text content of the annotation, with the way in which it is displayed depending heavily on the specific annotation type (for example, in the case of a text note, this would be the text content of the annotation's popup).- Returns:
- contents
-
setContents
public void setContents(String contents)
-
creator
public OperationRedactAnnotation creator(String creator)
-
getCreator
@Nullable public @Nullable String getCreator()
Used to specify the author of the annotation.- Returns:
- creator
-
setCreator
public void setCreator(String creator)
-
hidden
public OperationRedactAnnotation hidden(Boolean hidden)
-
getHidden
@Nullable public @Nullable Boolean getHidden()
If this value is set to true, the annotation will not be shown on the page and will not be printed either.- Returns:
- hidden
-
setHidden
public void setHidden(Boolean hidden)
-
intents
public OperationRedactAnnotation intents(String intents)
-
getIntents
@Nullable public @Nullable String getIntents()
Used to set the intention of the annotation. **Important:** The intention of an annotation can directly influence it's behaviour and may serve different purposes for different annotation types. Only set this directly, if you know it is necessary and possible to do so.- Returns:
- intents
-
setIntents
public void setIntents(String intents)
-
interiorColor
public OperationRedactAnnotation interiorColor(String interiorColor)
-
getInteriorColor
@Nullable public @Nullable String getInteriorColor()
The annotation color will change the interior color of visible annotations. The color needs to be specified as a hexadecimal RGB value with a number sign before it.- Returns:
- interiorColor
-
setInteriorColor
public void setInteriorColor(String interiorColor)
-
invisible
public OperationRedactAnnotation invisible(Boolean invisible)
-
getInvisible
@Nullable public @Nullable Boolean getInvisible()
If this value is set to true, the annotation will be visible on the page only when printed, and provided it is a PDF standard annotation.- Returns:
- invisible
-
setInvisible
public void setInvisible(Boolean invisible)
-
locked
public OperationRedactAnnotation locked(Boolean locked)
-
getLocked
@Nullable public @Nullable Boolean getLocked()
If this value is set to true, the annotation will be locked so that no changes can be made to it.- Returns:
- locked
-
setLocked
public void setLocked(Boolean locked)
-
name
public OperationRedactAnnotation name(String name)
-
getName
@Nullable public @Nullable String getName()
Used to specify the name of the annotation.- Returns:
- name
-
setName
public void setName(String name)
-
opacity
public OperationRedactAnnotation opacity(Integer opacity)
-
getOpacity
@Nullable public @Nullable Integer getOpacity()
This percentage value is used to set the annotation's transparency. minimum: 0 maximum: 100- Returns:
- opacity
-
setOpacity
public void setOpacity(Integer opacity)
-
page
public OperationRedactAnnotation page(Integer page)
-
getPage
@Nullable public @Nullable Integer getPage()
Set the number of the page, the annotation shall be placed on. minimum: 1- Returns:
- page
-
setPage
public void setPage(Integer page)
-
position
public OperationRedactAnnotation position(OperationPositionRedactAnnotation position)
-
getPosition
@Nullable public @Nullable OperationPositionRedactAnnotation getPosition()
Get position- Returns:
- position
-
setPosition
public void setPosition(OperationPositionRedactAnnotation position)
-
printable
public OperationRedactAnnotation printable(Boolean printable)
-
getPrintable
@Nullable public @Nullable Boolean getPrintable()
If this value is set to true, the annotation will be included when the page is printed out.- Returns:
- printable
-
setPrintable
public void setPrintable(Boolean printable)
-
rotatable
public OperationRedactAnnotation rotatable(Boolean rotatable)
-
getRotatable
@Nullable public @Nullable Boolean getRotatable()
If this value is set to true, the annotation shall be rotatable according to the displayed page rotation.- Returns:
- rotatable
-
setRotatable
public void setRotatable(Boolean rotatable)
-
subject
public OperationRedactAnnotation subject(String subject)
-
getSubject
@Nullable public @Nullable String getSubject()
Used to specify the subject of the annotation.- Returns:
- subject
-
setSubject
public void setSubject(String subject)
-
viewable
public OperationRedactAnnotation viewable(Boolean viewable)
-
getViewable
@Nullable public @Nullable Boolean getViewable()
If this value is set to true, the annotation will be shown on the document's page.- Returns:
- viewable
-
setViewable
public void setViewable(Boolean viewable)
-
writable
public OperationRedactAnnotation writable(Boolean writable)
-
getWritable
@Nullable public @Nullable Boolean getWritable()
If this value is set to true, it will be possible to change the annotation's contents later on.- Returns:
- writable
-
setWritable
public void setWritable(Boolean writable)
-
zoomable
public OperationRedactAnnotation zoomable(Boolean zoomable)
-
getZoomable
@Nullable public @Nullable Boolean getZoomable()
If this value is set to true, the annotation will adjust its own zoom factor as required for the page in order to always be clearly readable / recognizable.- Returns:
- zoomable
-
setZoomable
public void setZoomable(Boolean zoomable)
-
-