Class AbstractTransformationSourceOptions
- java.lang.Object
-
- org.alfresco.service.cmr.repository.AbstractTransformationSourceOptions
-
- All Implemented Interfaces:
java.lang.Cloneable,TransformationSourceOptions
- Direct Known Subclasses:
CropSourceOptions,PagedSourceOptions,TemporalSourceOptions
public abstract class AbstractTransformationSourceOptions extends java.lang.Object implements TransformationSourceOptions, java.lang.Cloneable
Base implementation of TransformationSourceOptions which holds applicable mimetypes and handles merge of options.- Author:
- Ray Gauss II
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.alfresco.service.cmr.repository.TransformationSourceOptions
TransformationSourceOptions.TransformationSourceOptionsSerializer
-
-
Constructor Summary
Constructors Constructor Description AbstractTransformationSourceOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected AbstractTransformationSourceOptionsclone()java.util.List<java.lang.String>getApplicabledMimetypes()Deprecated.java.util.List<java.lang.String>getApplicableMimetypes()Gets the list of applicable mimetypesbooleanisApplicableForMimetype(java.lang.String mimetype)Gets whether or not these transformation source options apply for the given mimetypeTransformationSourceOptionsmergedOptions(TransformationSourceOptions overridingOptions)Creates a newTransformationSourceOptionsobject from this one, merging any non-null overriding fields in the givenoverridingOptionsprotected voidputParameterIfNotNull(java.lang.String paramName, java.io.Serializable paramValue, java.util.Map<java.lang.String,java.io.Serializable> params)Adds the given paramValue to the given params if it's not null.voidsetApplicableMimetypes(java.util.List<java.lang.String> applicableMimetypes)Sets the list of applicable mimetypes-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.alfresco.service.cmr.repository.TransformationSourceOptions
getSerializer
-
-
-
-
Method Detail
-
getApplicabledMimetypes
public java.util.List<java.lang.String> getApplicabledMimetypes()
Deprecated.Description copied from interface:TransformationSourceOptionsGets the list of applicable mimetypes- Specified by:
getApplicabledMimetypesin interfaceTransformationSourceOptions- Returns:
- the applicable mimetypes
-
getApplicableMimetypes
public java.util.List<java.lang.String> getApplicableMimetypes()
Gets the list of applicable mimetypes- Specified by:
getApplicableMimetypesin interfaceTransformationSourceOptions- Returns:
- the applicable mimetypes
-
setApplicableMimetypes
public void setApplicableMimetypes(java.util.List<java.lang.String> applicableMimetypes)
Sets the list of applicable mimetypes- Parameters:
applicableMimetypes- the applicable mimetypes
-
isApplicableForMimetype
public boolean isApplicableForMimetype(java.lang.String mimetype)
Gets whether or not these transformation source options apply for the given mimetype- Specified by:
isApplicableForMimetypein interfaceTransformationSourceOptions- Parameters:
mimetype- the mimetype of the source- Returns:
- if these transformation source options apply
-
clone
protected AbstractTransformationSourceOptions clone() throws java.lang.CloneNotSupportedException
- Overrides:
clonein classjava.lang.Object- Throws:
java.lang.CloneNotSupportedException
-
mergedOptions
public TransformationSourceOptions mergedOptions(TransformationSourceOptions overridingOptions)
Creates a newTransformationSourceOptionsobject from this one, merging any non-null overriding fields in the givenoverridingOptions- Specified by:
mergedOptionsin interfaceTransformationSourceOptions- Parameters:
overridingOptions- TransformationSourceOptions- Returns:
- a merged
TransformationSourceOptionsobject
-
putParameterIfNotNull
protected void putParameterIfNotNull(java.lang.String paramName, java.io.Serializable paramValue, java.util.Map<java.lang.String,java.io.Serializable> params)Adds the given paramValue to the given params if it's not null.- Parameters:
paramName- StringparamValue- Serializable
-
-