Package ome.services
Class ThumbnailBeanReadOnly
- java.lang.Object
-
- ome.logic.AbstractLevel2Service
-
- ome.services.ThumbnailBean
-
- ome.services.ThumbnailBeanReadOnly
-
- All Implemented Interfaces:
java.io.Serializable
,ome.api.ServiceInterface
,ome.api.StatefulServiceInterface
,ome.api.ThumbnailStore
,ome.system.SelfConfigurableService
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
@Transactional(readOnly=true) public class ThumbnailBeanReadOnly extends ThumbnailBean
Provides methods for directly querying object graphs. This read-only variant of the service does not support rendering engine lazy object creation where rendering settings are missing.- See Also:
ThumbnailBean
, Serialized Form
-
-
Field Summary
-
Fields inherited from class ome.services.ThumbnailBean
DEFAULT_COMPRESSION_QUALITY, DEFAULT_MIME_TYPE, DEFAULT_X_WIDTH, DEFAULT_Y_WIDTH
-
Fields inherited from class ome.logic.AbstractLevel2Service
iQuery, iUpdate, metadata, queryFactory, readOnlyStatus, sec
-
-
Constructor Summary
Constructors Constructor Description ThumbnailBeanReadOnly(boolean checking)
overridden to allow Spring to set boolean
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getThumbnail(java.lang.Integer sizeX, java.lang.Integer sizeY)
byte[]
getThumbnailByLongestSide(java.lang.Integer size)
java.util.Map<java.lang.Long,byte[]>
getThumbnailByLongestSideSet(java.lang.Integer size, java.util.Set<java.lang.Long> pixelsIds)
boolean
setPixelsId(long id)
-
Methods inherited from class ome.services.ThumbnailBean
activate, close, createThumbnail, createThumbnails, createThumbnailsByLongestSideSet, errorIfInvalidState, errorIfNullPixels, errorIfNullPixelsAndRenderingDef, errorIfNullRenderingDef, getCurrentEventContext, getRenderingDefId, getServiceInterface, getThumbnailByLongestSideDirect, getThumbnailDirect, getThumbnailForSectionByLongestSideDirect, getThumbnailForSectionDirect, getThumbnailSet, getThumbnailWithoutDefault, isDiskSpaceChecking, isInProgress, passivate, resetDefaults, setApplicationContext, setCompressionService, setDiskSpaceChecking, setInProgressImageResource, setIoService, setIPixels, setIRepositoryInfo, setLutProvider, setPixelDataService, setRenderingDefId, setScaleService, setSettingsService, thumbnailExists
-
Methods inherited from class ome.logic.AbstractLevel2Service
getBeanHelper, getExtendedMetadata, getQueryFactory, getSecuritySystem, selfConfigure, setExtendedMetadata, setQueryFactory, setQueryService, setReadOnlyStatus, setSecuritySystem, setUpdateService
-
-
-
-
Method Detail
-
setPixelsId
public boolean setPixelsId(long id)
- Specified by:
setPixelsId
in interfaceome.api.ThumbnailStore
- Overrides:
setPixelsId
in classThumbnailBean
-
getThumbnailByLongestSideSet
public java.util.Map<java.lang.Long,byte[]> getThumbnailByLongestSideSet(java.lang.Integer size, java.util.Set<java.lang.Long> pixelsIds)
- Specified by:
getThumbnailByLongestSideSet
in interfaceome.api.ThumbnailStore
- Overrides:
getThumbnailByLongestSideSet
in classThumbnailBean
-
getThumbnail
public byte[] getThumbnail(java.lang.Integer sizeX, java.lang.Integer sizeY)
- Specified by:
getThumbnail
in interfaceome.api.ThumbnailStore
- Overrides:
getThumbnail
in classThumbnailBean
-
getThumbnailByLongestSide
public byte[] getThumbnailByLongestSide(java.lang.Integer size)
- Specified by:
getThumbnailByLongestSide
in interfaceome.api.ThumbnailStore
- Overrides:
getThumbnailByLongestSide
in classThumbnailBean
-
-