Class TemporalSourceOptions
- java.lang.Object
-
- org.alfresco.service.cmr.repository.AbstractTransformationSourceOptions
-
- org.alfresco.service.cmr.repository.TemporalSourceOptions
-
- All Implemented Interfaces:
java.lang.Cloneable,TransformationSourceOptions
public class TemporalSourceOptions extends AbstractTransformationSourceOptions
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.TemporalSourceOptionsSerializerSerializer for temporal source options-
Nested classes/interfaces inherited from interface org.alfresco.service.cmr.repository.TransformationSourceOptions
TransformationSourceOptions.TransformationSourceOptionsSerializer
-
-
Constructor Summary
Constructors Constructor Description TemporalSourceOptions()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TransformationSourceOptions.TransformationSourceOptionsSerializercreateSerializerInstance()Creates an instance of the options serializerjava.lang.StringgetDuration()Gets the duration of the source to read with a format of hh:mm:ss[.xxx]java.lang.StringgetOffset()Gets the offset time code from which to start the transformation with a format of hh:mm:ss[.xxx]TransformationSourceOptions.TransformationSourceOptionsSerializergetSerializer()Gets the serializer for the source options.booleanisApplicableForMimetype(java.lang.String sourceMimetype)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 givenoverridingOptionsvoidsetDuration(java.lang.String duration)Sets the duration of the source to read with a format of hh:mm:ss[.xxx]voidsetOffset(java.lang.String offset)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)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)
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()
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)
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()
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)
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)
Validates that the given value is of the form hh:mm:ss[.xxx]- Parameters:
value- String
-
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
-
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
-
-