Package org.alfresco.repo.thumbnail
Class ThumbnailDefinition
- java.lang.Object
-
- org.alfresco.repo.thumbnail.ThumbnailDefinition
-
@Deprecated public class ThumbnailDefinition extends java.lang.ObjectDeprecated.The thumbnails code is being moved out of the codebase and replaced by the new async RenditionService2 or other external libraries.This class provides the thumbnail details to the thumbnail service.- Author:
- Roy Wetherall
-
-
Constructor Summary
Constructors Constructor Description ThumbnailDefinition()Deprecated.Default constructorThumbnailDefinition(java.lang.String destinationMimetype, TransformationOptions options)Deprecated.ConstructorThumbnailDefinition(java.lang.String mimetype, TransformationOptions options, java.lang.String thumbnailName)Deprecated.Constructor.ThumbnailDefinition(java.lang.String mimetype, TransformationOptions options, java.lang.String thumbnailName, java.lang.String placeHolderResourcePath)Deprecated.Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(java.lang.Object o)Deprecated.FailureHandlingOptionsgetFailureHandlingOptions()Deprecated.Get thefailure options.java.lang.StringgetMimeAwarePlaceHolderResourcePath()Deprecated.java.lang.StringgetMimetype()Deprecated.Get the destination mimetypejava.lang.StringgetName()Deprecated.Gets the name of the thumbnailjava.lang.StringgetPlaceHolderResourcePath()Deprecated.java.lang.StringgetRunAs()Deprecated.ThumbnailRegistrygetThumbnailRegistry()Deprecated.Gets the thumbnail registryTransformationOptionsgetTransformationOptions()Deprecated.Get the transformation optionsinthashCode()Deprecated.voidregister()Deprecated.Registers the thumbnail definition with the thumbnail registry.voidsetFailureHandlingOptions(FailureHandlingOptions failureOptions)Deprecated.Set thefailure options.voidsetMimeAwarePlaceHolderResourcePath(java.lang.String mimeAwarePlaceHolderResourcePath)Deprecated.This method sets the mime-aware placeholder resource path template.voidsetMimetype(java.lang.String mimetype)Deprecated.Set the destination mimetypevoidsetName(java.lang.String thumbnailName)Deprecated.Sets the name of the thumbnailvoidsetPlaceHolderResourcePath(java.lang.String placeHolderResourcePath)Deprecated.This method sets the placeholder resource path.voidsetRunAs(java.lang.String runAs)Deprecated.voidsetThumbnailRegistry(ThumbnailRegistry thumbnailRegistry)Deprecated.Sets the thumbnail registryvoidsetTransformationOptions(TransformationOptions options)Deprecated.Set the transformation options
-
-
-
Constructor Detail
-
ThumbnailDefinition
public ThumbnailDefinition()
Deprecated.Default constructor
-
ThumbnailDefinition
public ThumbnailDefinition(java.lang.String destinationMimetype, TransformationOptions options)Deprecated.Constructor- Parameters:
destinationMimetype- Stringoptions- TransformationOptions
-
ThumbnailDefinition
public ThumbnailDefinition(java.lang.String mimetype, TransformationOptions options, java.lang.String thumbnailName)Deprecated.Constructor. Specify the name of the thumbnail.- Parameters:
thumbnailName- the name of the thumbnail, can be null
-
ThumbnailDefinition
public ThumbnailDefinition(java.lang.String mimetype, TransformationOptions options, java.lang.String thumbnailName, java.lang.String placeHolderResourcePath)Deprecated.Constructor. Specify the place holder thumbnail path.- Parameters:
mimetype- Stringoptions- TransformationOptionsthumbnailName- StringplaceHolderResourcePath- String
-
-
Method Detail
-
setMimetype
public void setMimetype(java.lang.String mimetype)
Deprecated.Set the destination mimetype- Parameters:
mimetype- the destination minetype
-
getMimetype
public java.lang.String getMimetype()
Deprecated.Get the destination mimetype- Returns:
- the destination mimetype
-
setTransformationOptions
public void setTransformationOptions(TransformationOptions options)
Deprecated.Set the transformation options- Parameters:
options- the transformation options
-
getTransformationOptions
public TransformationOptions getTransformationOptions()
Deprecated.Get the transformation options- Returns:
- the transformation options
-
setFailureHandlingOptions
public void setFailureHandlingOptions(FailureHandlingOptions failureOptions)
Deprecated.Set thefailure options.- Parameters:
failureOptions- the failure options.- Since:
- 3.5.0
-
getFailureHandlingOptions
public FailureHandlingOptions getFailureHandlingOptions()
Deprecated.Get thefailure options.- Returns:
- the failure options
- Since:
- 3.5.0
-
setName
public void setName(java.lang.String thumbnailName)
Deprecated.Sets the name of the thumbnail- Parameters:
thumbnailName- the thumbnail name
-
getName
public java.lang.String getName()
Deprecated.Gets the name of the thumbnail- Returns:
- String the name of the thumbnail, null if non specified
-
setRunAs
public void setRunAs(java.lang.String runAs)
Deprecated.
-
getRunAs
public java.lang.String getRunAs()
Deprecated.
-
setPlaceHolderResourcePath
public void setPlaceHolderResourcePath(java.lang.String placeHolderResourcePath)
Deprecated.This method sets the placeholder resource path.- Parameters:
placeHolderResourcePath- String
-
getPlaceHolderResourcePath
public java.lang.String getPlaceHolderResourcePath()
Deprecated.- Returns:
- String
-
setMimeAwarePlaceHolderResourcePath
public void setMimeAwarePlaceHolderResourcePath(java.lang.String mimeAwarePlaceHolderResourcePath)
Deprecated.This method sets the mime-aware placeholder resource path template.- Parameters:
mimeAwarePlaceHolderResourcePath- String- Since:
- 3.4.1 (Team)
-
getMimeAwarePlaceHolderResourcePath
public java.lang.String getMimeAwarePlaceHolderResourcePath()
Deprecated.- Returns:
- String
- Since:
- 3.4.1 (Team)
-
getThumbnailRegistry
public ThumbnailRegistry getThumbnailRegistry()
Deprecated.Gets the thumbnail registry- Returns:
- the thumbnail registry
-
setThumbnailRegistry
public void setThumbnailRegistry(ThumbnailRegistry thumbnailRegistry)
Deprecated.Sets the thumbnail registry- Parameters:
thumbnailRegistry- ThumbnailRegistry
-
register
public void register()
Deprecated.Registers the thumbnail definition with the thumbnail registry.- See Also:
setThumbnailRegistry(ThumbnailRegistry)
-
equals
public boolean equals(java.lang.Object o)
Deprecated.- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
Deprecated.- Overrides:
hashCodein classjava.lang.Object
-
-