public class BlobShareStore extends ShareStore implements org.springframework.context.ApplicationContextAware
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 |
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 cyclical dependency SF->ACLVoter->BlobStore->SF we
have to lazy-load the session factory via the context.
|
Long |
totalSharedItems() |
Long |
totalShares() |
close, contains, getShareIfAccessible, init, parse, parse, set, update
protected SessionFactory __dont_use_me_factory
session()
.protected OmeroContext ctx
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
applicationContext
- 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 methodsBeanInitializationException
public void doInit()
doInit
in class ShareStore
public Long totalShares()
totalShares
in class ShareStore
public Long totalSharedItems()
totalSharedItems
in class ShareStore
public void doSet(ome.model.meta.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 ome.model.IObject> boolean doContains(long sessionId, Class<T> kls, long objId)
doContains
in class ShareStore
protected <T extends ome.model.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: 4.4.12-ice34-b116
Copyright © 2014 The University of Dundee & Open Microscopy Environment. All Rights Reserved.