|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectome.services.AbstractStatefulBean
ome.services.RawFileBean
@Transactional(readOnly=true) public class RawFileBean
Raw file gateway which provides access to the OMERO file repository.
Field Summary |
---|
Fields inherited from class ome.services.AbstractStatefulBean |
---|
iQuery, sec |
Constructor Summary | |
---|---|
RawFileBean()
default constructor |
|
RawFileBean(boolean checking)
overriden to allow Spring to set boolean |
Method Summary | |
---|---|
void |
activate()
Completely restore this service for active use from whatever passivation it has implemented. |
void |
close()
signals the end of the service lifecycle. |
boolean |
exists()
Checks to see if a raw file exists with the file ID that the service was initialized with. |
Class<? extends ServiceInterface> |
getServiceInterface()
|
boolean |
isDiskSpaceChecking()
getter disk overflow checking |
void |
passivate()
Perform whatever passivation is possible or throw an exception. |
byte[] |
read(long position,
int length)
Delegates to FileBuffer |
void |
setDiskSpaceChecking(boolean diskSpaceChecking)
setter disk overflow checking |
void |
setFileId(long fileId)
This method manages the state of the service. |
void |
setIRepositoryInfo(IRepositoryInfo iRepositoryInfo)
Disk Space Usage service Bean injector |
void |
setOriginalFilesService(OriginalFilesService ioService)
I/O service (OriginalFilesService) Bean injector. |
void |
write(byte[] buf,
long position,
int length)
Delegates to FileBuffer |
Methods inherited from class ome.services.AbstractStatefulBean |
---|
getBeanHelper, getCurrentEventContext, selfConfigure, setQueryService, setSecuritySystem |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface ome.api.StatefulServiceInterface |
---|
getCurrentEventContext |
Constructor Detail |
---|
public RawFileBean()
public RawFileBean(boolean checking)
checking
- Method Detail |
---|
public Class<? extends ServiceInterface> getServiceInterface()
getServiceInterface
in interface SelfConfigurableService
public final void setOriginalFilesService(OriginalFilesService ioService)
ioService
- an OriginalFileService
.public final void setIRepositoryInfo(IRepositoryInfo iRepositoryInfo)
iRepositoryInfo
- an IRepositoryInfo
@Transactional(readOnly=true) public void passivate()
StatefulServiceInterface
passivate
in interface StatefulServiceInterface
@Transactional(readOnly=true) public void activate()
StatefulServiceInterface
activate
in interface StatefulServiceInterface
@Transactional(readOnly=true) public void close()
StatefulServiceInterface
close
in interface StatefulServiceInterface
@Transactional(readOnly=true) public void setFileId(long fileId)
RawFileStore
setFileId
in interface RawFileStore
fileId
- an OriginalFile
id.public boolean exists()
RawFileStore
exists
in interface RawFileStore
true
if there is an accessible file within the
original file repository with the correct ID. Otherwise
false
.public byte[] read(long position, int length)
RawFileStore
FileBuffer
read
in interface RawFileStore
FileBuffer.read(java.nio.ByteBuffer, long)
public void write(byte[] buf, long position, int length)
RawFileStore
FileBuffer
write
in interface RawFileStore
FileBuffer.write(java.nio.ByteBuffer, long)
public boolean isDiskSpaceChecking()
public void setDiskSpaceChecking(boolean diskSpaceChecking)
diskSpaceChecking
- a boolean
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: Beta-4.1.1-r5927-b91
Copyright © 2009 The University of Dundee. All Rights Reserved.