Package fr.igred.omero.repository
Class ScreenWrapper
- java.lang.Object
-
- fr.igred.omero.GenericObjectWrapper<T>
-
- fr.igred.omero.repository.GenericRepositoryObjectWrapper<ScreenData>
-
- fr.igred.omero.repository.ScreenWrapper
-
public class ScreenWrapper extends GenericRepositoryObjectWrapper<ScreenData>
Class containing a ScreenData object.Wraps function calls to the ScreenData contained.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class fr.igred.omero.repository.GenericRepositoryObjectWrapper
GenericRepositoryObjectWrapper.ReplacePolicy
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ANNOTATION_LINK
Annotation link name for this type of object-
Fields inherited from class fr.igred.omero.GenericObjectWrapper
data
-
-
Constructor Summary
Constructors Constructor Description ScreenWrapper(Client client, java.lang.String name, java.lang.String description)
Constructor of the ProjectWrapper class.ScreenWrapper(ScreenData screen)
Constructor of the class ScreenWrapper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
annotationLinkType()
Returns the type of annotation link for this objectScreenData
asScreenData()
Returns the ScreenData contained.java.lang.String
getDescription()
Gets the screen descriptionjava.lang.String
getName()
Gets the screen name.java.util.List<PlateWrapper>
getPlates()
Returns the plates contained in this screen.java.util.List<PlateWrapper>
getPlates(java.lang.String name)
Returns the plates contained in this screen, with the specified name.java.lang.String
getProtocolDescription()
Returns the description of the protocol.java.lang.String
getProtocolIdentifier()
Returns the identifier of the protocol.java.lang.String
getReagentSetDescription()
Returns the description of the reagent set.java.lang.String
getReagentSetIdentifier()
Returns the identifier of the Reagent set.java.util.List<java.lang.Long>
importImage(GatewayWrapper client, java.lang.String path)
Imports one image file to the screen in OMERO.boolean
importImages(GatewayWrapper client, java.lang.String... paths)
Imports all images candidates in the paths to the screen in OMERO.void
refresh(GatewayWrapper client)
Refreshes the wrapped screen.void
setDescription(java.lang.String description)
Sets the description of the screen.void
setName(java.lang.String name)
Sets the name of the screen.void
setProtocolDescription(java.lang.String value)
Sets the description of the protocol.void
setProtocolIdentifier(java.lang.String value)
Sets the identifier of the protocol.void
setReagentSetDescription(java.lang.String value)
Sets the identifier of the reagent.void
setReagentSetIdentifier(java.lang.String value)
Sets the identifier of the reagent.-
Methods inherited from class fr.igred.omero.repository.GenericRepositoryObjectWrapper
addAndReplaceFile, addAndReplaceFile, addAndReplaceTable, addAndReplaceTable, addFile, addFileAnnotation, addMapAnnotation, addPairKeyValue, addTable, addTag, addTag, addTag, addTag, addTags, addTags, copyAnnotationLinks, getFileAnnotations, getKeyValuePairs, getMapAnnotations, getTable, getTables, getTags, getValue, importImage, importImages, removeLink, unlink
-
Methods inherited from class fr.igred.omero.GenericObjectWrapper
canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, delete, distinct, getCreated, getGroupId, getId, getOwner, saveAndUpdate, toString, wrap, wrap
-
-
-
-
Field Detail
-
ANNOTATION_LINK
public static final java.lang.String ANNOTATION_LINK
Annotation link name for this type of object- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ScreenWrapper
public ScreenWrapper(Client client, java.lang.String name, java.lang.String description) throws ServiceException, AccessException, java.util.concurrent.ExecutionException
Constructor of the ProjectWrapper class. Creates a new project and saves it to OMERO.- Parameters:
client
- The client handling the connection.name
- Project name.description
- Project description.- Throws:
ServiceException
- Cannot connect to OMERO.AccessException
- Cannot access data.java.util.concurrent.ExecutionException
- A Facility can't be retrieved or instantiated.
-
ScreenWrapper
public ScreenWrapper(ScreenData screen)
Constructor of the class ScreenWrapper.- Parameters:
screen
- The ScreenData contained in the ScreenWrapper.
-
-
Method Detail
-
annotationLinkType
protected java.lang.String annotationLinkType()
Returns the type of annotation link for this object- Specified by:
annotationLinkType
in classGenericRepositoryObjectWrapper<ScreenData>
- Returns:
- See above.
-
getName
public java.lang.String getName()
Gets the screen name.- Specified by:
getName
in classGenericRepositoryObjectWrapper<ScreenData>
- Returns:
- See above.
-
setName
public void setName(java.lang.String name)
Sets the name of the screen.- Parameters:
name
- The name of the screen. Mustn't benull
.- Throws:
java.lang.IllegalArgumentException
- If the name isnull
.
-
asScreenData
public ScreenData asScreenData()
Returns the ScreenData contained.- Returns:
- See above.
-
getDescription
public java.lang.String getDescription()
Gets the screen description- Specified by:
getDescription
in classGenericRepositoryObjectWrapper<ScreenData>
- Returns:
- See above.
-
setDescription
public void setDescription(java.lang.String description)
Sets the description of the screen.- Parameters:
description
- The description of the screen.
-
getPlates
public java.util.List<PlateWrapper> getPlates()
Returns the plates contained in this screen.- Returns:
- See above.
-
getPlates
public java.util.List<PlateWrapper> getPlates(java.lang.String name)
Returns the plates contained in this screen, with the specified name.- Parameters:
name
- The expected plates name.- Returns:
- See above.
-
getProtocolDescription
public java.lang.String getProtocolDescription()
Returns the description of the protocol.- Returns:
- See above.
-
setProtocolDescription
public void setProtocolDescription(java.lang.String value)
Sets the description of the protocol.- Parameters:
value
- The value to set.
-
getProtocolIdentifier
public java.lang.String getProtocolIdentifier()
Returns the identifier of the protocol.- Returns:
- See above.
-
setProtocolIdentifier
public void setProtocolIdentifier(java.lang.String value)
Sets the identifier of the protocol.- Parameters:
value
- The value to set.
-
getReagentSetDescription
public java.lang.String getReagentSetDescription()
Returns the description of the reagent set.- Returns:
- See above.
-
setReagentSetDescription
public void setReagentSetDescription(java.lang.String value)
Sets the identifier of the reagent.- Parameters:
value
- The value to set.
-
getReagentSetIdentifier
public java.lang.String getReagentSetIdentifier()
Returns the identifier of the Reagent set.- Returns:
- See above.
-
setReagentSetIdentifier
public void setReagentSetIdentifier(java.lang.String value)
Sets the identifier of the reagent.- Parameters:
value
- The value to set.
-
refresh
public void refresh(GatewayWrapper client) throws ServiceException, AccessException, java.util.concurrent.ExecutionException
Refreshes the wrapped screen.- Parameters:
client
- The client handling the connection.- Throws:
ServiceException
- Cannot connect to OMERO.AccessException
- Cannot access data.java.util.concurrent.ExecutionException
- A Facility can't be retrieved or instantiated.
-
importImages
public boolean importImages(GatewayWrapper client, java.lang.String... paths) throws ServiceException, OMEROServerError, AccessException, java.io.IOException, java.util.concurrent.ExecutionException
Imports all images candidates in the paths to the screen in OMERO.- Parameters:
client
- The client handling the connection.paths
- Paths to the image files on the computer.- Returns:
- If the import did not exit because of an error.
- Throws:
ServiceException
- Cannot connect to OMERO.AccessException
- Cannot access data.OMEROServerError
- Server error.java.io.IOException
- Cannot read file.java.util.concurrent.ExecutionException
- A Facility can't be retrieved or instantiated.
-
importImage
public java.util.List<java.lang.Long> importImage(GatewayWrapper client, java.lang.String path) throws ServiceException, AccessException, OMEROServerError, java.util.concurrent.ExecutionException
Imports one image file to the screen in OMERO.- Parameters:
client
- The client handling the connection.path
- Path to the image file on the computer.- Returns:
- The list of IDs of the newly imported images.
- Throws:
ServiceException
- Cannot connect to OMERO.AccessException
- Cannot access data.OMEROServerError
- Server error.java.util.concurrent.ExecutionException
- A Facility can't be retrieved or instantiated.
-
-