Class TemporalSourceOptions
- java.lang.Object
-
- org.alfresco.service.cmr.repository.AbstractTransformationSourceOptions
-
- org.alfresco.service.cmr.repository.TemporalSourceOptions
-
- All Implemented Interfaces:
java.lang.Cloneable,TransformationSourceOptions
@Deprecated public class TemporalSourceOptions extends AbstractTransformationSourceOptions
Deprecated.The transformations code is being moved out of the codebase and replaced by the new async RenditionService2 or other external libraries.Time-based content conversion options to specify an offset and duration. Useful for audio and video.If only the offset is specified transformers should attempt a transform from that offset to the end if possible.
If only a duration is specified transformers should attempt a transform from the start until that duration is reached if possible.
- Author:
- Ray Gauss II
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classTemporalSourceOptions.TemporalSourceOptionsSerializerDeprecated.Serializer for temporal source options-
Nested classes/interfaces inherited from interface org.alfresco.service.cmr.repository.TransformationSourceOptions
TransformationSourceOptions.TransformationSourceOptionsSerializer
-
-
Constructor Summary
Constructors Constructor Description TemporalSourceOptions()Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static TransformationSourceOptions.TransformationSourceOptionsSerializercreateSerializerInstance()Deprecated.Creates an instance of the options serializerjava.lang.StringgetDuration()Deprecated.Gets the duration of the source to read with a format of hh:mm:ss[.xxx]java.lang.StringgetOffset()Deprecated.Gets the offset time code from which to start the transformation with a format of hh:mm:ss[.xxx]TransformationSourceOptions.TransformationSourceOptionsSerializergetSerializer()Deprecated.Gets the serializer for the source options.booleanisApplicableForMimetype(java.lang.String sourceMimetype)Deprecated.Gets whether or not these transformation source options apply for the given mimetypeTransformationSourceOptionsmergedOptions(TransformationSourceOptions overridingOptions)Deprecated.Creates a newTransformationSourceOptionsobject from this one, merging any non-null overriding fields in the givenoverridingOptionsvoidsetDuration(java.lang.String duration)Deprecated.Sets the duration of the source to read with a format of hh:mm:ss[.xxx]voidsetOffset(java.lang.String offset)Deprecated.Sets the offset time code from which to start the transformation with a format of hh:mm:ss[.xxx]static voidvalidateTimeString(java.lang.String value)Deprecated.Validates that the given value is of the form hh:mm:ss[.xxx]-
Methods inherited from class org.alfresco.service.cmr.repository.AbstractTransformationSourceOptions
clone, getApplicabledMimetypes, getApplicableMimetypes, putParameterIfNotNull, setApplicableMimetypes
-
-
-
-
Method Detail
-
isApplicableForMimetype
public boolean isApplicableForMimetype(java.lang.String sourceMimetype)
Deprecated.Description copied from class:AbstractTransformationSourceOptionsGets whether or not these transformation source options apply for the given mimetype- Specified by:
isApplicableForMimetypein interfaceTransformationSourceOptions- Overrides:
isApplicableForMimetypein classAbstractTransformationSourceOptions- Parameters:
sourceMimetype- the mimetype of the source- Returns:
- if these transformation source options apply
-
getOffset
public java.lang.String getOffset()
Deprecated.Gets the offset time code from which to start the transformation with a format of hh:mm:ss[.xxx]- Returns:
- the offset
-
setOffset
public void setOffset(java.lang.String offset)
Deprecated.Sets the offset time code from which to start the transformation with a format of hh:mm:ss[.xxx]- Parameters:
offset- String
-
getDuration
public java.lang.String getDuration()
Deprecated.Gets the duration of the source to read with a format of hh:mm:ss[.xxx]- Returns:
- String
-
setDuration
public void setDuration(java.lang.String duration)
Deprecated.Sets the duration of the source to read with a format of hh:mm:ss[.xxx]- Parameters:
duration- String
-
validateTimeString
public static void validateTimeString(java.lang.String value)
Deprecated.Validates that the given value is of the form hh:mm:ss[.xxx]- Parameters:
value- String
-
mergedOptions
public TransformationSourceOptions mergedOptions(TransformationSourceOptions overridingOptions)
Deprecated.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
-
getSerializer
public TransformationSourceOptions.TransformationSourceOptionsSerializer getSerializer()
Deprecated.Description copied from interface:TransformationSourceOptionsGets the serializer for the source options.- Returns:
- the serializer
-
createSerializerInstance
public static TransformationSourceOptions.TransformationSourceOptionsSerializer createSerializerInstance()
Deprecated.Creates an instance of the options serializer- Returns:
- the options serializer
-
-