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 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,
Class<T> kls,
long objId) |
protected <T extends ome.model.IObject> |
doContains(ome.services.sharing.data.ShareData data,
Class<T> kls,
long objId) |
void |
doInit() |
void |
doSet(ome.model.meta.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(ome.util.SqlAction sqlAction) |
Long |
totalSharedItems() |
Long |
totalShares() |
close, contains, getShareIfAccessible, init, parse, parse, set, updateprotected SessionFactory __dont_use_me_factory
session().protected OmeroContext ctx
protected ome.util.SqlAction sqlAction
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareapplicationContext - the ApplicationContext object to be used by this objectorg.springframework.context.ApplicationContextException - in case of context initialization errorsorg.springframework.beans.BeansException - if thrown by application context methodsBeanInitializationExceptionpublic void setSqlAction(ome.util.SqlAction sqlAction)
public void doInit()
doInit in class ShareStorepublic Long totalShares()
totalShares in class ShareStorepublic Long totalSharedItems()
totalSharedItems in class ShareStorepublic void doSet(ome.model.meta.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 ome.model.IObject> boolean doContains(long sessionId,
Class<T> kls,
long objId)
doContains in class ShareStoreprotected <T extends ome.model.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.1.1-ice35-b43
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.