Package net.sf.basedb.util.overview.node
Class BioWellNameGenerator
java.lang.Object
net.sf.basedb.util.overview.node.BioWellNameGenerator
- All Implemented Interfaces:
NodeNameGenerator<MeasuredBioMaterial>
Name generator implementation for biomaterial items
that are located on a biowell. This name generator is used when
loading biomaterial on a bioplate.
- Since:
- 3.2
- Author:
- Nicklas
- Last modified
- $Date$
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate String
private String
getDeniedNodeName
(Node parentNode) Generate a name for a node when the item exists, but the current user doesn't have permission to access read the item.getDeniedNodeTitle
(Node parentNode) Generate a title for a node when the item exists, but the current user doesn't have permission to access read the item.getMissingNodeName
(Node parentNode) Generate a name for a node when the item is missing.getMissingNodeTitle
(Node parentNode) Generate a title for a node when the item is missing.getNodeName
(MeasuredBioMaterial item, Node parentNode) Generate a name for the new node that is about to be created.getNodeTitle
(MeasuredBioMaterial item, Node parentNode) Generate a title for the new node that is about to be created.void
setCurrentWell
(BioWell well) Set the well we are currently working with.
-
Field Details
-
currentWell
-
-
Constructor Details
-
BioWellNameGenerator
public BioWellNameGenerator()Create a new biowell name generator.
-
-
Method Details
-
getNodeTitle
Description copied from interface:NodeNameGenerator
Generate a title for the new node that is about to be created.- Specified by:
getNodeTitle
in interfaceNodeNameGenerator<MeasuredBioMaterial>
- Parameters:
item
- The item that is attached to the node (never null)parentNode
- The parent node of the new node- Returns:
- A title for the node
-
getNodeName
Description copied from interface:NodeNameGenerator
Generate a name for the new node that is about to be created.- Specified by:
getNodeName
in interfaceNodeNameGenerator<MeasuredBioMaterial>
- Parameters:
item
- The item that is attached to the node (never null)parentNode
- The parent node of the new node- Returns:
- A name for the node
-
getMissingNodeTitle
Description copied from interface:NodeNameGenerator
Generate a title for a node when the item is missing.- Specified by:
getMissingNodeTitle
in interfaceNodeNameGenerator<MeasuredBioMaterial>
- Parameters:
parentNode
- The parent node- Returns:
- A title for the node
-
getMissingNodeName
Description copied from interface:NodeNameGenerator
Generate a name for a node when the item is missing.- Specified by:
getMissingNodeName
in interfaceNodeNameGenerator<MeasuredBioMaterial>
- Parameters:
parentNode
- The parent node- Returns:
- A name for the node
-
getDeniedNodeTitle
Description copied from interface:NodeNameGenerator
Generate a title for a node when the item exists, but the current user doesn't have permission to access read the item.- Specified by:
getDeniedNodeTitle
in interfaceNodeNameGenerator<MeasuredBioMaterial>
- Parameters:
parentNode
- The parent node- Returns:
- A name for the node
-
getDeniedNodeName
Description copied from interface:NodeNameGenerator
Generate a name for a node when the item exists, but the current user doesn't have permission to access read the item.- Specified by:
getDeniedNodeName
in interfaceNodeNameGenerator<MeasuredBioMaterial>
- Parameters:
parentNode
- The parent node- Returns:
- A name for the node
-
setCurrentWell
Set the well we are currently working with. The name generator need to know this before trying to generate node names and titles since it is possible that access to the biomaterial in the well is denied.- Parameters:
well
- The current biowell
-
getCurrentNodeName
-
getCurrentTitlePrefix
-