Class PagedSourceOptions
- java.lang.Object
-
- org.alfresco.service.cmr.repository.AbstractTransformationSourceOptions
-
- org.alfresco.service.cmr.repository.PagedSourceOptions
-
- All Implemented Interfaces:
java.lang.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
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.IntegerPAGE_1
-
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 java.util.List<java.lang.String>getDefaultApplicableMimetypes()java.lang.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.java.lang.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(java.lang.Integer endPageNumber)Sets the page number to end at in the source documentvoidsetStartPageNumber(java.lang.Integer startPageNumber)Sets the page number to start from in the source document-
Methods inherited from class org.alfresco.service.cmr.repository.AbstractTransformationSourceOptions
clone, getApplicabledMimetypes, getApplicableMimetypes, isApplicableForMimetype, putParameterIfNotNull, setApplicableMimetypes
-
-
-
-
Method Detail
-
getDefaultApplicableMimetypes
protected static java.util.List<java.lang.String> getDefaultApplicableMimetypes()
-
getStartPageNumber
public java.lang.Integer getStartPageNumber()
Gets the page number to start from in the source document- Returns:
- the start page number
-
setStartPageNumber
public void setStartPageNumber(java.lang.Integer startPageNumber)
Sets the page number to start from in the source document- Parameters:
startPageNumber- the start page number
-
getEndPageNumber
public java.lang.Integer getEndPageNumber()
Gets the page number to end at in the source document- Returns:
- the start page number
-
setEndPageNumber
public void setEndPageNumber(java.lang.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
-
-