@Transactional(readOnly=true) public class ThumbnailBean extends AbstractLevel2Service implements org.springframework.context.ApplicationContextAware, ome.api.ThumbnailStore, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static float |
DEFAULT_COMPRESSION_QUALITY
The default compression quality in fractional percent.
|
static java.lang.String |
DEFAULT_MIME_TYPE
The default MIME type.
|
static int |
DEFAULT_X_WIDTH
The default X-width for a thumbnail.
|
static int |
DEFAULT_Y_WIDTH
The default Y-width for a thumbnail.
|
iQuery, iUpdate, metadata, queryFactory, readOnlyStatus, sec
Constructor and Description |
---|
ThumbnailBean(boolean checking)
overridden to allow Spring to set boolean
|
Modifier and Type | Method and Description |
---|---|
void |
activate() |
void |
close() |
void |
createThumbnail(java.lang.Integer sizeX,
java.lang.Integer sizeY) |
void |
createThumbnails() |
void |
createThumbnailsByLongestSideSet(java.lang.Integer size,
java.util.Set<java.lang.Long> pixelsIds) |
protected void |
errorIfInvalidState() |
protected void |
errorIfNullPixels() |
protected void |
errorIfNullPixelsAndRenderingDef() |
protected void |
errorIfNullRenderingDef() |
ome.system.EventContext |
getCurrentEventContext() |
long |
getRenderingDefId() |
java.lang.Class<? extends ome.api.ServiceInterface> |
getServiceInterface() |
byte[] |
getThumbnail(java.lang.Integer sizeX,
java.lang.Integer sizeY) |
byte[] |
getThumbnailByLongestSide(java.lang.Integer size) |
byte[] |
getThumbnailByLongestSideDirect(java.lang.Integer size) |
java.util.Map<java.lang.Long,byte[]> |
getThumbnailByLongestSideSet(java.lang.Integer size,
java.util.Set<java.lang.Long> pixelsIds) |
byte[] |
getThumbnailDirect(java.lang.Integer sizeX,
java.lang.Integer sizeY) |
byte[] |
getThumbnailForSectionByLongestSideDirect(int theZ,
int theT,
java.lang.Integer size) |
byte[] |
getThumbnailForSectionDirect(int theZ,
int theT,
java.lang.Integer sizeX,
java.lang.Integer sizeY) |
java.util.Map<java.lang.Long,byte[]> |
getThumbnailSet(java.lang.Integer sizeX,
java.lang.Integer sizeY,
java.util.Set<java.lang.Long> pixelsIds) |
byte[] |
getThumbnailWithoutDefault(java.lang.Integer sizeX,
java.lang.Integer sizeY) |
boolean |
isDiskSpaceChecking() |
boolean |
isInProgress() |
void |
passivate() |
void |
resetDefaults() |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setCompressionService(LocalCompress compressionService)
Compression service Bean injector.
|
void |
setDiskSpaceChecking(boolean diskSpaceChecking) |
void |
setInProgressImageResource(org.springframework.core.io.Resource inProgressImageResource)
In-progress image resource Bean injector.
|
void |
setIoService(ome.io.nio.ThumbnailService ioService)
I/O service (ThumbnailService) Bean injector.
|
void |
setIPixels(ome.api.IPixels iPixels)
Pixels service Bean injector.
|
void |
setIRepositoryInfo(ome.api.IRepositoryInfo iRepositoryInfo)
Disk Space Usage service Bean injector
|
void |
setLutProvider(omeis.providers.re.lut.LutProvider lutProvider)
Lookup table provider Bean injector.
|
void |
setPixelDataService(ome.io.nio.PixelsService pixelDataService)
Pixels data service Bean injector.
|
boolean |
setPixelsId(long id) |
void |
setRenderingDefId(long id) |
void |
setScaleService(ome.api.IScale iScale)
Scale service Bean injector.
|
void |
setSettingsService(ome.api.IRenderingSettings settingsService)
Rendering settings service Bean injector.
|
boolean |
thumbnailExists(java.lang.Integer sizeX,
java.lang.Integer sizeY) |
getBeanHelper, getExtendedMetadata, getQueryFactory, getSecuritySystem, selfConfigure, setExtendedMetadata, setQueryFactory, setQueryService, setReadOnlyStatus, setSecuritySystem, setUpdateService
public static final int DEFAULT_X_WIDTH
public static final int DEFAULT_Y_WIDTH
public static final float DEFAULT_COMPRESSION_QUALITY
public static final java.lang.String DEFAULT_MIME_TYPE
public ThumbnailBean(boolean checking)
checking
- public java.lang.Class<? extends ome.api.ServiceInterface> getServiceInterface()
getServiceInterface
in interface ome.system.SelfConfigurableService
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
@Transactional(readOnly=true) public void passivate()
passivate
in interface ome.api.StatefulServiceInterface
@Transactional(readOnly=true) public void activate()
activate
in interface ome.api.StatefulServiceInterface
public void close()
close
in interface ome.api.StatefulServiceInterface
public long getRenderingDefId()
getRenderingDefId
in interface ome.api.ThumbnailStore
public ome.system.EventContext getCurrentEventContext()
getCurrentEventContext
in interface ome.api.StatefulServiceInterface
@Transactional(readOnly=false) public boolean setPixelsId(long id)
setPixelsId
in interface ome.api.ThumbnailStore
public boolean isInProgress()
isInProgress
in interface ome.api.ThumbnailStore
public void setRenderingDefId(long id)
setRenderingDefId
in interface ome.api.ThumbnailStore
public void setLutProvider(omeis.providers.re.lut.LutProvider lutProvider)
lutProvider
- The lookup table provider we'll be providing to
the renderer.public void setInProgressImageResource(org.springframework.core.io.Resource inProgressImageResource)
inProgressImageResource
- The in-progress image resource we'll be
using for in progress images.public void setPixelDataService(ome.io.nio.PixelsService pixelDataService)
pixelDataService
- a PixelsService
.public void setIPixels(ome.api.IPixels iPixels)
iPixels
- an IPixels
.public void setScaleService(ome.api.IScale iScale)
iScale
- an IScale
.public void setIoService(ome.io.nio.ThumbnailService ioService)
ioService
- a ThumbnailService
.public final void setIRepositoryInfo(ome.api.IRepositoryInfo iRepositoryInfo)
iRepositoryInfo
- an IRepositoryInfo
public void setCompressionService(LocalCompress compressionService)
compressionService
- an ICompress
.public void setSettingsService(ome.api.IRenderingSettings settingsService)
settingsService
- an IRenderingSettings
.protected void errorIfInvalidState()
protected void errorIfNullPixelsAndRenderingDef()
protected void errorIfNullPixels()
protected void errorIfNullRenderingDef()
@Transactional(readOnly=false) public void createThumbnail(java.lang.Integer sizeX, java.lang.Integer sizeY)
createThumbnail
in interface ome.api.ThumbnailStore
@Transactional(readOnly=false) public void createThumbnails()
createThumbnails
in interface ome.api.ThumbnailStore
@Transactional(readOnly=false) public void createThumbnailsByLongestSideSet(java.lang.Integer size, java.util.Set<java.lang.Long> pixelsIds)
createThumbnailsByLongestSideSet
in interface ome.api.ThumbnailStore
@Transactional(readOnly=false) public java.util.Map<java.lang.Long,byte[]> getThumbnailSet(java.lang.Integer sizeX, java.lang.Integer sizeY, java.util.Set<java.lang.Long> pixelsIds)
getThumbnailSet
in interface ome.api.ThumbnailStore
@Transactional(readOnly=false) public java.util.Map<java.lang.Long,byte[]> getThumbnailByLongestSideSet(java.lang.Integer size, java.util.Set<java.lang.Long> pixelsIds)
getThumbnailByLongestSideSet
in interface ome.api.ThumbnailStore
@Transactional(readOnly=false) public byte[] getThumbnail(java.lang.Integer sizeX, java.lang.Integer sizeY)
getThumbnail
in interface ome.api.ThumbnailStore
@Transactional(readOnly=false) public byte[] getThumbnailWithoutDefault(java.lang.Integer sizeX, java.lang.Integer sizeY)
getThumbnailWithoutDefault
in interface ome.api.ThumbnailStore
@Transactional(readOnly=false) public byte[] getThumbnailByLongestSide(java.lang.Integer size)
getThumbnailByLongestSide
in interface ome.api.ThumbnailStore
public byte[] getThumbnailDirect(java.lang.Integer sizeX, java.lang.Integer sizeY)
getThumbnailDirect
in interface ome.api.ThumbnailStore
public byte[] getThumbnailForSectionDirect(int theZ, int theT, java.lang.Integer sizeX, java.lang.Integer sizeY)
getThumbnailForSectionDirect
in interface ome.api.ThumbnailStore
public byte[] getThumbnailByLongestSideDirect(java.lang.Integer size)
getThumbnailByLongestSideDirect
in interface ome.api.ThumbnailStore
public byte[] getThumbnailForSectionByLongestSideDirect(int theZ, int theT, java.lang.Integer size)
getThumbnailForSectionByLongestSideDirect
in interface ome.api.ThumbnailStore
public boolean thumbnailExists(java.lang.Integer sizeX, java.lang.Integer sizeY)
thumbnailExists
in interface ome.api.ThumbnailStore
@Transactional(readOnly=false) public void resetDefaults()
resetDefaults
in interface ome.api.ThumbnailStore
public boolean isDiskSpaceChecking()
public void setDiskSpaceChecking(boolean diskSpaceChecking)