Package ome.services
Class AbstractStatefulBean
- java.lang.Object
-
- ome.services.AbstractStatefulBean
-
- All Implemented Interfaces:
java.io.Serializable
,ome.api.ServiceInterface
,ome.api.StatefulServiceInterface
,ome.system.SelfConfigurableService
- Direct Known Subclasses:
JobBean
,RawFileBean
,RawPixelsBean
,SearchBean
public abstract class AbstractStatefulBean extends java.lang.Object implements ome.system.SelfConfigurableService, ome.api.StatefulServiceInterface, java.io.Serializable
Base bean implementation for stateful services. Particularly useful is the implementation of- Since:
- 3.0-Beta2
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected LocalQuery
iQuery
protected LocalUpdate
iUpdate
protected boolean
modified
True if any write operation took place on this bean.protected SecuritySystem
sec
-
Constructor Summary
Constructors Constructor Description AbstractStatefulBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BeanHelper
getBeanHelper()
ome.system.EventContext
getCurrentEventContext()
protected boolean
isModified()
protected void
modified()
void
selfConfigure()
void
setQueryService(LocalQuery iQuery)
Query service Bean injector.void
setSecuritySystem(SecuritySystem secSys)
void
setUpdateService(LocalUpdate update)
-
-
-
Field Detail
-
iQuery
protected transient LocalQuery iQuery
-
iUpdate
protected transient LocalUpdate iUpdate
-
sec
protected transient SecuritySystem sec
-
modified
protected transient boolean modified
True if any write operation took place on this bean. Allows for updating the database representation if needed.- See Also:
- ticket:1961
-
-
Method Detail
-
setQueryService
public final void setQueryService(LocalQuery iQuery)
Query service Bean injector.- Parameters:
iQuery
- anIQuery
service.
-
setUpdateService
public final void setUpdateService(LocalUpdate update)
-
setSecuritySystem
public final void setSecuritySystem(SecuritySystem secSys)
-
selfConfigure
public void selfConfigure()
- Specified by:
selfConfigure
in interfaceome.system.SelfConfigurableService
-
getBeanHelper
protected BeanHelper getBeanHelper()
-
isModified
protected boolean isModified()
-
modified
protected void modified()
-
getCurrentEventContext
public final ome.system.EventContext getCurrentEventContext()
- Specified by:
getCurrentEventContext
in interfaceome.api.StatefulServiceInterface
-
-