Package fr.igred.omero.repository
Class FolderWrapper
- java.lang.Object
- 
- fr.igred.omero.GenericObjectWrapper<T>
- 
- fr.igred.omero.repository.GenericRepositoryObjectWrapper<FolderData>
- 
- fr.igred.omero.repository.FolderWrapper
 
 
 
- 
 public class FolderWrapper extends GenericRepositoryObjectWrapper<FolderData> Class containing a FolderData.Implements function using the FolderData contained. 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class fr.igred.omero.repository.GenericRepositoryObjectWrapperGenericRepositoryObjectWrapper.ReplacePolicy
 
- 
 - 
Field SummaryFields Modifier and Type Field Description static StringANNOTATION_LINK- 
Fields inherited from class fr.igred.omero.GenericObjectWrapperdata
 
- 
 - 
Constructor SummaryConstructors Constructor Description FolderWrapper(Client client, String name)Constructor of the FolderWrapper class.FolderWrapper(FolderData folder)Constructor of the FolderWrapper class.FolderWrapper(Folder folder)Constructor of the FolderWrapper class.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddROI(Client client, ROIWrapper roi)Add an ROI to the folder and associate it to the image id set(an image need to be associated)protected voidaddTag(Client client, TagAnnotationData tagData)Private function.protected StringannotationLinkType()Returns the type of annotation link for this objectFolderDataasFolderData()Gets the folder contained in the FolderWrapperStringgetDescription()Gets the folder descriptionStringgetName()Gets the name of the folderList<ROIWrapper>getROIs(Client client)Gets the ROI contained in the folder associated with the image id set (an image need to be associated)voidsetDescription(String description)Sets the description of the folder.voidsetImage(long id)Sets the image associated to the foldervoidsetImage(ImageWrapper image)Sets the image associated to the foldervoidsetName(String name)Sets the name of the folder.voidunlinkAllROI(Client client)Unlink all ROI, associated to the image set, in the folder.voidunlinkROI(Client client, ROIWrapper roi)Unlink an ROI, associated to the image set, in the folder.- 
Methods inherited from class fr.igred.omero.repository.GenericRepositoryObjectWrapperaddAndReplaceFile, addAndReplaceFile, addFile, addFileAnnotation, addMapAnnotation, addPairKeyValue, addTable, addTag, addTag, addTag, addTags, addTags, copyAnnotationLinks, getFileAnnotations, getKeyValuePairs, getMapAnnotations, getTable, getTables, getTags, getValue, removeLink, unlink
 - 
Methods inherited from class fr.igred.omero.GenericObjectWrappercanAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, delete, distinct, getCreated, getGroupId, getId, getOwner, saveAndUpdate, toString, wrap, wrap
 
- 
 
- 
- 
- 
Field Detail- 
ANNOTATION_LINKpublic static final String ANNOTATION_LINK - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
FolderWrapperpublic FolderWrapper(FolderData folder) Constructor of the FolderWrapper class.- Parameters:
- folder- FolderData to contain.
 
 - 
FolderWrapperpublic FolderWrapper(Folder folder) Constructor of the FolderWrapper class.- Parameters:
- folder- Folder to contain.
 
 - 
FolderWrapperpublic FolderWrapper(Client client, String name) throws ServiceException, OMEROServerError Constructor of the FolderWrapper class. Save the folder in OMERO- Parameters:
- client- The client handling the connection.
- name- Name of the folder.
- Throws:
- ServiceException- Cannot connect to OMERO.
- OMEROServerError- Server error.
 
 
- 
 - 
Method Detail- 
annotationLinkTypeprotected String annotationLinkType() Returns the type of annotation link for this object- Specified by:
- annotationLinkTypein class- GenericRepositoryObjectWrapper<FolderData>
- Returns:
- See above.
 
 - 
addTagprotected void addTag(Client client, TagAnnotationData tagData) throws ServiceException, AccessException, ExecutionException Private function. Adds a tag to the object in OMERO, if possible.- Overrides:
- addTagin class- GenericRepositoryObjectWrapper<FolderData>
- Parameters:
- client- The client handling the connection.
- tagData- Tag to be added.
- Throws:
- ServiceException- Cannot connect to OMERO.
- AccessException- Cannot access data.
- ExecutionException- A Facility can't be retrieved or instantiated.
 
 - 
getNamepublic String getName() Gets the name of the folder- Specified by:
- getNamein class- GenericRepositoryObjectWrapper<FolderData>
- Returns:
- name.
 
 - 
setNamepublic void setName(String name) Sets the name of the folder.- Parameters:
- name- The name of the folder. Mustn't be- null.
- Throws:
- IllegalArgumentException- If the name is- null.
 
 - 
asFolderDatapublic FolderData asFolderData() Gets the folder contained in the FolderWrapper- Returns:
- the FolderData.
 
 - 
getDescriptionpublic String getDescription() Gets the folder description- Specified by:
- getDescriptionin class- GenericRepositoryObjectWrapper<FolderData>
- Returns:
- The folder description.
 
 - 
setDescriptionpublic void setDescription(String description) Sets the description of the folder.- Parameters:
- description- The folder description.
 
 - 
setImagepublic void setImage(long id) Sets the image associated to the folder- Parameters:
- id- ID of the image to associate.
 
 - 
setImagepublic void setImage(ImageWrapper image) Sets the image associated to the folder- Parameters:
- image- Image to associate.
 
 - 
addROIpublic void addROI(Client client, ROIWrapper roi) throws ServiceException, AccessException, ExecutionException Add an ROI to the folder and associate it to the image id set(an image need to be associated)- Parameters:
- client- The client handling the connection.
- roi- ROI to add.
- Throws:
- ServiceException- Cannot connect to OMERO.
- AccessException- Cannot access data.
- ExecutionException- If the ROIFacility can't be retrieved or instantiated.
 
 - 
getROIspublic List<ROIWrapper> getROIs(Client client) throws ServiceException, AccessException, ExecutionException Gets the ROI contained in the folder associated with the image id set (an image need to be associated)- Parameters:
- client- The client handling the connection.
- Returns:
- List of ROIWrapper containing the ROI.
- Throws:
- ServiceException- Cannot connect to OMERO.
- AccessException- Cannot access data.
- ExecutionException- A Facility can't be retrieved or instantiated.
 
 - 
unlinkAllROIpublic void unlinkAllROI(Client client) throws ServiceException, AccessException, ExecutionException Unlink all ROI, associated to the image set, in the folder. ROIs are now linked to the image directly- Parameters:
- client- The client handling the connection.
- Throws:
- ServiceException- Cannot connect to OMERO.
- AccessException- Cannot access data.
- ExecutionException- A Facility can't be retrieved or instantiated.
 
 - 
unlinkROIpublic void unlinkROI(Client client, ROIWrapper roi) throws ServiceException, AccessException, ExecutionException Unlink an ROI, associated to the image set, in the folder. the ROI is now linked to the image directly- Parameters:
- client- The client handling the connection.
- roi- ROI to unlink.
- Throws:
- ServiceException- Cannot connect to OMERO.
- AccessException- Cannot access data.
- ExecutionException- A Facility can't be retrieved or instantiated.
 
 
- 
 
-