Class AbstractTransformationSourceOptions
- java.lang.Object
-
- org.alfresco.service.cmr.repository.AbstractTransformationSourceOptions
-
- All Implemented Interfaces:
Cloneable,TransformationSourceOptions
- Direct Known Subclasses:
CropSourceOptions,PagedSourceOptions,TemporalSourceOptions
public abstract class AbstractTransformationSourceOptions extends Object implements TransformationSourceOptions, 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()List<String>getApplicabledMimetypes()Deprecated.List<String>getApplicableMimetypes()Gets the list of applicable mimetypesbooleanisApplicableForMimetype(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(String paramName, Serializable paramValue, Map<String,Serializable> params)Adds the given paramValue to the given params if it's not null.voidsetApplicableMimetypes(List<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 List<String> getApplicabledMimetypes()
Deprecated.Description copied from interface:TransformationSourceOptionsGets the list of applicable mimetypes- Specified by:
getApplicabledMimetypesin interfaceTransformationSourceOptions- Returns:
- the applicable mimetypes
-
getApplicableMimetypes
public List<String> getApplicableMimetypes()
Gets the list of applicable mimetypes- Specified by:
getApplicableMimetypesin interfaceTransformationSourceOptions- Returns:
- the applicable mimetypes
-
setApplicableMimetypes
public void setApplicableMimetypes(List<String> applicableMimetypes)
Sets the list of applicable mimetypes- Parameters:
applicableMimetypes- the applicable mimetypes
-
isApplicableForMimetype
public boolean isApplicableForMimetype(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 CloneNotSupportedException
- Overrides:
clonein classObject- Throws:
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(String paramName, Serializable paramValue, Map<String,Serializable> params)
Adds the given paramValue to the given params if it's not null.- Parameters:
paramName- StringparamValue- Serializable
-
-