public class BlobShareStore extends ShareStore implements org.springframework.context.ApplicationContextAware
ShareStore
and provides functionality to work with binary
Ice data from the share. Also provides methods for verification if metadata
graph elements are safe to load (part of the security system's ACL vote).IShare
Modifier and Type | Field and Description |
---|---|
protected SessionFactory |
__dont_use_me_factory
Used indirectly to obtain sessions for querying and updating the
store during normal operation.
|
protected ome.system.OmeroContext |
ctx |
protected java.util.Map<java.lang.Long,java.util.List<java.lang.Long>> |
obToImageCache |
protected java.util.Map<java.lang.Long,java.lang.Long> |
pixToImageCache |
protected ome.util.SqlAction |
sqlAction |
ic, log
Constructor and Description |
---|
BlobShareStore() |
Modifier and Type | Method and Description |
---|---|
void |
doClose() |
<T extends ome.model.IObject> |
doContains(long sessionId,
java.lang.Class<T> kls,
long objId) |
protected <T extends ome.model.IObject> |
doContains(ShareData data,
java.lang.Class<T> kls,
long objId) |
void |
doInit() |
void |
doSet(ome.model.meta.Share share,
ShareData data,
java.util.List<ShareItem> items) |
ShareData |
get(long id) |
java.util.List<ShareData> |
getShares(long userId,
boolean own,
boolean activeOnly) |
java.util.Set<java.lang.Long> |
keys() |
static void |
main(java.lang.String[] args) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
Because there is a cyclic dependency (SF -> ACLVoter -> BlobStore -> SF), we
have to lazy-load the session factory via the context.
|
void |
setSqlAction(ome.util.SqlAction sqlAction) |
java.lang.Long |
totalSharedItems() |
java.lang.Long |
totalShares() |
close, contains, getShareIfAccessible, init, parse, parse, set, update
protected SessionFactory __dont_use_me_factory
session()
.protected ome.system.OmeroContext ctx
protected ome.util.SqlAction sqlAction
protected java.util.Map<java.lang.Long,java.lang.Long> pixToImageCache
protected java.util.Map<java.lang.Long,java.util.List<java.lang.Long>> obToImageCache
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public void setSqlAction(ome.util.SqlAction sqlAction)
public void doInit()
doInit
in class ShareStore
public java.lang.Long totalShares()
totalShares
in class ShareStore
public java.lang.Long totalSharedItems()
totalSharedItems
in class ShareStore
public void doSet(ome.model.meta.Share share, ShareData data, java.util.List<ShareItem> items)
doSet
in class ShareStore
public ShareData get(long id)
get
in class ShareStore
public java.util.List<ShareData> getShares(long userId, boolean own, boolean activeOnly)
getShares
in class ShareStore
public <T extends ome.model.IObject> boolean doContains(long sessionId, java.lang.Class<T> kls, long objId)
doContains
in class ShareStore
protected <T extends ome.model.IObject> boolean doContains(ShareData data, java.lang.Class<T> kls, long objId)
public void doClose()
doClose
in class ShareStore
public java.util.Set<java.lang.Long> keys()
keys
in class ShareStore
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception