public class BlobShareStore extends ShareStore implements 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 Map<Long,List<Long>> |
obToImageCache |
protected Map<Long,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,
Class<T> kls,
long objId) |
protected <T extends IObject> |
doContains(ome.services.sharing.data.ShareData data,
Class<T> kls,
long objId) |
void |
doInit() |
void |
doSet(Share share,
ome.services.sharing.data.ShareData data,
List<ome.services.sharing.data.ShareItem> items) |
ome.services.sharing.data.ShareData |
get(long id) |
List<ome.services.sharing.data.ShareData> |
getShares(long userId,
boolean own,
boolean activeOnly) |
Set<Long> |
keys() |
static void |
main(String[] args) |
void |
setApplicationContext(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) |
Long |
totalSharedItems() |
Long |
totalShares() |
close, contains, getShareIfAccessible, init, parse, parse, set, update
protected SessionFactory __dont_use_me_factory
session()
.protected OmeroContext ctx
protected SqlAction sqlAction
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException
setApplicationContext
in interface ApplicationContextAware
BeansException
public void setSqlAction(SqlAction sqlAction)
public void doInit()
doInit
in class ShareStore
public Long totalShares()
totalShares
in class ShareStore
public Long totalSharedItems()
totalSharedItems
in class ShareStore
public void doSet(Share share, ome.services.sharing.data.ShareData data, 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 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, Class<T> kls, long objId)
doContains
in class ShareStore
protected <T extends IObject> boolean doContains(ome.services.sharing.data.ShareData data, Class<T> kls, long objId)
public void doClose()
doClose
in class ShareStore
public Set<Long> keys()
keys
in class ShareStore
Version: 5.3.3-ice35-b63
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.