@Transactional(readOnly=true) public class ThumbnailBeanReadOnly extends ThumbnailBean
ThumbnailBean
,
Serialized FormDEFAULT_COMPRESSION_QUALITY, DEFAULT_MIME_TYPE, DEFAULT_X_WIDTH, DEFAULT_Y_WIDTH
iQuery, iUpdate, metadata, queryFactory, readOnlyStatus, sec
Constructor and Description |
---|
ThumbnailBeanReadOnly(boolean checking)
overridden to allow Spring to set boolean
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getThumbnail(java.lang.Integer sizeX,
java.lang.Integer sizeY)
Retrieves a thumbnail for a pixels set using a given set of rendering
settings (RenderingDef).
|
byte[] |
getThumbnailByLongestSide(java.lang.Integer size)
Retrieves a thumbnail for a pixels set using a given set of rendering
settings (RenderingDef).
|
java.util.Map<java.lang.Long,byte[]> |
getThumbnailByLongestSideSet(java.lang.Integer size,
java.util.Set<java.lang.Long> pixelsIds)
Retrieves a number of thumbnails for pixels sets using given sets of
rendering settings (RenderingDef).
|
boolean |
setPixelsId(long id)
This method manages the state of the service; it must be invoked before
using any other methods.
|
activate, close, createThumbnail, createThumbnails, createThumbnailsByLongestSideSet, errorIfInvalidState, errorIfNullPixels, errorIfNullPixelsAndRenderingDef, errorIfNullRenderingDef, getCurrentEventContext, getRenderingDefId, getServiceInterface, getThumbnailByLongestSideDirect, getThumbnailDirect, getThumbnailForSectionByLongestSideDirect, getThumbnailForSectionDirect, getThumbnailSet, isDiskSpaceChecking, isInProgress, passivate, resetDefaults, setApplicationContext, setCompressionService, setDiskSpaceChecking, setInProgressImageResource, setIoService, setIPixels, setIRepositoryInfo, setLutProvider, setPixelDataService, setRenderingDefId, setScaleService, setSettingsService, thumbnailExists
getBeanHelper, getExtendedMetadata, getQueryFactory, getSecuritySystem, selfConfigure, setExtendedMetadata, setQueryFactory, setQueryService, setReadOnlyStatus, setSecuritySystem, setUpdateService
public ThumbnailBeanReadOnly(boolean checking)
public boolean setPixelsId(long id)
ThumbnailStore
ThumbnailStorerelies on the
RenderingEngine, a valid rendering definition must be available for it to work.
setPixelsId
in interface ThumbnailStore
setPixelsId
in class ThumbnailBean
id
- an Pixels
id.true
if a RenderingDef
exists for the
Pixels
set, otherwise false
public java.util.Map<java.lang.Long,byte[]> getThumbnailByLongestSideSet(java.lang.Integer size, java.util.Set<java.lang.Long> pixelsIds)
ThumbnailStore
ThumbnailStore.getThumbnailByLongestSideDirect(java.lang.Integer)
. The longest
side of the image will be used to calculate the size for the smaller
side in order to keep the aspect ratio of the original image. Unlike the
other thumbnail retrieval methods, this method may be called
without first calling ThumbnailStore.setPixelsId(long)
.getThumbnailByLongestSideSet
in interface ThumbnailStore
getThumbnailByLongestSideSet
in class ThumbnailBean
size
- the size of the longest side of the thumbnail requested.
null
specifies the default size of 48.pixelsIds
- the Pixels sets to retrieve thumbnails for.Map
whose keys are pixels ids and values are JPEG
thumbnail byte buffers or null
if an exception was thrown
while attempting to retrieve the thumbnail for that particular Pixels
set.ThumbnailStore.getThumbnailSet(Integer, Integer, Set)
public byte[] getThumbnail(java.lang.Integer sizeX, java.lang.Integer sizeY)
ThumbnailStore
ThumbnailStore.getThumbnailDirect(Integer, Integer)
, placed in the on-disk
cache and returned.getThumbnail
in interface ThumbnailStore
getThumbnail
in class ThumbnailBean
sizeX
- the X-axis width of the thumbnail. null
specifies the default size of 48.sizeY
- the Y-axis width of the thumbnail. null
specifies the default size of 48.ThumbnailStore.getThumbnailDirect(Integer, Integer)
public byte[] getThumbnailByLongestSide(java.lang.Integer size)
ThumbnailStore
ThumbnailStore.getThumbnailDirect(Integer, Integer)
, placed in the on-disk
cache and returned. The longest side of the image will be used to
calculate the size for the smaller side in order to keep the aspect
ratio of the original image.getThumbnailByLongestSide
in interface ThumbnailStore
getThumbnailByLongestSide
in class ThumbnailBean
size
- the size of the longest side of the thumbnail requested.
null
specifies the default size of 48.ThumbnailStore.getThumbnail(Integer, Integer)
Version: 5.4.6-ice35-b87
Copyright © 2018 The University of Dundee & Open Microscopy Environment. All Rights Reserved.