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 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(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) |
Long |
totalSharedItems() |
Long |
totalShares() |
close, contains, getShareIfAccessible, init, parse, parse, set, updateprotected SessionFactory __dont_use_me_factory
session().protected OmeroContext ctx
protected SqlAction sqlAction
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic void setSqlAction(SqlAction sqlAction)
public void doInit()
doInit in class ShareStorepublic Long totalShares()
totalShares in class ShareStorepublic Long totalSharedItems()
totalSharedItems in class ShareStorepublic void doSet(Share share, ome.services.sharing.data.ShareData data, List<ome.services.sharing.data.ShareItem> items)
doSet in class ShareStorepublic ome.services.sharing.data.ShareData get(long id)
get in class ShareStorepublic List<ome.services.sharing.data.ShareData> getShares(long userId, boolean own, boolean activeOnly)
getShares in class ShareStorepublic <T extends IObject> boolean doContains(long sessionId, Class<T> kls, long objId)
doContains in class ShareStoreprotected <T extends IObject> boolean doContains(ome.services.sharing.data.ShareData data, Class<T> kls, long objId)
public void doClose()
doClose in class ShareStorepublic Set<Long> keys()
keys in class ShareStore
Version: 5.4.0-ice35-b74
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.