Class PagedSourceOptions
- java.lang.Object
-
- org.alfresco.service.cmr.repository.AbstractTransformationSourceOptions
-
- org.alfresco.service.cmr.repository.PagedSourceOptions
-
- All Implemented Interfaces:
Cloneable,TransformationSourceOptions
public class PagedSourceOptions extends AbstractTransformationSourceOptions
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 Classes Modifier and Type Class Description classPagedSourceOptions.PagedSourceOptionsSerializerSerializer for paged source options-
Nested classes/interfaces inherited from interface org.alfresco.service.cmr.repository.TransformationSourceOptions
TransformationSourceOptions.TransformationSourceOptionsSerializer
-
-
Constructor Summary
Constructors Constructor Description PagedSourceOptions()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TransformationSourceOptions.TransformationSourceOptionsSerializercreateSerializerInstance()Creates an instance of the options serializerprotected static List<String>getDefaultApplicableMimetypes()IntegergetEndPageNumber()Gets the page number to end at in the source documentstatic PagedSourceOptionsgetPage1Instance()Gets paged source options which specify just the first page.TransformationSourceOptions.TransformationSourceOptionsSerializergetSerializer()Gets the serializer for the source options.IntegergetStartPageNumber()Gets the page number to start from in the source documentTransformationSourceOptionsmergedOptions(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 documentStringtoString()-
Methods inherited from class org.alfresco.service.cmr.repository.AbstractTransformationSourceOptions
clone, getApplicabledMimetypes, getApplicableMimetypes, isApplicableForMimetype, putParameterIfNotNull, setApplicableMimetypes
-
-
-
-
Field Detail
-
PAGE_1
public static final Integer PAGE_1
-
-
Method Detail
-
getStartPageNumber
public Integer getStartPageNumber()
Gets the page number to start from in the source document- Returns:
- the start page number
-
setStartPageNumber
public void setStartPageNumber(Integer startPageNumber)
Sets the page number to start from in the source document- Parameters:
startPageNumber- the start page number
-
getEndPageNumber
public Integer getEndPageNumber()
Gets the page number to end at in the source document- Returns:
- the start page number
-
setEndPageNumber
public void setEndPageNumber(Integer endPageNumber)
Sets the page number to end at in the source document- Parameters:
endPageNumber- the end page number
-
mergedOptions
public TransformationSourceOptions mergedOptions(TransformationSourceOptions overridingOptions)
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
public static PagedSourceOptions getPage1Instance()
Gets paged source options which specify just the first page.- Returns:
- the page one source options
-
getSerializer
public TransformationSourceOptions.TransformationSourceOptionsSerializer 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
-
-