@Component @Scope(value="request", proxyMode=TARGET_CLASS) public class ThumbManager extends Object
Thumb
Modifier and Type | Field and Description |
---|---|
protected Cache |
cache |
protected Config.PrivateDir |
privateDirConfig |
protected Config.Thumbnails |
thumbnailsConfig |
Constructor and Description |
---|
ThumbManager() |
Modifier and Type | Method and Description |
---|---|
void |
deleteThumbs(ResourceType resourceType,
String folderPath,
String fileName)
Removes all thumbnail images generated for given image file.
|
Thumb |
getThumbnail(ResourceType resourceType,
String folderPath,
String fileName,
ImageSize requestedSize)
Returns a thumbnail image generated for given image file.
|
@Autowired protected Cache cache
@Autowired protected Config.PrivateDir privateDirConfig
@Autowired protected Config.Thumbnails thumbnailsConfig
public Thumb getThumbnail(ResourceType resourceType, String folderPath, String fileName, ImageSize requestedSize) throws IOException
resourceType
- resource typefolderPath
- folder pathfileName
- file namerequestedSize
- requested thumb sizeIOException
- in case of any processing exceptionpublic void deleteThumbs(ResourceType resourceType, String folderPath, String fileName)
resourceType
- resource typefolderPath
- folder pathfileName
- image file nameCopyright © 2007 – 2019 CKSource - Frederico Knabben. All rights reserved.