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.SerializableBase 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 LocalQueryiQueryprotected LocalUpdateiUpdateprotected booleanmodifiedTrue if any write operation took place on this bean.protected SecuritySystemsec
-
Constructor Summary
Constructors Constructor Description AbstractStatefulBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BeanHelpergetBeanHelper()ome.system.EventContextgetCurrentEventContext()protected booleanisModified()protected voidmodified()voidselfConfigure()voidsetQueryService(LocalQuery iQuery)Query service Bean injector.voidsetSecuritySystem(SecuritySystem secSys)voidsetUpdateService(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- anIQueryservice.
-
setUpdateService
public final void setUpdateService(LocalUpdate update)
-
setSecuritySystem
public final void setSecuritySystem(SecuritySystem secSys)
-
selfConfigure
public void selfConfigure()
- Specified by:
selfConfigurein interfaceome.system.SelfConfigurableService
-
getBeanHelper
protected BeanHelper getBeanHelper()
-
isModified
protected boolean isModified()
-
modified
protected void modified()
-
getCurrentEventContext
public final ome.system.EventContext getCurrentEventContext()
- Specified by:
getCurrentEventContextin interfaceome.api.StatefulServiceInterface
-
-