Class TemporalSourceOptions
java.lang.Object
org.alfresco.service.cmr.repository.AbstractTransformationSourceOptions
org.alfresco.service.cmr.repository.TemporalSourceOptions
- All Implemented Interfaces:
Cloneable,TransformationSourceOptions
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 ClassesModifier and TypeClassDescriptionclassDeprecated.Serializer for temporal source optionsNested classes/interfaces inherited from interface org.alfresco.service.cmr.repository.TransformationSourceOptions
TransformationSourceOptions.TransformationSourceOptionsSerializer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Creates an instance of the options serializerDeprecated.Gets the duration of the source to read with a format of hh:mm:ss[.xxx]Deprecated.Gets the offset time code from which to start the transformation with a format of hh:mm:ss[.xxx]Deprecated.Gets the serializer for the source options.booleanisApplicableForMimetype(String sourceMimetype) Deprecated.Gets whether or not these transformation source options apply for the given mimetypemergedOptions(TransformationSourceOptions overridingOptions) Deprecated.Creates a newTransformationSourceOptionsobject from this one, merging any non-null overriding fields in the givenoverridingOptionsvoidsetDuration(String duration) Deprecated.Sets the duration of the source to read with a format of hh:mm:ss[.xxx]voidDeprecated.Sets the offset time code from which to start the transformation with a format of hh:mm:ss[.xxx]static voidvalidateTimeString(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
-
Constructor Details
-
TemporalSourceOptions
public TemporalSourceOptions()Deprecated.
-
-
Method Details
-
isApplicableForMimetype
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
Deprecated.Gets the offset time code from which to start the transformation with a format of hh:mm:ss[.xxx]- Returns:
- the offset
-
setOffset
Deprecated.Sets the offset time code from which to start the transformation with a format of hh:mm:ss[.xxx]- Parameters:
offset- String
-
getDuration
Deprecated.Gets the duration of the source to read with a format of hh:mm:ss[.xxx]- Returns:
- String
-
setDuration
Deprecated.Sets the duration of the source to read with a format of hh:mm:ss[.xxx]- Parameters:
duration- String
-
validateTimeString
Deprecated.Validates that the given value is of the form hh:mm:ss[.xxx]- Parameters:
value- String
-
mergedOptions
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
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
-