Class PagedSourceOptions
java.lang.Object
org.alfresco.service.cmr.repository.AbstractTransformationSourceOptions
org.alfresco.service.cmr.repository.PagedSourceOptions
- All Implemented Interfaces:
Cloneable,TransformationSourceOptions
Paged content conversion options to specify a page number range.
The page numbering index starts with 1.
If only the start page number is specified transformers should attempt a page range from that page number to the end if possible.
If only an end page number is specified transformers should attempt a page range from the start to that page if possible.
- Author:
- Ray Gauss II
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassSerializer for paged source optionsNested classes/interfaces inherited from interface org.alfresco.service.cmr.repository.TransformationSourceOptions
TransformationSourceOptions.TransformationSourceOptionsSerializer -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates an instance of the options serializerGets the page number to end at in the source documentstatic PagedSourceOptionsGets paged source options which specify just the first page.Gets the serializer for the source options.Gets the page number to start from in the source documentmergedOptions(TransformationSourceOptions overridingOptions) Creates a newTransformationSourceOptionsobject from this one, merging any non-null overriding fields in the givenoverridingOptionsvoidsetEndPageNumber(Integer endPageNumber) Sets the page number to end at in the source documentvoidsetStartPageNumber(Integer startPageNumber) Sets the page number to start from in the source documenttoString()Methods inherited from class org.alfresco.service.cmr.repository.AbstractTransformationSourceOptions
clone, getApplicabledMimetypes, getApplicableMimetypes, isApplicableForMimetype, putParameterIfNotNull, setApplicableMimetypes
-
Field Details
-
PAGE_1
-
-
Constructor Details
-
PagedSourceOptions
public PagedSourceOptions()
-
-
Method Details
-
getDefaultApplicableMimetypes
-
getStartPageNumber
Gets the page number to start from in the source document- Returns:
- the start page number
-
setStartPageNumber
Sets the page number to start from in the source document- Parameters:
startPageNumber- the start page number
-
getEndPageNumber
Gets the page number to end at in the source document- Returns:
- the start page number
-
setEndPageNumber
Sets the page number to end at in the source document- Parameters:
endPageNumber- the end page number
-
mergedOptions
Description copied from class:AbstractTransformationSourceOptionsCreates a newTransformationSourceOptionsobject from this one, merging any non-null overriding fields in the givenoverridingOptions- Specified by:
mergedOptionsin interfaceTransformationSourceOptions- Overrides:
mergedOptionsin classAbstractTransformationSourceOptions- Parameters:
overridingOptions- TransformationSourceOptions- Returns:
- a merged
TransformationSourceOptionsobject
-
getPage1Instance
Gets paged source options which specify just the first page.- Returns:
- the page one source options
-
getSerializer
Description copied from interface:TransformationSourceOptionsGets the serializer for the source options.- Returns:
- the serializer
-
createSerializerInstance
public static TransformationSourceOptions.TransformationSourceOptionsSerializer createSerializerInstance()Creates an instance of the options serializer- Returns:
- the options serializer
-
toString
-