public class BioWellNameGenerator extends java.lang.Object implements NodeNameGenerator<MeasuredBioMaterial>
Modifier and Type | Field and Description |
---|---|
private BioWell |
currentWell |
Constructor and Description |
---|
BioWellNameGenerator()
Create a new biowell name generator.
|
Modifier and Type | Method and Description |
---|---|
private java.lang.String |
getCurrentNodeName() |
private java.lang.String |
getCurrentTitlePrefix() |
java.lang.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.
|
java.lang.String |
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.
|
java.lang.String |
getMissingNodeName(Node parentNode)
Generate a name for a node when the item is missing.
|
java.lang.String |
getMissingNodeTitle(Node parentNode)
Generate a title for a node when the item is missing.
|
java.lang.String |
getNodeName(MeasuredBioMaterial item,
Node parentNode)
Generate a name for the new node that is about to be
created.
|
java.lang.String |
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.
|
private BioWell currentWell
public BioWellNameGenerator()
public java.lang.String getNodeTitle(MeasuredBioMaterial item, Node parentNode)
NodeNameGenerator
getNodeTitle
in interface NodeNameGenerator<MeasuredBioMaterial>
item
- The item that is attached to the node (never null)parentNode
- The parent node of the new nodepublic java.lang.String getNodeName(MeasuredBioMaterial item, Node parentNode)
NodeNameGenerator
getNodeName
in interface NodeNameGenerator<MeasuredBioMaterial>
item
- The item that is attached to the node (never null)parentNode
- The parent node of the new nodepublic java.lang.String getMissingNodeTitle(Node parentNode)
NodeNameGenerator
getMissingNodeTitle
in interface NodeNameGenerator<MeasuredBioMaterial>
parentNode
- The parent nodepublic java.lang.String getMissingNodeName(Node parentNode)
NodeNameGenerator
getMissingNodeName
in interface NodeNameGenerator<MeasuredBioMaterial>
parentNode
- The parent nodepublic java.lang.String getDeniedNodeTitle(Node parentNode)
NodeNameGenerator
getDeniedNodeTitle
in interface NodeNameGenerator<MeasuredBioMaterial>
parentNode
- The parent nodepublic java.lang.String getDeniedNodeName(Node parentNode)
NodeNameGenerator
getDeniedNodeName
in interface NodeNameGenerator<MeasuredBioMaterial>
parentNode
- The parent nodepublic void setCurrentWell(BioWell well)
well
- The current biowellprivate java.lang.String getCurrentNodeName()
private java.lang.String getCurrentTitlePrefix()