@Transactional public class PojosImpl extends AbstractLevel2Service implements IContainer
iQuery, iUpdate, metadata, queryFactory, sec
Constructor and Description |
---|
PojosImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkProperty(String type,
String property) |
protected void |
checkType(String type) |
IObject |
createDataObject(IObject arg0,
Parameters arg1)
Implemented as specified by the
IContainer I/F |
IObject[] |
createDataObjects(IObject[] arg0,
Parameters arg1)
Implemented as specified by the
IContainer I/F |
void |
deleteDataObject(IObject row,
Parameters arg1)
Implemented as specified by the
IContainer I/F |
void |
deleteDataObjects(IObject[] rows,
Parameters options)
Implemented as specified by the
IContainer I/F |
Set |
findContainerHierarchies(Class rootNodeType,
Set imageIds,
Parameters options)
Implemented as specified by the
IContainer I/F |
Map |
getCollectionCount(String type,
String property,
Set ids,
Parameters options)
Implemented as specified by the
IContainer I/F |
Set |
getImages(Class rootNodeType,
Set rootNodeIds,
Parameters options)
Implemented as specified by the
IContainer I/F |
Set |
getImagesByOptions(Parameters options)
Implemented as specified by the
IContainer I/F |
Map<Long,Map<Boolean,List<Long>>> |
getImagesBySplitFilesets(Map<Class<? extends IObject>,List<Long>> included,
Parameters options)
Implemented as specified by the
IContainer I/F |
Class<? extends ServiceInterface> |
getServiceInterface()
Returns the Interface implemented by this class.
|
Set |
getUserImages(Parameters options)
Implemented as specified by the
IContainer I/F |
ILink[] |
link(ILink[] arg0,
Parameters arg1)
Implemented as specified by the
IContainer I/F |
Set |
loadContainerHierarchy(Class rootNodeType,
Set rootNodeIds,
Parameters options)
Implemented as specified by the
IContainer I/F |
Collection |
retrieveCollection(IObject arg0,
String arg1,
Parameters arg2)
Implemented as specified by the
IContainer I/F |
void |
unlink(ILink[] arg0,
Parameters arg1)
Implemented as specified by the
IContainer I/F |
IObject |
updateDataObject(IObject arg0,
Parameters arg1)
Implemented as specified by the
IContainer I/F |
IObject[] |
updateDataObjects(IObject[] arg0,
Parameters arg1)
Implemented as specified by the
IContainer I/F |
getBeanHelper, getExtendedMetadata, getQueryFactory, getSecuritySystem, selfConfigure, setExtendedMetadata, setQueryFactory, setQueryService, setSecuritySystem, setUpdateService
public final Class<? extends ServiceInterface> getServiceInterface()
getServiceInterface
in interface SelfConfigurableService
@Transactional(readOnly=true) public Set loadContainerHierarchy(Class rootNodeType, Set rootNodeIds, Parameters options)
IContainer
I/FloadContainerHierarchy
in interface IContainer
rootNodeType
- The type of the root node. Can be Project
,
Dataset
, Screen
or Plate
.
Cannot be null.rootNodeIds
- The ids of the root nodes. Can be null if an Experimenter is
specified in options
, otherwise an Exception
is thrown to prevent all images in the entire database from
being downloaded.options
- Parameters as above. annotator
, leaves
,
orphan
, acquisition data
used.
acquisition data
is only relevant for images
and taken into account if the images are loaded.
If rootNodeIds==null
,
experimenter|group
must be set and filtering
will be applied at the Class-level; e.g. to retrieve a
user's Projects, or user's Datasets. If
rootNodeIds!=null
, the result will be filtered
by the experimenter|group
at the
Image
and intermediate levels if available.
Due to the amount of data potentially linked a Screen/Plate,
the leaves
option is not taken into account.
when the root node is a Screen
.
orphan
implies that objects which are not contained
in an object of rootNodeType should also be returned.rootNodeType
, unless orphan
is specified
in which case objects of type rootNodeType
and below
may be returned.IContainer.loadContainerHierarchy(Class, Set, Parameters)
@Transactional(readOnly=true) public Set findContainerHierarchies(Class rootNodeType, Set imageIds, Parameters options)
IContainer
I/FfindContainerHierarchies
in interface IContainer
rootNodeType
- top-most type which will be searched for Can be
Project
. Not null.imageIds
- Contains the ids of the Images that sit at the bottom of the
trees. Not null.options
- Parameters as above. annotator
used.
experimenter|group
may be applied at the
top-level only or at each level in the hierarchy, but will not
apply to the leaf (Image) level.Set
with all root nodes that were found.IContainer.findContainerHierarchies(Class, Set, Parameters)
@Transactional(readOnly=true) public Set getImages(Class rootNodeType, Set rootNodeIds, Parameters options)
IContainer
I/FgetImages
in interface IContainer
rootNodeType
- A Class which will have its hierarchy searched for Images. Not
null. TODO types?rootNodeIds
- A set of ids of type rootNodeType
Not null.options
- Parameters as above. No notion of leaves
.
experimenter|group
apply at the Image level.
OPTIONS: - startTime and/or endTime should be
Timestamp.valueOf("YYYY-MM-DD hh:mm:ss.ms");
limit
and offset
are applied at
the Image-level. That is, calling with Dataset.class,
limit == 10 and offset == 0 will
first perform one query to get an effective set of
rootNodeIds, then getImages will be called with an effective
rootNodeType of Image.class and the new ids.
acquisition data
is only relevant for images.IContainer#getImages(Class, Set, Map)
@Transactional(readOnly=true) public Set getImagesByOptions(Parameters options)
IContainer
I/FgetImagesByOptions
in interface IContainer
options
- Parameters as above. No notion of leaves
.
experimenter|group
apply at the Image level and
must be present. OPTIONS: - startTime and/or endTime
should be Timestamp.valueOf("YYYY-MM-DD hh:mm:ss.ms").
acquisition data
is only relevant for images.IContainer.getImagesByOptions(Parameters)
@Transactional(readOnly=true) public Map<Long,Map<Boolean,List<Long>>> getImagesBySplitFilesets(Map<Class<? extends IObject>,List<Long>> included, Parameters options)
IContainer
I/FgetImagesBySplitFilesets
in interface IContainer
included
- the entities includedoptions
- parameters, presently ignoredIContainer#getImagesBySplitFilesets(Map)
@Transactional(readOnly=true) public Set getUserImages(Parameters options)
IContainer
I/FgetUserImages
in interface IContainer
options
- Parameters as above. No notion of leaves
.
experimenter|group
apply at the Image level and
must be present.IContainer.getUserImages(Parameters)
@Transactional(readOnly=true) public Map getCollectionCount(String type, String property, Set ids, Parameters options)
IContainer
I/FgetCollectionCount
in interface IContainer
type
- The fully-qualified classname of the object to be testedproperty
- Name of the property on that class, omitting getters and
setters.ids
- Set of Longs, the ids of the objects to testoptions
- Parameters. Unused.IContainer.getCollectionCount(String, String, Set, Parameters)
@Transactional(readOnly=true) public Collection retrieveCollection(IObject arg0, String arg1, Parameters arg2)
IContainer
I/FretrieveCollection
in interface IContainer
arg0
- Can be "unloaded".arg1
- public final static String
from the
IObject.classarg2
- Parameters. Unused.IContainer.retrieveCollection(IObject, String, Parameters)
@Transactional(readOnly=false) public IObject createDataObject(IObject arg0, Parameters arg1)
IContainer
I/FcreateDataObject
in interface IContainer
arg0
- IObject. Supported: Project, Dataset,
Annotation, Group, Experimenter. Not null.IContainer.createDataObject(IObject, Parameters)
@Transactional(readOnly=false) public IObject[] createDataObjects(IObject[] arg0, Parameters arg1)
IContainer
I/FcreateDataObjects
in interface IContainer
arg0
- Array of Omero IObjects
arg1
- Parameters as above.IContainer#createDataObject(IObject[], Parameters)
@Transactional(readOnly=false) public void unlink(ILink[] arg0, Parameters arg1)
IContainer
I/Funlink
in interface IContainer
arg1
- Parameters as above.IContainer.unlink(ILink[], Parameters)
@Transactional(readOnly=false) public ILink[] link(ILink[] arg0, Parameters arg1)
IContainer
I/Flink
in interface IContainer
arg0
- Array of links to be created.arg1
- Parameters as above.IContainer.link(ILink[], Parameters)
@Transactional(readOnly=false) public IObject updateDataObject(IObject arg0, Parameters arg1)
IContainer
I/FupdateDataObject
in interface IContainer
arg0
- Pojos-based IObject. Supported: supported: Project, Dataset,
Annotation, Group, Experimenter.arg1
- Parameters as above.IContainer.updateDataObject(IObject, Parameters)
@Transactional(readOnly=false) public IObject[] updateDataObjects(IObject[] arg0, Parameters arg1)
IContainer
I/FupdateDataObjects
in interface IContainer
arg1
- Parameters as above.IContainer#updateDataObject(IObject[], Parameters)
@Transactional(readOnly=false) public void deleteDataObject(IObject row, Parameters arg1)
IContainer
I/FIContainer#deleteDataObject(IObject, Parameters)
@Transactional(readOnly=false) public void deleteDataObjects(IObject[] rows, Parameters options)
IContainer
I/FIContainer#deleteDataObjects(IObject[], Parameters)
protected void checkType(String type)
Version: 5.1.4-ice35-b55
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.