Package omero.gateway.facility
Class LoadFacility
- java.lang.Object
-
- omero.gateway.facility.Facility
-
- omero.gateway.facility.LoadFacility
-
public class LoadFacility extends Facility
A Facility for loading basic objects. Note: These are shallow objects with just one level of hierarchy loaded e.g. a project will have a list of datasets, but the datasets only have basic properties like name and id loaded.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DatasetData
getDataset(SecurityContext ctx, long id)
Get a datasetjava.util.Collection<DatasetData>
getDatasets(SecurityContext ctx, long projectId)
Get datasets of a projectjava.util.Collection<DatasetData>
getDatasets(SecurityContext ctx, java.util.Collection<java.lang.Long> ids)
Get datasetsImageData
getImage(SecurityContext ctx, long id)
Get a imagejava.util.Collection<ImageData>
getImages(SecurityContext ctx, long datasetId)
Get images of a datasetjava.util.Collection<ImageData>
getImages(SecurityContext ctx, java.util.Collection<java.lang.Long> ids)
Get imagesPlateData
getPlate(SecurityContext ctx, long id)
Get a platejava.util.Collection<PlateData>
getPlates(SecurityContext ctx, long screenId)
Get plates for a screenjava.util.Collection<PlateData>
getPlates(SecurityContext ctx, java.util.Collection<java.lang.Long> ids)
Get platesProjectData
getProject(SecurityContext ctx, long id)
Get a projectjava.util.Collection<ProjectData>
getProjects(SecurityContext ctx, java.util.Collection<java.lang.Long> ids)
Get projectsScreenData
getScreen(SecurityContext ctx, long id)
Get a screenjava.util.Collection<ScreenData>
getScreens(SecurityContext ctx, java.util.Collection<java.lang.Long> ids)
Get screensWellData
getWell(SecurityContext ctx, long id)
Get a well (Note: This is a slightly deeper object, with wellsamples and images loaded)java.util.Collection<WellData>
getWells(SecurityContext ctx, long plateId)
Get wells of a plate (Note: These are slightly deeper objects, with wellsamples and images loaded)java.util.Collection<WellData>
getWells(SecurityContext ctx, java.util.Collection<java.lang.Long> ids)
Get wells (Note: These are slightly deeper objects, with wellsamples and images loaded)-
Methods inherited from class omero.gateway.facility.Facility
addPropertyChangeListener, clear, firePropertyChanged, firePropertyChanged, getFacility, logDebug, logError, logInfo, logWarn, removePropertyChangeListener
-
-
-
-
Method Detail
-
getDataset
public DatasetData getDataset(SecurityContext ctx, long id) throws DSOutOfServiceException, DSAccessException
Get a dataset- Parameters:
ctx
- The SecurityContextid
- The id of the dataset- Returns:
- The dataset or null if it can't be found
- Throws:
DSOutOfServiceException
DSAccessException
-
getDatasets
public java.util.Collection<DatasetData> getDatasets(SecurityContext ctx, java.util.Collection<java.lang.Long> ids) throws DSOutOfServiceException, DSAccessException
Get datasets- Parameters:
ctx
- The SecurityContextids
- The ids of the datasets- Returns:
- Collection of datasets (can be empty)
- Throws:
DSOutOfServiceException
DSAccessException
-
getDatasets
public java.util.Collection<DatasetData> getDatasets(SecurityContext ctx, long projectId) throws DSOutOfServiceException, DSAccessException
Get datasets of a project- Parameters:
ctx
- The SecurityContextprojectId
- The project Id- Returns:
- Collection of datasets (can be empty)
- Throws:
DSOutOfServiceException
DSAccessException
-
getProject
public ProjectData getProject(SecurityContext ctx, long id) throws DSOutOfServiceException, DSAccessException
Get a project- Parameters:
ctx
- The SecurityContextid
- The id of the project- Returns:
- The project or null if it can't be found
- Throws:
DSOutOfServiceException
DSAccessException
-
getProjects
public java.util.Collection<ProjectData> getProjects(SecurityContext ctx, java.util.Collection<java.lang.Long> ids) throws DSOutOfServiceException, DSAccessException
Get projects- Parameters:
ctx
- The SecurityContextids
- The ids of the projects- Returns:
- Collection of projects (can be empty)
- Throws:
DSOutOfServiceException
DSAccessException
-
getImage
public ImageData getImage(SecurityContext ctx, long id) throws DSOutOfServiceException, DSAccessException
Get a image- Parameters:
ctx
- The SecurityContextid
- The id of the image- Returns:
- The image or null if it can't be found
- Throws:
DSOutOfServiceException
DSAccessException
-
getImages
public java.util.Collection<ImageData> getImages(SecurityContext ctx, java.util.Collection<java.lang.Long> ids) throws DSOutOfServiceException, DSAccessException
Get images- Parameters:
ctx
- The SecurityContextids
- The ids of the images- Returns:
- Collection of images (can be empty)
- Throws:
DSOutOfServiceException
DSAccessException
-
getImages
public java.util.Collection<ImageData> getImages(SecurityContext ctx, long datasetId) throws DSOutOfServiceException, DSAccessException
Get images of a dataset- Parameters:
ctx
- The SecurityContextdatasetId
- The dataset Id- Returns:
- Collection of images (can be empty)
- Throws:
DSOutOfServiceException
DSAccessException
-
getScreen
public ScreenData getScreen(SecurityContext ctx, long id) throws DSOutOfServiceException, DSAccessException
Get a screen- Parameters:
ctx
- The SecurityContextid
- The id of the screen- Returns:
- The screen or null if it can't be found
- Throws:
DSOutOfServiceException
DSAccessException
-
getScreens
public java.util.Collection<ScreenData> getScreens(SecurityContext ctx, java.util.Collection<java.lang.Long> ids) throws DSOutOfServiceException, DSAccessException
Get screens- Parameters:
ctx
- The SecurityContextids
- The ids of the screens- Returns:
- Collection of screens (can be empty)
- Throws:
DSOutOfServiceException
DSAccessException
-
getPlate
public PlateData getPlate(SecurityContext ctx, long id) throws DSOutOfServiceException, DSAccessException
Get a plate- Parameters:
ctx
- The SecurityContextid
- The id of the plate- Returns:
- The plate or null if it can't be found
- Throws:
DSOutOfServiceException
DSAccessException
-
getPlates
public java.util.Collection<PlateData> getPlates(SecurityContext ctx, java.util.Collection<java.lang.Long> ids) throws DSOutOfServiceException, DSAccessException
Get plates- Parameters:
ctx
- The SecurityContextids
- The ids of the plates- Returns:
- Collection of plates (can be empty)
- Throws:
DSOutOfServiceException
DSAccessException
-
getPlates
public java.util.Collection<PlateData> getPlates(SecurityContext ctx, long screenId) throws DSOutOfServiceException, DSAccessException
Get plates for a screen- Parameters:
ctx
- The SecurityContextscreenId
- The screen Id- Returns:
- Collection of plates (can be empty)
- Throws:
DSOutOfServiceException
DSAccessException
-
getWell
public WellData getWell(SecurityContext ctx, long id) throws DSOutOfServiceException, DSAccessException
Get a well (Note: This is a slightly deeper object, with wellsamples and images loaded)- Parameters:
ctx
- The SecurityContextid
- The id of the well- Returns:
- The well or null if it can't be found
- Throws:
DSOutOfServiceException
DSAccessException
-
getWells
public java.util.Collection<WellData> getWells(SecurityContext ctx, java.util.Collection<java.lang.Long> ids) throws DSOutOfServiceException, DSAccessException
Get wells (Note: These are slightly deeper objects, with wellsamples and images loaded)- Parameters:
ctx
- The SecurityContextids
- The ids of the wells- Returns:
- Collection of wells (can be empty)
- Throws:
DSOutOfServiceException
DSAccessException
-
getWells
public java.util.Collection<WellData> getWells(SecurityContext ctx, long plateId) throws DSOutOfServiceException, DSAccessException
Get wells of a plate (Note: These are slightly deeper objects, with wellsamples and images loaded)- Parameters:
ctx
- The SecurityContextplateId
- The plate Id- Returns:
- Collection of wells (can be empty)
- Throws:
DSOutOfServiceException
DSAccessException
-
-