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 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 SqlAction |
sqlAction |
ic, log
Constructor and Description |
---|
BlobShareStore() |
Modifier and Type | Method and Description |
---|---|
void |
doClose() |
<T extends IObject> |
doContains(long sessionId,
java.lang.Class<T> kls,
long objId) |
protected <T extends IObject> |
doContains(ome.services.sharing.data.ShareData data,
java.lang.Class<T> kls,
long objId) |
void |
doInit() |
void |
doSet(Share share,
ome.services.sharing.data.ShareData data,
java.util.List<ome.services.sharing.data.ShareItem> items) |
ome.services.sharing.data.ShareData |
get(long id) |
java.util.List<ome.services.sharing.data.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(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 OmeroContext ctx
protected 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(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(Share share, ome.services.sharing.data.ShareData data, java.util.List<ome.services.sharing.data.ShareItem> items)
doSet
in class ShareStore
public ome.services.sharing.data.ShareData get(long id)
get
in class ShareStore
public java.util.List<ome.services.sharing.data.ShareData> getShares(long userId, boolean own, boolean activeOnly)
getShares
in class ShareStore
public <T extends IObject> boolean doContains(long sessionId, java.lang.Class<T> kls, long objId)
doContains
in class ShareStore
protected <T extends IObject> boolean doContains(ome.services.sharing.data.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
Version: 5.4.10-ice35-b105
Copyright © 2019 The University of Dundee & Open Microscopy Environment. All Rights Reserved.