@Transactional(readOnly=true) public class RawFileBean extends AbstractStatefulBean implements ome.api.RawFileStore
iQuery, iUpdate, modified, sec
Constructor and Description |
---|
RawFileBean()
default constructor
|
RawFileBean(boolean checking)
overridden to allow Spring to set boolean
|
Modifier and Type | Method and Description |
---|---|
void |
activate() |
void |
clean() |
void |
close() |
boolean |
exists() |
java.lang.Long |
getFileId() |
java.lang.Class<? extends ome.api.ServiceInterface> |
getServiceInterface() |
boolean |
isDiskSpaceChecking()
getter disk overflow checking
|
protected boolean |
isModified()
Extends the check of the
AbstractStatefulBean.modified flag performed by super
with an additional check of the actual file size against the value
stored in the database |
void |
passivate() |
byte[] |
read(long position,
int length) |
ome.model.core.OriginalFile |
save() |
void |
setAdminService(ome.api.IAdmin admin) |
void |
setChecksumProviderFactory(ome.util.checksum.ChecksumProviderFactory checksumProviderFactory)
ChecksumProviderFactory Bean injector
|
void |
setDiskSpaceChecking(boolean diskSpaceChecking)
setter disk overflow checking
|
void |
setFileId(long fileId) |
void |
setFileIdWithBuffer(long fileId,
ome.io.nio.FileBuffer buffer) |
void |
setIRepositoryInfo(ome.api.IRepositoryInfo iRepositoryInfo)
Disk Space Usage service Bean injector
|
void |
setOriginalFilesService(ome.io.nio.OriginalFilesService ioService)
I/O service (OriginalFilesService) Bean injector.
|
long |
size() |
boolean |
truncate(long length) |
void |
write(byte[] buf,
long position,
int length) |
getBeanHelper, getCurrentEventContext, modified, selfConfigure, setQueryService, setSecuritySystem, setUpdateService
public RawFileBean()
public RawFileBean(boolean checking)
checking
- public java.lang.Class<? extends ome.api.ServiceInterface> getServiceInterface()
getServiceInterface
in interface ome.system.SelfConfigurableService
public final void setOriginalFilesService(ome.io.nio.OriginalFilesService ioService)
ioService
- an OriginalFileService
.public final void setIRepositoryInfo(ome.api.IRepositoryInfo iRepositoryInfo)
iRepositoryInfo
- an IRepositoryInfo
public final void setAdminService(ome.api.IAdmin admin)
public final void setChecksumProviderFactory(ome.util.checksum.ChecksumProviderFactory checksumProviderFactory)
checksumProviderFactory
- a ChecksumProviderFactory
@Transactional(readOnly=true) public void passivate()
passivate
in interface ome.api.StatefulServiceInterface
@Transactional(readOnly=true) public void activate()
activate
in interface ome.api.StatefulServiceInterface
protected boolean isModified()
AbstractStatefulBean.modified
flag performed by super
with an additional check of the actual file size against the value
stored in the databaseisModified
in class AbstractStatefulBean
@Transactional(readOnly=false) public ome.model.core.OriginalFile save()
save
in interface ome.api.RawFileStore
@Transactional(readOnly=false) public void close()
close
in interface ome.api.StatefulServiceInterface
public void clean()
@Transactional(readOnly=true) public java.lang.Long getFileId()
getFileId
in interface ome.api.RawFileStore
@Transactional(readOnly=true) public void setFileId(long fileId)
setFileId
in interface ome.api.RawFileStore
public void setFileIdWithBuffer(long fileId, ome.io.nio.FileBuffer buffer)
public boolean exists()
exists
in interface ome.api.RawFileStore
public byte[] read(long position, int length)
read
in interface ome.api.RawFileStore
public boolean truncate(long length)
truncate
in interface ome.api.RawFileStore
public long size()
size
in interface ome.api.RawFileStore
public void write(byte[] buf, long position, int length)
write
in interface ome.api.RawFileStore
public boolean isDiskSpaceChecking()
public void setDiskSpaceChecking(boolean diskSpaceChecking)
diskSpaceChecking
- a boolean