Class ThumbnailsInfo
- java.lang.Object
-
- ch.systemsx.cisd.openbis.dss.etl.dto.api.impl.ThumbnailsInfo
-
- All Implemented Interfaces:
java.io.Serializable
public class ThumbnailsInfo extends java.lang.Object implements java.io.Serializable
Stores the mapping between image and their thumbnails paths. Thread-safe class.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ThumbnailsInfo.PhysicalDatasetInfo
-
Constructor Summary
Constructors Constructor Description ThumbnailsInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ThumbnailsStorageFormat.FileFormat
getFileType(java.lang.String permId)
java.lang.String
getRootPath(java.lang.String permId)
java.lang.String
getThumbnailPath(ch.systemsx.cisd.openbis.dss.etl.dto.RelativeImageFile image, ch.systemsx.cisd.openbis.plugin.screening.shared.imaging.dataaccess.ColorComponent colorComponentOrNull)
java.util.Set<java.lang.String>
getThumbnailPhysicalDatasetsPermIds()
java.util.Map<java.lang.String,java.lang.String>
getTransformations(java.lang.String permId)
void
putDataSet(java.lang.String permId, java.lang.String rootPath, ThumbnailsStorageFormat.FileFormat fileFormat, java.util.Map<java.lang.String,java.lang.String> transformations)
void
saveThumbnailPath(java.lang.String permId, ch.systemsx.cisd.openbis.dss.etl.dto.RelativeImageFile image, ch.systemsx.cisd.openbis.plugin.screening.shared.imaging.dataaccess.ColorComponent colorComponentOrNull, java.lang.String thumbnailRelativePath, int width, int height, int colorDepth)
Saves the path to the thumbnail for the specified image.java.lang.String
toString()
java.lang.Integer
tryGetColorDepth(java.lang.String permId)
ch.systemsx.cisd.openbis.dss.generic.shared.dto.Size
tryGetDimension(java.lang.String permId)
-
-
-
Method Detail
-
putDataSet
public void putDataSet(java.lang.String permId, java.lang.String rootPath, ThumbnailsStorageFormat.FileFormat fileFormat, java.util.Map<java.lang.String,java.lang.String> transformations)
-
saveThumbnailPath
public void saveThumbnailPath(java.lang.String permId, ch.systemsx.cisd.openbis.dss.etl.dto.RelativeImageFile image, ch.systemsx.cisd.openbis.plugin.screening.shared.imaging.dataaccess.ColorComponent colorComponentOrNull, java.lang.String thumbnailRelativePath, int width, int height, int colorDepth)
Saves the path to the thumbnail for the specified image. The thumbnail path is relative and starts with the name of the thumbnail file.
-
getThumbnailPath
public java.lang.String getThumbnailPath(ch.systemsx.cisd.openbis.dss.etl.dto.RelativeImageFile image, ch.systemsx.cisd.openbis.plugin.screening.shared.imaging.dataaccess.ColorComponent colorComponentOrNull)
-
getThumbnailPhysicalDatasetsPermIds
public java.util.Set<java.lang.String> getThumbnailPhysicalDatasetsPermIds()
-
tryGetDimension
public ch.systemsx.cisd.openbis.dss.generic.shared.dto.Size tryGetDimension(java.lang.String permId)
-
tryGetColorDepth
public java.lang.Integer tryGetColorDepth(java.lang.String permId)
-
getFileType
public ThumbnailsStorageFormat.FileFormat getFileType(java.lang.String permId)
-
getTransformations
public java.util.Map<java.lang.String,java.lang.String> getTransformations(java.lang.String permId)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getRootPath
public java.lang.String getRootPath(java.lang.String permId)
-
-